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

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: couple of forgotten nits 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) : contents_(contents) {}
13
14 AutofillDialogController::~AutofillDialogController() {}
15
16 void AutofillDialogController::Show() {
17 view_.reset(AutofillDialogView::CreateDialog(this));
18 view_->Show();
19 }
20
21 string16 AutofillDialogController::DialogTitle() const {
22 // TODO(estade): real strings and l10n.
23 return string16(ASCIIToUTF16("PaY"));
24 }
25
26 string16 AutofillDialogController::CancelButtonText() const {
27 // TODO(estade): real strings and l10n.
28 return string16(ASCIIToUTF16("CaNceL"));
29 }
30
31 string16 AutofillDialogController::ConfirmButtonText() const {
32 // TODO(estade): real strings and l10n.
33 return string16(ASCIIToUTF16("SuBMiT"));
34 }
35
36 bool AutofillDialogController::ConfirmButtonEnabled() const {
37 return false;
38 }
39
40 void AutofillDialogController::ViewClosed(Action action) {
41 // TODO(estade): pass the result along to the page.
42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698