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

Side by Side Diff: trunk/src/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 21372006: Revert 212329 "Reland "Close web contents modal dialogs on conte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "components/autofill/content/browser/wallet/wallet_signin_helper_delega te.h" 26 #include "components/autofill/content/browser/wallet/wallet_signin_helper_delega te.h"
27 #include "components/autofill/core/browser/autofill_manager_delegate.h" 27 #include "components/autofill/core/browser/autofill_manager_delegate.h"
28 #include "components/autofill/core/browser/autofill_metrics.h" 28 #include "components/autofill/core/browser/autofill_metrics.h"
29 #include "components/autofill/core/browser/autofill_popup_delegate.h" 29 #include "components/autofill/core/browser/autofill_popup_delegate.h"
30 #include "components/autofill/core/browser/field_types.h" 30 #include "components/autofill/core/browser/field_types.h"
31 #include "components/autofill/core/browser/form_structure.h" 31 #include "components/autofill/core/browser/form_structure.h"
32 #include "components/autofill/core/browser/personal_data_manager.h" 32 #include "components/autofill/core/browser/personal_data_manager.h"
33 #include "components/autofill/core/browser/personal_data_manager_observer.h" 33 #include "components/autofill/core/browser/personal_data_manager_observer.h"
34 #include "content/public/browser/notification_observer.h" 34 #include "content/public/browser/notification_observer.h"
35 #include "content/public/browser/notification_registrar.h" 35 #include "content/public/browser/notification_registrar.h"
36 #include "content/public/browser/web_contents_observer.h"
37 #include "content/public/common/ssl_status.h" 36 #include "content/public/common/ssl_status.h"
38 #include "ui/base/models/simple_menu_model.h" 37 #include "ui/base/models/simple_menu_model.h"
39 #include "ui/base/ui_base_types.h" 38 #include "ui/base/ui_base_types.h"
40 #include "url/gurl.h" 39 #include "url/gurl.h"
41 40
42 class Profile; 41 class Profile;
43 42
44 namespace content { 43 namespace content {
45 class WebContents; 44 class WebContents;
46 } 45 }
(...skipping 16 matching lines...) Expand all
63 62
64 namespace wallet { 63 namespace wallet {
65 class WalletSigninHelper; 64 class WalletSigninHelper;
66 } 65 }
67 66
68 // This class drives the dialog that appears when a site uses the imperative 67 // This class drives the dialog that appears when a site uses the imperative
69 // autocomplete API to fill out a form. 68 // autocomplete API to fill out a form.
70 class AutofillDialogControllerImpl : public AutofillDialogController, 69 class AutofillDialogControllerImpl : public AutofillDialogController,
71 public AutofillPopupDelegate, 70 public AutofillPopupDelegate,
72 public content::NotificationObserver, 71 public content::NotificationObserver,
73 public content::WebContentsObserver,
74 public SuggestionsMenuModelDelegate, 72 public SuggestionsMenuModelDelegate,
75 public wallet::WalletClientDelegate, 73 public wallet::WalletClientDelegate,
76 public wallet::WalletSigninHelperDelegate, 74 public wallet::WalletSigninHelperDelegate,
77 public PersonalDataManagerObserver, 75 public PersonalDataManagerObserver,
78 public AccountChooserModelDelegate { 76 public AccountChooserModelDelegate {
79 public: 77 public:
80 virtual ~AutofillDialogControllerImpl(); 78 virtual ~AutofillDialogControllerImpl();
81 79
82 static base::WeakPtr<AutofillDialogControllerImpl> Create( 80 static base::WeakPtr<AutofillDialogControllerImpl> Create(
83 content::WebContents* contents, 81 content::WebContents* contents,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 int identifier) OVERRIDE; 187 int identifier) OVERRIDE;
190 virtual void RemoveSuggestion(const string16& value, 188 virtual void RemoveSuggestion(const string16& value,
191 int identifier) OVERRIDE; 189 int identifier) OVERRIDE;
192 virtual void ClearPreviewedForm() OVERRIDE; 190 virtual void ClearPreviewedForm() OVERRIDE;
193 191
194 // content::NotificationObserver implementation. 192 // content::NotificationObserver implementation.
195 virtual void Observe(int type, 193 virtual void Observe(int type,
196 const content::NotificationSource& source, 194 const content::NotificationSource& source,
197 const content::NotificationDetails& details) OVERRIDE; 195 const content::NotificationDetails& details) OVERRIDE;
198 196
199 // content::WebContentsObserver implementation.
200 virtual void DidNavigateMainFrame(
201 const content::LoadCommittedDetails& details,
202 const content::FrameNavigateParams& params) OVERRIDE;
203
204 // SuggestionsMenuModelDelegate implementation. 197 // SuggestionsMenuModelDelegate implementation.
205 virtual void SuggestionItemSelected(SuggestionsMenuModel* model, 198 virtual void SuggestionItemSelected(SuggestionsMenuModel* model,
206 size_t index) OVERRIDE; 199 size_t index) OVERRIDE;
207 200
208 // wallet::WalletClientDelegate implementation. 201 // wallet::WalletClientDelegate implementation.
209 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; 202 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE;
210 virtual DialogType GetDialogType() const OVERRIDE; 203 virtual DialogType GetDialogType() const OVERRIDE;
211 virtual std::string GetRiskData() const OVERRIDE; 204 virtual std::string GetRiskData() const OVERRIDE;
212 virtual std::string GetWalletCookieValue() const OVERRIDE; 205 virtual std::string GetWalletCookieValue() const OVERRIDE;
213 virtual bool IsShippingAddressRequired() const OVERRIDE; 206 virtual bool IsShippingAddressRequired() const OVERRIDE;
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 // show a bubble as the dialog closes to confirm a user's new card info was 716 // show a bubble as the dialog closes to confirm a user's new card info was
724 // saved. Never populated while incognito (as nothing's actually saved). 717 // saved. Never populated while incognito (as nothing's actually saved).
725 scoped_ptr<CreditCard> newly_saved_card_; 718 scoped_ptr<CreditCard> newly_saved_card_;
726 719
727 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 720 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
728 }; 721 };
729 722
730 } // namespace autofill 723 } // namespace autofill
731 724
732 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 725 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698