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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.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: . 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_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" 23 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
24 #include "chrome/browser/ui/autofill/autofill_popup_delegate.h" 24 #include "chrome/browser/ui/autofill/autofill_popup_delegate.h"
25 #include "content/public/browser/notification_observer.h" 25 #include "content/public/browser/notification_observer.h"
26 #include "content/public/browser/notification_registrar.h" 26 #include "content/public/browser/notification_registrar.h"
27 #include "content/public/common/ssl_status.h" 27 #include "content/public/common/ssl_status.h"
28 #include "googleurl/src/gurl.h" 28 #include "googleurl/src/gurl.h"
29 #include "ui/base/models/simple_menu_model.h" 29 #include "ui/base/models/simple_menu_model.h"
30 30
31 class AutofillPopupControllerImpl; 31 class AutofillPopupControllerImpl;
32 class FormGroup; 32 class FormGroup;
33 class GURL;
33 class Profile; 34 class Profile;
34 35
35 namespace content { 36 namespace content {
36 class WebContents; 37 class WebContents;
37 } 38 }
38 39
39 namespace autofill { 40 namespace autofill {
40 41
41 class AutofillDialogView; 42 class AutofillDialogView;
42 43
(...skipping 20 matching lines...) Expand all
63 virtual string16 DialogTitle() const OVERRIDE; 64 virtual string16 DialogTitle() const OVERRIDE;
64 virtual string16 EditSuggestionText() const OVERRIDE; 65 virtual string16 EditSuggestionText() const OVERRIDE;
65 virtual string16 UseBillingForShippingText() const OVERRIDE; 66 virtual string16 UseBillingForShippingText() const OVERRIDE;
66 virtual string16 WalletOptionText() const OVERRIDE; 67 virtual string16 WalletOptionText() const OVERRIDE;
67 virtual string16 CancelButtonText() const OVERRIDE; 68 virtual string16 CancelButtonText() const OVERRIDE;
68 virtual string16 ConfirmButtonText() const OVERRIDE; 69 virtual string16 ConfirmButtonText() const OVERRIDE;
69 virtual string16 SignInText() const OVERRIDE; 70 virtual string16 SignInText() const OVERRIDE;
70 virtual string16 SaveLocallyText() const OVERRIDE; 71 virtual string16 SaveLocallyText() const OVERRIDE;
71 virtual string16 CancelSignInText() const OVERRIDE; 72 virtual string16 CancelSignInText() const OVERRIDE;
72 virtual string16 ProgressBarText() const OVERRIDE; 73 virtual string16 ProgressBarText() const OVERRIDE;
74 virtual std::pair<std::vector<string16>, string16>
75 FootnoteTextParts() const OVERRIDE;
73 virtual DialogSignedInState SignedInState() const OVERRIDE; 76 virtual DialogSignedInState SignedInState() const OVERRIDE;
77 virtual bool IsFootnoteShowing() const OVERRIDE;
74 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) 78 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section)
75 const OVERRIDE; 79 const OVERRIDE;
76 virtual ui::ComboboxModel* ComboboxModelForAutofillType( 80 virtual ui::ComboboxModel* ComboboxModelForAutofillType(
77 AutofillFieldType type) OVERRIDE; 81 AutofillFieldType type) OVERRIDE;
78 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; 82 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE;
79 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; 83 virtual string16 LabelForSection(DialogSection section) const OVERRIDE;
80 virtual string16 SuggestionTextForSection(DialogSection section) OVERRIDE; 84 virtual string16 SuggestionTextForSection(DialogSection section) OVERRIDE;
81 virtual gfx::Image SuggestionIconForSection(DialogSection section) OVERRIDE; 85 virtual gfx::Image SuggestionIconForSection(DialogSection section) OVERRIDE;
82 virtual void EditClickedForSection(DialogSection section) OVERRIDE; 86 virtual void EditClickedForSection(DialogSection section) OVERRIDE;
83 virtual bool InputIsValid(AutofillFieldType type, const string16& value) 87 virtual bool InputIsValid(AutofillFieldType type, const string16& value)
84 OVERRIDE; 88 OVERRIDE;
85 virtual void UserEditedOrActivatedInput(const DetailInput* input, 89 virtual void UserEditedOrActivatedInput(const DetailInput* input,
86 DialogSection section, 90 DialogSection section,
87 gfx::NativeView parent_view, 91 gfx::NativeView parent_view,
88 const gfx::Rect& content_bounds, 92 const gfx::Rect& content_bounds,
89 const string16& field_contents, 93 const string16& field_contents,
90 bool was_edit) OVERRIDE; 94 bool was_edit) OVERRIDE;
91 virtual bool HandleKeyPressEventInInput( 95 virtual bool HandleKeyPressEventInInput(
92 const content::NativeWebKeyboardEvent& event) OVERRIDE; 96 const content::NativeWebKeyboardEvent& event) OVERRIDE;
93 virtual void FocusMoved() OVERRIDE; 97 virtual void FocusMoved() OVERRIDE;
94 virtual void ViewClosed(DialogAction action) OVERRIDE;
95 virtual DialogNotification CurrentNotification() const OVERRIDE; 98 virtual DialogNotification CurrentNotification() const OVERRIDE;
96 virtual void StartSignInFlow() OVERRIDE; 99 virtual void StartSignInFlow() OVERRIDE;
97 virtual void EndSignInFlow() OVERRIDE; 100 virtual void EndSignInFlow() OVERRIDE;
101 virtual void ShowTermsOfService() OVERRIDE;
102 virtual void ShowPrivacyPolicy() OVERRIDE;
98 virtual Profile* profile() OVERRIDE; 103 virtual Profile* profile() OVERRIDE;
99 virtual content::WebContents* web_contents() OVERRIDE; 104 virtual content::WebContents* web_contents() OVERRIDE;
105 virtual void ViewClosed(DialogAction action) OVERRIDE;
100 106
101 // AutofillPopupDelegate implementation. 107 // AutofillPopupDelegate implementation.
102 virtual void OnPopupShown(content::KeyboardListener* listener) OVERRIDE; 108 virtual void OnPopupShown(content::KeyboardListener* listener) OVERRIDE;
103 virtual void OnPopupHidden(content::KeyboardListener* listener) OVERRIDE; 109 virtual void OnPopupHidden(content::KeyboardListener* listener) OVERRIDE;
104 virtual void DidSelectSuggestion(int identifier) OVERRIDE; 110 virtual void DidSelectSuggestion(int identifier) OVERRIDE;
105 virtual void DidAcceptSuggestion(const string16& value, 111 virtual void DidAcceptSuggestion(const string16& value,
106 int identifier) OVERRIDE; 112 int identifier) OVERRIDE;
107 virtual void RemoveSuggestion(const string16& value, 113 virtual void RemoveSuggestion(const string16& value,
108 int identifier) OVERRIDE; 114 int identifier) OVERRIDE;
109 virtual void ClearPreviewedForm() OVERRIDE; 115 virtual void ClearPreviewedForm() OVERRIDE;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 208
203 // Returns the PersonalDataManager for |profile_|. 209 // Returns the PersonalDataManager for |profile_|.
204 PersonalDataManager* GetManager(); 210 PersonalDataManager* GetManager();
205 211
206 // Like RequestedFieldsForSection, but returns a pointer. 212 // Like RequestedFieldsForSection, but returns a pointer.
207 DetailInputs* MutableRequestedFieldsForSection(DialogSection section); 213 DetailInputs* MutableRequestedFieldsForSection(DialogSection section);
208 214
209 // Hides |popup_controller_|'s popup view, if it exists. 215 // Hides |popup_controller_|'s popup view, if it exists.
210 void HidePopup(); 216 void HidePopup();
211 217
218 void OpenInNewTab(const GURL& url);
219
212 // The |profile| for |contents_|. 220 // The |profile| for |contents_|.
213 Profile* const profile_; 221 Profile* const profile_;
214 222
215 // The WebContents where the Autofill action originated. 223 // The WebContents where the Autofill action originated.
216 content::WebContents* const contents_; 224 content::WebContents* const contents_;
217 225
218 FormStructure form_structure_; 226 FormStructure form_structure_;
219 227
220 // Whether the URL visible to the user when this dialog was requested to be 228 // Whether the URL visible to the user when this dialog was requested to be
221 // invoked is the same as |source_url_|. 229 // invoked is the same as |source_url_|.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 279
272 // A NotificationRegistrar for tracking the completion of sign-in. 280 // A NotificationRegistrar for tracking the completion of sign-in.
273 content::NotificationRegistrar registrar_; 281 content::NotificationRegistrar registrar_;
274 282
275 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 283 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
276 }; 284 };
277 285
278 } // namespace autofill 286 } // namespace autofill
279 287
280 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 288 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698