Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller.cc

Issue 11231063: [views] "Hello, world" autofill imperative API dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
6
7 #include "base/utf_string_conversions.h"
8 #include "content/public/browser/web_contents.h"
9
10 AutofillDialogController::AutofillDialogController(
11 content::WebContents* contents) : contents_(contents) {}
12
13 void AutofillDialogController::Show() {
14 view_.reset(AutofillDialogView::CreateDialog(this));
15 view_->Show();
16 }
17
18 string16 AutofillDialogController::DialogTitle() {
19 // TODO(estade): real strings and l10n.
20 return string16(ASCIIToUTF16("Pay"));
Ilya Sherman 2012/10/23 00:39:00 nit: I think the strings should include some clear
Evan Stade 2012/10/23 01:52:04 Done.
21 }
22
23 string16 AutofillDialogController::CancelButtonText() {
24 // TODO(estade): real strings and l10n.
25 return string16(ASCIIToUTF16("Cancel"));
26 }
27
28 string16 AutofillDialogController::ConfirmButtonText() {
29 // TODO(estade): real strings and l10n.
30 return string16(ASCIIToUTF16("Submit"));
31 }
32
33 bool AutofillDialogController::ConfirmButtonEnabled() {
34 return false;
35 }
36
37 void AutofillDialogController::ViewClosed(bool accepted) {
38 // TODO(estade): pass the result along to the page.
39 }
40
41 // AutofillDialogView ----------------------------------------------------------
42
43 AutofillDialogView::~AutofillDialogView() {}
44
45 #if !defined(TOOLKIT_VIEWS)
46 AutofillDialogView* AutofillDialogView::CreateDialog() {
Ilya Sherman 2012/10/23 00:39:00 nit: This should be annotated with a bug id for im
Evan Stade 2012/10/23 01:52:04 I dislike NOTIMPLEMENTED() because it's easy to be
47 return NULL;
48 }
49 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698