| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 DISALLOW_COPY_AND_ASSIGN(NotificationArea); | 302 DISALLOW_COPY_AND_ASSIGN(NotificationArea); |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 typedef std::map<ServerFieldType, DecoratedTextfield*> TextfieldMap; | 305 typedef std::map<ServerFieldType, DecoratedTextfield*> TextfieldMap; |
| 306 typedef std::map<ServerFieldType, views::Combobox*> ComboboxMap; | 306 typedef std::map<ServerFieldType, 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 SectionLabel& 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(); |
| 316 | 316 |
| 317 // Sets the visual appearance of the section to active (considered active | 317 // Sets the visual appearance of the section to active (considered active |
| 318 // when showing the menu or hovered by the mouse cursor). | 318 // when showing the menu or hovered by the mouse cursor). |
| 319 void SetActive(bool active); | 319 void SetActive(bool active); |
| 320 | 320 |
| 321 // Sets whether mouse events should be forwarded to |proxy_button_|. | 321 // Sets whether mouse events should be forwarded to |proxy_button_|. |
| 322 void SetForwardMouseEvents(bool forward); | 322 void SetForwardMouseEvents(bool forward); |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 | 688 |
| 689 // Delegate for the sign-in dialog's webview. | 689 // Delegate for the sign-in dialog's webview. |
| 690 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; | 690 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; |
| 691 | 691 |
| 692 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 692 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
| 693 }; | 693 }; |
| 694 | 694 |
| 695 } // namespace autofill | 695 } // namespace autofill |
| 696 | 696 |
| 697 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 697 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| OLD | NEW |