OLD | NEW |
---|---|
(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) {} | |
sky
2012/10/23 19:53:54
Since you couldn't fit it all on one line, wrap co
Evan Stade
2012/10/23 20:58:58
Done.
| |
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 } | |
OLD | NEW |