| 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 "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void Show() OVERRIDE; | 71 virtual void Show() OVERRIDE; |
| 72 virtual void Hide() OVERRIDE; | 72 virtual void Hide() OVERRIDE; |
| 73 virtual void UpdateAccountChooser() OVERRIDE; | 73 virtual void UpdateAccountChooser() OVERRIDE; |
| 74 virtual void UpdateButtonStrip() OVERRIDE; | 74 virtual void UpdateButtonStrip() OVERRIDE; |
| 75 virtual void UpdateNotificationArea() OVERRIDE; | 75 virtual void UpdateNotificationArea() OVERRIDE; |
| 76 virtual void UpdateSection(DialogSection section, | 76 virtual void UpdateSection(DialogSection section, |
| 77 UserInputAction action) OVERRIDE; | 77 UserInputAction action) OVERRIDE; |
| 78 virtual void GetUserInput(DialogSection section, | 78 virtual void GetUserInput(DialogSection section, |
| 79 DetailOutputMap* output) OVERRIDE; | 79 DetailOutputMap* output) OVERRIDE; |
| 80 virtual string16 GetCvc() OVERRIDE; | 80 virtual string16 GetCvc() OVERRIDE; |
| 81 virtual bool UseBillingForShipping() OVERRIDE; | |
| 82 virtual bool SaveDetailsLocally() OVERRIDE; | 81 virtual bool SaveDetailsLocally() OVERRIDE; |
| 83 virtual const content::NavigationController* ShowSignIn() OVERRIDE; | 82 virtual const content::NavigationController* ShowSignIn() OVERRIDE; |
| 84 virtual void HideSignIn() OVERRIDE; | 83 virtual void HideSignIn() OVERRIDE; |
| 85 virtual void UpdateProgressBar(double value) OVERRIDE; | 84 virtual void UpdateProgressBar(double value) OVERRIDE; |
| 86 virtual void ModelChanged() OVERRIDE; | 85 virtual void ModelChanged() OVERRIDE; |
| 87 virtual void SubmitForTesting() OVERRIDE; | 86 virtual void SubmitForTesting() OVERRIDE; |
| 88 virtual void CancelForTesting() OVERRIDE; | 87 virtual void CancelForTesting() OVERRIDE; |
| 89 | 88 |
| 90 // views::DialogDelegate implementation: | 89 // views::DialogDelegate implementation: |
| 91 virtual string16 GetWindowTitle() const OVERRIDE; | 90 virtual string16 GetWindowTitle() const OVERRIDE; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 class SuggestionView : public views::View { | 292 class SuggestionView : public views::View { |
| 294 public: | 293 public: |
| 295 SuggestionView(const string16& edit_label, | 294 SuggestionView(const string16& edit_label, |
| 296 AutofillDialogViews* autofill_dialog); | 295 AutofillDialogViews* autofill_dialog); |
| 297 virtual ~SuggestionView(); | 296 virtual ~SuggestionView(); |
| 298 | 297 |
| 299 // Whether this section is editable or not. | 298 // Whether this section is editable or not. |
| 300 void SetEditable(bool editable); | 299 void SetEditable(bool editable); |
| 301 | 300 |
| 302 // Sets the display text of the suggestion. | 301 // Sets the display text of the suggestion. |
| 303 void SetSuggestionText(const string16& text); | 302 void SetSuggestionText(const string16& text, gfx::Font::FontStyle style); |
| 304 | 303 |
| 305 // Sets the icon which should be displayed ahead of the text. | 304 // Sets the icon which should be displayed ahead of the text. |
| 306 void SetSuggestionIcon(const gfx::Image& image); | 305 void SetSuggestionIcon(const gfx::Image& image); |
| 307 | 306 |
| 308 // Shows an auxiliary textfield to the right of the suggestion icon and | 307 // Shows an auxiliary textfield to the right of the suggestion icon and |
| 309 // text. This is currently only used to show a CVC field for the CC section. | 308 // text. This is currently only used to show a CVC field for the CC section. |
| 310 void ShowTextfield(const string16& placeholder_text, | 309 void ShowTextfield(const string16& placeholder_text, |
| 311 const gfx::ImageSkia& icon); | 310 const gfx::ImageSkia& icon); |
| 312 | 311 |
| 313 DecoratedTextfield* decorated_textfield() { return decorated_; } | 312 DecoratedTextfield* decorated_textfield() { return decorated_; } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 433 |
| 435 // The top-level View for the dialog. Owned by the constrained window. | 434 // The top-level View for the dialog. Owned by the constrained window. |
| 436 views::View* contents_; | 435 views::View* contents_; |
| 437 | 436 |
| 438 // A DialogSection-keyed map of the DetailGroup structs. | 437 // A DialogSection-keyed map of the DetailGroup structs. |
| 439 DetailGroupMap detail_groups_; | 438 DetailGroupMap detail_groups_; |
| 440 | 439 |
| 441 // Somewhere to show notification messages about errors, warnings, or promos. | 440 // Somewhere to show notification messages about errors, warnings, or promos. |
| 442 NotificationArea* notification_area_; | 441 NotificationArea* notification_area_; |
| 443 | 442 |
| 444 // The checkbox that controls whether to use the billing details for shipping | |
| 445 // as well. | |
| 446 views::Checkbox* use_billing_for_shipping_; | |
| 447 | |
| 448 // Runs the suggestion menu (triggered by each section's |suggested_button|. | 443 // Runs the suggestion menu (triggered by each section's |suggested_button|. |
| 449 scoped_ptr<views::MenuRunner> menu_runner_; | 444 scoped_ptr<views::MenuRunner> menu_runner_; |
| 450 | 445 |
| 451 // The view that allows the user to toggle the data source. | 446 // The view that allows the user to toggle the data source. |
| 452 AccountChooser* account_chooser_; | 447 AccountChooser* account_chooser_; |
| 453 | 448 |
| 454 // View to host the signin dialog and related controls. | 449 // View to host the signin dialog and related controls. |
| 455 views::View* sign_in_container_; | 450 views::View* sign_in_container_; |
| 456 | 451 |
| 457 // LabelButton displayed during sign-in. Clicking cancels sign-in and returns | 452 // LabelButton displayed during sign-in. Clicking cancels sign-in and returns |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 | 485 |
| 491 // The focus manager for |window_|. | 486 // The focus manager for |window_|. |
| 492 views::FocusManager* focus_manager_; | 487 views::FocusManager* focus_manager_; |
| 493 | 488 |
| 494 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 489 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
| 495 }; | 490 }; |
| 496 | 491 |
| 497 } // namespace autofill | 492 } // namespace autofill |
| 498 | 493 |
| 499 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 494 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| OLD | NEW |