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

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

Issue 12225095: Interactive autofill: Adds footnote view to accept legal documents in the UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: closer? Created 7 years, 10 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 "chrome/browser/ui/autofill/autofill_dialog_controller.h" 10 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void UpdateNotificationArea() OVERRIDE; 68 virtual void UpdateNotificationArea() OVERRIDE;
69 virtual void UpdateSection(DialogSection section) OVERRIDE; 69 virtual void UpdateSection(DialogSection section) OVERRIDE;
70 virtual void GetUserInput(DialogSection section, 70 virtual void GetUserInput(DialogSection section,
71 DetailOutputMap* output) OVERRIDE; 71 DetailOutputMap* output) OVERRIDE;
72 virtual string16 GetCvc() OVERRIDE; 72 virtual string16 GetCvc() OVERRIDE;
73 virtual bool UseBillingForShipping() OVERRIDE; 73 virtual bool UseBillingForShipping() OVERRIDE;
74 virtual bool SaveDetailsLocally() OVERRIDE; 74 virtual bool SaveDetailsLocally() OVERRIDE;
75 virtual const content::NavigationController& ShowSignIn() OVERRIDE; 75 virtual const content::NavigationController& ShowSignIn() OVERRIDE;
76 virtual void HideSignIn() OVERRIDE; 76 virtual void HideSignIn() OVERRIDE;
77 virtual void UpdateProgressBar(double value) OVERRIDE; 77 virtual void UpdateProgressBar(double value) OVERRIDE;
78 virtual void UpdateFootnote() OVERRIDE;
78 79
79 // views::DialogDelegate implementation: 80 // views::DialogDelegate implementation:
80 virtual string16 GetWindowTitle() const OVERRIDE; 81 virtual string16 GetWindowTitle() const OVERRIDE;
81 virtual void WindowClosing() OVERRIDE; 82 virtual void WindowClosing() OVERRIDE;
82 virtual void DeleteDelegate() OVERRIDE; 83 virtual void DeleteDelegate() OVERRIDE;
83 virtual views::Widget* GetWidget() OVERRIDE; 84 virtual views::Widget* GetWidget() OVERRIDE;
84 virtual const views::Widget* GetWidget() const OVERRIDE; 85 virtual const views::Widget* GetWidget() const OVERRIDE;
85 virtual views::View* GetContentsView() OVERRIDE; 86 virtual views::View* GetContentsView() OVERRIDE;
86 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; 87 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
87 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; 88 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 typedef std::map<DialogSection, DetailsGroup> DetailGroupMap; 264 typedef std::map<DialogSection, DetailsGroup> DetailGroupMap;
264 265
265 void InitChildViews(); 266 void InitChildViews();
266 267
267 // Creates and returns a view that holds all detail sections. 268 // Creates and returns a view that holds all detail sections.
268 views::View* CreateDetailsContainer(); 269 views::View* CreateDetailsContainer();
269 270
270 // Creates and returns a view that holds the requesting host and intro text. 271 // Creates and returns a view that holds the requesting host and intro text.
271 views::View* CreateNotificationArea(); 272 views::View* CreateNotificationArea();
272 273
274 // Creates and returns a view that holds the main controls of this dialog.
275 views::View* CreateMainContainer();
276
273 // Creates and returns a view that holds a sign in page and related controls. 277 // Creates and returns a view that holds a sign in page and related controls.
274 views::View* CreateSignInContainer(); 278 views::View* CreateSignInContainer();
275 279
276 // Creates and returns a view that holds the main controls of this dialog. 280 // Creates footnote container.
277 views::View* CreateMainContainer(); 281 void CreateFootnoteView();
282
283 // [Re-]populates footnote links based on the controller's link text parts.
284 void PopulateFootnoteLinks();
278 285
279 // Creates a detail section (Shipping, Email, etc.) with the given label, 286 // Creates a detail section (Shipping, Email, etc.) with the given label,
280 // inputs View, and suggestion model. Relevant pointers are stored in |group|. 287 // inputs View, and suggestion model. Relevant pointers are stored in |group|.
281 void CreateDetailsSection(DialogSection section); 288 void CreateDetailsSection(DialogSection section);
282 289
283 // Like CreateDetailsSection, but creates the combined billing/cc section, 290 // Like CreateDetailsSection, but creates the combined billing/cc section,
284 // which is somewhat more complicated than the others. 291 // which is somewhat more complicated than the others.
285 void CreateBillingSection(); 292 void CreateBillingSection();
286 293
287 // Creates the view that holds controls for inputing or selecting data for 294 // Creates the view that holds controls for inputing or selecting data for
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // This checkbox controls whether new details are saved to the Autofill 370 // This checkbox controls whether new details are saved to the Autofill
364 // database. It lives in |extra_view_|. 371 // database. It lives in |extra_view_|.
365 views::Checkbox* save_in_chrome_checkbox_; 372 views::Checkbox* save_in_chrome_checkbox_;
366 373
367 // View to host |autocheckout_progress_bar_| and its label. 374 // View to host |autocheckout_progress_bar_| and its label.
368 views::View* autocheckout_progress_bar_view_; 375 views::View* autocheckout_progress_bar_view_;
369 376
370 // Progress bar for displaying Autocheckout progress. 377 // Progress bar for displaying Autocheckout progress.
371 AutocheckoutProgressBar* autocheckout_progress_bar_; 378 AutocheckoutProgressBar* autocheckout_progress_bar_;
372 379
380 // View shown when accepting of a new Terms of Service is required. Lives
381 // below the Cancel/Submit buttons.
382 views::View* footnote_view_;
383
373 // The focus manager for |window_|. 384 // The focus manager for |window_|.
374 views::FocusManager* focus_manager_; 385 views::FocusManager* focus_manager_;
375 386
376 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); 387 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
377 }; 388 };
378 389
379 } // namespace autofill 390 } // namespace autofill
380 391
381 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 392 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698