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

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: compile 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 "chrome/browser/ui/autofill/autofill_dialog_view.h"
9 #include "content/public/browser/web_contents.h"
10
11 AutofillDialogController::AutofillDialogController(
12 content::WebContents* contents)
13 : contents_(contents) {}
14
15 AutofillDialogController::~AutofillDialogController() {}
16
17 void AutofillDialogController::Show() {
18 view_.reset(AutofillDialogView::Create(this));
19 view_->Show();
20 }
21
22 string16 AutofillDialogController::DialogTitle() const {
23 // TODO(estade): real strings and l10n.
24 return string16(ASCIIToUTF16("PaY"));
25 }
26
27 string16 AutofillDialogController::CancelButtonText() const {
28 // TODO(estade): real strings and l10n.
29 return string16(ASCIIToUTF16("CaNceL"));
30 }
31
32 string16 AutofillDialogController::ConfirmButtonText() const {
33 // TODO(estade): real strings and l10n.
34 return string16(ASCIIToUTF16("SuBMiT"));
35 }
36
37 bool AutofillDialogController::ConfirmButtonEnabled() const {
38 return false;
39 }
40
41 void AutofillDialogController::ViewClosed(Action action) {
42 // TODO(estade): pass the result along to the page.
43 delete this;
44 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller.h ('k') | chrome/browser/ui/autofill/autofill_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698