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) |
| 13 : contents_(contents) {} |
| 14 |
| 15 AutofillDialogController::~AutofillDialogController() {} |
| 16 |
| 17 void AutofillDialogController::Show() { |
| 18 view_.reset(AutofillDialogView::CreateDialog(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 } |
OLD | NEW |