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 | 9 |
10 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 10 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
(...skipping 16 matching lines...) Expand all Loading... | |
27 class Image; | 27 class Image; |
28 } | 28 } |
29 | 29 |
30 namespace views { | 30 namespace views { |
31 class Checkbox; | 31 class Checkbox; |
32 class Combobox; | 32 class Combobox; |
33 class FocusManager; | 33 class FocusManager; |
34 class ImageButton; | 34 class ImageButton; |
35 class ImageView; | 35 class ImageView; |
36 class Label; | 36 class Label; |
37 class Link; | |
37 class MenuRunner; | 38 class MenuRunner; |
38 class TextButton; | 39 class TextButton; |
39 class Textfield; | 40 class Textfield; |
40 class WebView; | 41 class WebView; |
41 } | 42 } |
42 | 43 |
43 namespace ui { | 44 namespace ui { |
44 class ComboboxModel; | 45 class ComboboxModel; |
45 class KeyEvent; | 46 class KeyEvent; |
46 } | 47 } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; | 132 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; |
132 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 133 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
133 | 134 |
134 private: | 135 private: |
135 views::Textfield* textfield_; | 136 views::Textfield* textfield_; |
136 bool invalid_; | 137 bool invalid_; |
137 | 138 |
138 DISALLOW_COPY_AND_ASSIGN(DecoratedTextfield); | 139 DISALLOW_COPY_AND_ASSIGN(DecoratedTextfield); |
139 }; | 140 }; |
140 | 141 |
141 // An area for notifications. Some types of notifications point at stuff. | 142 // An area for notifications. Some notifications point at the account chooser. |
142 class NotificationArea : public views::View { | 143 class NotificationArea : public views::View { |
143 public: | 144 public: |
144 NotificationArea(); | 145 explicit NotificationArea(views::View* arrow_centering_anchor); |
145 virtual ~NotificationArea(); | 146 virtual ~NotificationArea(); |
146 | 147 |
147 void SetNotification(const DialogNotification& notification); | 148 void SetNotification(const DialogNotification& notification); |
148 | 149 |
149 // views::View implementation. | 150 // views::View implementation. |
150 virtual std::string GetClassName() const OVERRIDE; | 151 virtual std::string GetClassName() const OVERRIDE; |
151 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 152 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
152 | 153 |
153 private: | 154 private: |
154 views::Label* label_; | 155 views::Label* label_; |
156 views::View* arrow_centering_anchor_; | |
Evan Stade
2013/02/07 06:13:21
docs
Dan Beam
2013/02/07 18:22:36
Done.
| |
155 DialogNotification notification_; | 157 DialogNotification notification_; |
156 | 158 |
157 DISALLOW_COPY_AND_ASSIGN(NotificationArea); | 159 DISALLOW_COPY_AND_ASSIGN(NotificationArea); |
158 }; | 160 }; |
159 | 161 |
160 typedef std::map<const DetailInput*, DecoratedTextfield*> TextfieldMap; | 162 typedef std::map<const DetailInput*, DecoratedTextfield*> TextfieldMap; |
161 typedef std::map<const DetailInput*, views::Combobox*> ComboboxMap; | 163 typedef std::map<const DetailInput*, views::Combobox*> ComboboxMap; |
162 | 164 |
163 // A view that packs a label on the left and some related controls | 165 // A view that packs a label on the left and some related controls |
164 // on the right. | 166 // on the right. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
323 // Somewhere to show notification messages about errors, warnings, or promos. | 325 // Somewhere to show notification messages about errors, warnings, or promos. |
324 NotificationArea* notification_area_; | 326 NotificationArea* notification_area_; |
325 | 327 |
326 // The checkbox that controls whether to use the billing details for shipping | 328 // The checkbox that controls whether to use the billing details for shipping |
327 // as well. | 329 // as well. |
328 views::Checkbox* use_billing_for_shipping_; | 330 views::Checkbox* use_billing_for_shipping_; |
329 | 331 |
330 // Runs the suggestion menu (triggered by each section's |suggested_button|. | 332 // Runs the suggestion menu (triggered by each section's |suggested_button|. |
331 scoped_ptr<views::MenuRunner> menu_runner_; | 333 scoped_ptr<views::MenuRunner> menu_runner_; |
332 | 334 |
333 // The link that initiates the sign in flow. | 335 // A link to allow choosing different accounts to pay with. |
334 views::Link* sign_in_link_; | 336 views::Link* account_chooser_link_; |
335 | 337 |
336 // View to host the signin dialog and related controls. | 338 // View to host the signin dialog and related controls. |
337 views::View* sign_in_container_; | 339 views::View* sign_in_container_; |
338 | 340 |
339 // TextButton displayed during sign-in. Clicking cancels sign-in and returns | 341 // TextButton displayed during sign-in. Clicking cancels sign-in and returns |
340 // to the main flow. | 342 // to the main flow. |
341 views::TextButton* cancel_sign_in_; | 343 views::TextButton* cancel_sign_in_; |
342 | 344 |
343 // A WebView to that navigates to a Google sign-in page to allow the user to | 345 // A WebView to that navigates to a Google sign-in page to allow the user to |
344 // sign-in. | 346 // sign-in. |
(...skipping 17 matching lines...) Expand all Loading... | |
362 | 364 |
363 // The focus manager for |window_|. | 365 // The focus manager for |window_|. |
364 views::FocusManager* focus_manager_; | 366 views::FocusManager* focus_manager_; |
365 | 367 |
366 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 368 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
367 }; | 369 }; |
368 | 370 |
369 } // namespace autofill | 371 } // namespace autofill |
370 | 372 |
371 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 373 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
OLD | NEW |