| 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/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 11 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
| 12 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 12 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
| 13 | 13 |
| 14 namespace autofill { | 14 namespace autofill { |
| 15 | 15 |
| 16 // Android implementation of the Autofill dialog that handles the imperative | 16 // Android implementation of the Autofill dialog that handles the imperative |
| 17 // autocomplete API call. | 17 // autocomplete API call. |
| 18 class AutofillDialogViewAndroid : public AutofillDialogView { | 18 class AutofillDialogViewAndroid : public AutofillDialogView { |
| 19 public: | 19 public: |
| 20 explicit AutofillDialogViewAndroid(AutofillDialogController* controller); | 20 explicit AutofillDialogViewAndroid(AutofillDialogController* controller); |
| 21 virtual ~AutofillDialogViewAndroid(); | 21 virtual ~AutofillDialogViewAndroid(); |
| 22 | 22 |
| 23 // AutofillDialogView implementation: | 23 // AutofillDialogView implementation: |
| 24 virtual void Show() OVERRIDE; | 24 virtual void Show() OVERRIDE; |
| 25 virtual void Hide() OVERRIDE; | 25 virtual void Hide() OVERRIDE; |
| 26 virtual void UpdateNotificationArea() OVERRIDE; | 26 virtual void UpdateNotificationArea() OVERRIDE; |
| 27 virtual void UpdateAccountChooser() OVERRIDE; | 27 virtual void UpdateAccountChooser() OVERRIDE; |
| 28 virtual void UpdateButtonStrip() OVERRIDE; | 28 virtual void UpdateButtonStrip() OVERRIDE; |
| 29 virtual void UpdateSection(DialogSection section) OVERRIDE; | 29 virtual void UpdateSection(DialogSection section, |
| 30 bool clear_user_input) OVERRIDE; |
| 30 virtual void GetUserInput(DialogSection section, | 31 virtual void GetUserInput(DialogSection section, |
| 31 DetailOutputMap* output) OVERRIDE; | 32 DetailOutputMap* output) OVERRIDE; |
| 32 virtual string16 GetCvc() OVERRIDE; | 33 virtual string16 GetCvc() OVERRIDE; |
| 33 virtual bool UseBillingForShipping() OVERRIDE; | 34 virtual bool UseBillingForShipping() OVERRIDE; |
| 34 virtual bool SaveDetailsInWallet() OVERRIDE; | 35 virtual bool SaveDetailsInWallet() OVERRIDE; |
| 35 virtual bool SaveDetailsLocally() OVERRIDE; | 36 virtual bool SaveDetailsLocally() OVERRIDE; |
| 36 virtual const content::NavigationController* ShowSignIn() OVERRIDE; | 37 virtual const content::NavigationController* ShowSignIn() OVERRIDE; |
| 37 virtual void HideSignIn() OVERRIDE; | 38 virtual void HideSignIn() OVERRIDE; |
| 38 virtual void UpdateProgressBar(double value) OVERRIDE; | 39 virtual void UpdateProgressBar(double value) OVERRIDE; |
| 39 virtual void ModelChanged() OVERRIDE; | 40 virtual void ModelChanged() OVERRIDE; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 80 |
| 80 // The corresponding java object. | 81 // The corresponding java object. |
| 81 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 82 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 82 | 83 |
| 83 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewAndroid); | 84 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewAndroid); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 } // namespace autofill | 87 } // namespace autofill |
| 87 | 88 |
| 88 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ | 89 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ |
| OLD | NEW |