| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual void UpdateButtonStrip() OVERRIDE; | 82 virtual void UpdateButtonStrip() OVERRIDE; |
| 83 virtual void UpdateOverlay() OVERRIDE; | 83 virtual void UpdateOverlay() OVERRIDE; |
| 84 virtual void UpdateDetailArea() OVERRIDE; | 84 virtual void UpdateDetailArea() OVERRIDE; |
| 85 virtual void UpdateForErrors() OVERRIDE; | 85 virtual void UpdateForErrors() OVERRIDE; |
| 86 virtual void UpdateNotificationArea() OVERRIDE; | 86 virtual void UpdateNotificationArea() OVERRIDE; |
| 87 virtual void UpdateSection(DialogSection section) OVERRIDE; | 87 virtual void UpdateSection(DialogSection section) OVERRIDE; |
| 88 virtual void UpdateErrorBubble() OVERRIDE; | 88 virtual void UpdateErrorBubble() OVERRIDE; |
| 89 virtual void FillSection(DialogSection section, | 89 virtual void FillSection(DialogSection section, |
| 90 const DetailInput& originating_input) OVERRIDE; | 90 const DetailInput& originating_input) OVERRIDE; |
| 91 virtual void GetUserInput(DialogSection section, | 91 virtual void GetUserInput(DialogSection section, |
| 92 DetailOutputMap* output) OVERRIDE; | 92 FieldValueMap* output) OVERRIDE; |
| 93 virtual base::string16 GetCvc() OVERRIDE; | 93 virtual base::string16 GetCvc() OVERRIDE; |
| 94 virtual bool HitTestInput(const DetailInput& input, | 94 virtual bool HitTestInput(const DetailInput& input, |
| 95 const gfx::Point& screen_point) OVERRIDE; | 95 const gfx::Point& screen_point) OVERRIDE; |
| 96 virtual bool SaveDetailsLocally() OVERRIDE; | 96 virtual bool SaveDetailsLocally() OVERRIDE; |
| 97 virtual const content::NavigationController* ShowSignIn() OVERRIDE; | 97 virtual const content::NavigationController* ShowSignIn() OVERRIDE; |
| 98 virtual void HideSignIn() OVERRIDE; | 98 virtual void HideSignIn() OVERRIDE; |
| 99 virtual void ModelChanged() OVERRIDE; | 99 virtual void ModelChanged() OVERRIDE; |
| 100 virtual TestableAutofillDialogView* GetTestableView() OVERRIDE; | 100 virtual TestableAutofillDialogView* GetTestableView() OVERRIDE; |
| 101 virtual void OnSignInResize(const gfx::Size& pref_size) OVERRIDE; | 101 virtual void OnSignInResize(const gfx::Size& pref_size) OVERRIDE; |
| 102 | 102 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 AutofillDialogViewDelegate* delegate_; // weak | 296 AutofillDialogViewDelegate* delegate_; // weak |
| 297 | 297 |
| 298 // If HasArrow() is true, the arrow should point at this. | 298 // If HasArrow() is true, the arrow should point at this. |
| 299 base::WeakPtr<views::View> arrow_centering_anchor_; | 299 base::WeakPtr<views::View> arrow_centering_anchor_; |
| 300 | 300 |
| 301 std::vector<DialogNotification> notifications_; | 301 std::vector<DialogNotification> notifications_; |
| 302 | 302 |
| 303 DISALLOW_COPY_AND_ASSIGN(NotificationArea); | 303 DISALLOW_COPY_AND_ASSIGN(NotificationArea); |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 typedef std::map<const DetailInput*, DecoratedTextfield*> TextfieldMap; | 306 typedef std::map<ServerFieldType, DecoratedTextfield*> TextfieldMap; |
| 307 typedef std::map<const DetailInput*, views::Combobox*> ComboboxMap; | 307 typedef std::map<ServerFieldType, views::Combobox*> ComboboxMap; |
| 308 | 308 |
| 309 // A view that packs a label on the left and some related controls | 309 // A view that packs a label on the left and some related controls |
| 310 // on the right. | 310 // on the right. |
| 311 class SectionContainer : public views::View { | 311 class SectionContainer : public views::View { |
| 312 public: | 312 public: |
| 313 SectionContainer(const base::string16& label, | 313 SectionContainer(const base::string16& label, |
| 314 views::View* controls, | 314 views::View* controls, |
| 315 views::Button* proxy_button); | 315 views::Button* proxy_button); |
| 316 virtual ~SectionContainer(); | 316 virtual ~SectionContainer(); |
| 317 | 317 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 | 678 |
| 679 // Delegate for the sign-in dialog's webview. | 679 // Delegate for the sign-in dialog's webview. |
| 680 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; | 680 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; |
| 681 | 681 |
| 682 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 682 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
| 683 }; | 683 }; |
| 684 | 684 |
| 685 } // namespace autofill | 685 } // namespace autofill |
| 686 | 686 |
| 687 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 687 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| OLD | NEW |