Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 12 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
| 13 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 13 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
| 14 | 14 |
| 15 namespace autofill { | 15 namespace autofill { |
| 16 | 16 |
| 17 // Android implementation of the Autofill dialog that handles the imperative | 17 // Android implementation of the Autofill dialog that handles the imperative |
| 18 // autocomplete API call. | 18 // autocomplete API call. |
| 19 class AutofillDialogViewAndroid : public AutofillDialogView { | 19 class AutofillDialogViewAndroid : public AutofillDialogView { |
| 20 public: | 20 public: |
| 21 explicit AutofillDialogViewAndroid(AutofillDialogController* controller); | 21 explicit AutofillDialogViewAndroid(AutofillDialogController* controller); |
| 22 virtual ~AutofillDialogViewAndroid(); | 22 virtual ~AutofillDialogViewAndroid(); |
| 23 | 23 |
| 24 // AutofillDialogView implementation: | 24 // AutofillDialogView implementation: |
| 25 virtual void Show() OVERRIDE; | 25 virtual void Show() OVERRIDE; |
| 26 virtual void Hide() OVERRIDE; | 26 virtual void Hide() OVERRIDE; |
| 27 virtual void UpdateNotificationArea() OVERRIDE; | 27 virtual void UpdateNotificationArea() OVERRIDE; |
| 28 virtual void UpdateAccountChooser() OVERRIDE; | 28 virtual void UpdateAccountChooser() OVERRIDE; |
| 29 virtual void UpdateButtonStrip() OVERRIDE; | 29 virtual void UpdateButtonStrip() OVERRIDE; |
| 30 virtual void UpdateSection(DialogSection section) OVERRIDE; | 30 virtual void UpdateSection(DialogSection section, |
| 31 UserInput action) OVERRIDE; | |
|
Ilya Sherman
2013/04/05 23:29:52
nit: UserInput -> UserInputAction
| |
| 31 virtual void GetUserInput(DialogSection section, | 32 virtual void GetUserInput(DialogSection section, |
| 32 DetailOutputMap* output) OVERRIDE; | 33 DetailOutputMap* output) OVERRIDE; |
| 33 virtual string16 GetCvc() OVERRIDE; | 34 virtual string16 GetCvc() OVERRIDE; |
| 34 virtual bool UseBillingForShipping() OVERRIDE; | 35 virtual bool UseBillingForShipping() OVERRIDE; |
| 35 virtual bool SaveDetailsInWallet() OVERRIDE; | 36 virtual bool SaveDetailsInWallet() OVERRIDE; |
| 36 virtual bool SaveDetailsLocally() OVERRIDE; | 37 virtual bool SaveDetailsLocally() OVERRIDE; |
| 37 virtual const content::NavigationController* ShowSignIn() OVERRIDE; | 38 virtual const content::NavigationController* ShowSignIn() OVERRIDE; |
| 38 virtual void HideSignIn() OVERRIDE; | 39 virtual void HideSignIn() OVERRIDE; |
| 39 virtual void UpdateProgressBar(double value) OVERRIDE; | 40 virtual void UpdateProgressBar(double value) OVERRIDE; |
| 40 virtual void ModelChanged() OVERRIDE; | 41 virtual void ModelChanged() OVERRIDE; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 | 89 |
| 89 // The corresponding java object. | 90 // The corresponding java object. |
| 90 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 91 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 91 | 92 |
| 92 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewAndroid); | 93 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewAndroid); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace autofill | 96 } // namespace autofill |
| 96 | 97 |
| 97 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ | 98 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ |
| OLD | NEW |