Chromium Code Reviews| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 295 AutofillDialogViewDelegate* delegate_; // weak | 295 AutofillDialogViewDelegate* delegate_; // weak |
| 296 | 296 |
| 297 // If HasArrow() is true, the arrow should point at this. | 297 // If HasArrow() is true, the arrow should point at this. |
| 298 base::WeakPtr<views::View> arrow_centering_anchor_; | 298 base::WeakPtr<views::View> arrow_centering_anchor_; |
| 299 | 299 |
| 300 std::vector<DialogNotification> notifications_; | 300 std::vector<DialogNotification> notifications_; |
| 301 | 301 |
| 302 DISALLOW_COPY_AND_ASSIGN(NotificationArea); | 302 DISALLOW_COPY_AND_ASSIGN(NotificationArea); |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 typedef std::map<const DetailInput*, DecoratedTextfield*> TextfieldMap; | 305 typedef std::map<const DetailInput*, DecoratedTextfield*> TextfieldMap; |
|
Evan Stade
2013/11/26 15:32:46
can this type also be changed? Seems dangerous to
Dan Beam
2013/11/27 01:00:42
right now I clear group.textfields in UpdateSectio
Dan Beam
2013/11/27 01:01:07
er, InitInputsView
| |
| 306 typedef std::map<const DetailInput*, views::Combobox*> ComboboxMap; | 306 typedef std::map<const DetailInput*, views::Combobox*> ComboboxMap; |
| 307 | 307 |
| 308 // A view that packs a label on the left and some related controls | 308 // A view that packs a label on the left and some related controls |
| 309 // on the right. | 309 // on the right. |
| 310 class SectionContainer : public views::View { | 310 class SectionContainer : public views::View { |
| 311 public: | 311 public: |
| 312 SectionContainer(const base::string16& label, | 312 SectionContainer(const base::string16& label, |
| 313 views::View* controls, | 313 views::View* controls, |
| 314 views::Button* proxy_button); | 314 views::Button* proxy_button); |
| 315 virtual ~SectionContainer(); | 315 virtual ~SectionContainer(); |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 677 | 677 |
| 678 // Delegate for the sign-in dialog's webview. | 678 // Delegate for the sign-in dialog's webview. |
| 679 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; | 679 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; |
| 680 | 680 |
| 681 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 681 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
| 682 }; | 682 }; |
| 683 | 683 |
| 684 } // namespace autofill | 684 } // namespace autofill |
| 685 | 685 |
| 686 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 686 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| OLD | NEW |