Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.h

Issue 14129005: Remove "Use billing for shipping" checkbox in favor of item in suggestions menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 437
439 // The top-level View for the dialog. Owned by the constrained window. 438 // The top-level View for the dialog. Owned by the constrained window.
440 views::View* contents_; 439 views::View* contents_;
441 440
442 // A DialogSection-keyed map of the DetailGroup structs. 441 // A DialogSection-keyed map of the DetailGroup structs.
443 DetailGroupMap detail_groups_; 442 DetailGroupMap detail_groups_;
444 443
445 // Somewhere to show notification messages about errors, warnings, or promos. 444 // Somewhere to show notification messages about errors, warnings, or promos.
446 NotificationArea* notification_area_; 445 NotificationArea* notification_area_;
447 446
448 // The checkbox that controls whether to use the billing details for shipping
449 // as well.
450 views::Checkbox* use_billing_for_shipping_;
451
452 // Runs the suggestion menu (triggered by each section's |suggested_button|. 447 // Runs the suggestion menu (triggered by each section's |suggested_button|.
453 scoped_ptr<views::MenuRunner> menu_runner_; 448 scoped_ptr<views::MenuRunner> menu_runner_;
454 449
455 // The view that allows the user to toggle the data source. 450 // The view that allows the user to toggle the data source.
456 AccountChooser* account_chooser_; 451 AccountChooser* account_chooser_;
457 452
458 // View to host the signin dialog and related controls. 453 // View to host the signin dialog and related controls.
459 views::View* sign_in_container_; 454 views::View* sign_in_container_;
460 455
461 // LabelButton displayed during sign-in. Clicking cancels sign-in and returns 456 // LabelButton displayed during sign-in. Clicking cancels sign-in and returns
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 489
495 // The focus manager for |window_|. 490 // The focus manager for |window_|.
496 views::FocusManager* focus_manager_; 491 views::FocusManager* focus_manager_;
497 492
498 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); 493 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
499 }; 494 };
500 495
501 } // namespace autofill 496 } // namespace autofill
502 497
503 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 498 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698