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

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client.h

Issue 769593003: Move ZoomObserver, ZoomController and ZoomEventManager to components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac build fix #4. Created 6 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROME_AUTOFILL_CLIENT_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/ui/zoom/zoom_observer.h"
13 #include "components/autofill/core/browser/autofill_client.h" 12 #include "components/autofill/core/browser/autofill_client.h"
14 #include "content/public/browser/web_contents_observer.h" 13 #include "content/public/browser/web_contents_observer.h"
15 #include "content/public/browser/web_contents_user_data.h" 14 #include "content/public/browser/web_contents_user_data.h"
15 #include "extensions/browser/ui/zoom/zoom_observer.h"
16 16
17 namespace content { 17 namespace content {
18 struct FrameNavigateParams; 18 struct FrameNavigateParams;
19 struct LoadCommittedDetails; 19 struct LoadCommittedDetails;
20 class WebContents; 20 class WebContents;
21 } 21 }
22 22
23 namespace autofill { 23 namespace autofill {
24 24
25 class AutofillDialogController; 25 class AutofillDialogController;
26 class AutofillKeystoneBridgeWrapper; 26 class AutofillKeystoneBridgeWrapper;
27 class AutofillPopupControllerImpl; 27 class AutofillPopupControllerImpl;
28 class CreditCardScannerController; 28 class CreditCardScannerController;
29 struct FormData; 29 struct FormData;
30 30
31 // Chrome implementation of AutofillClient. 31 // Chrome implementation of AutofillClient.
32 class ChromeAutofillClient 32 class ChromeAutofillClient
33 : public AutofillClient, 33 : public AutofillClient,
34 public content::WebContentsUserData<ChromeAutofillClient>, 34 public content::WebContentsUserData<ChromeAutofillClient>,
35 public content::WebContentsObserver, 35 public content::WebContentsObserver,
36 public ZoomObserver { 36 public extensions::ZoomObserver {
37 public: 37 public:
38 ~ChromeAutofillClient() override; 38 ~ChromeAutofillClient() override;
39 39
40 // Called when the tab corresponding to |this| instance is activated. 40 // Called when the tab corresponding to |this| instance is activated.
41 void TabActivated(); 41 void TabActivated();
42 42
43 // AutofillClient: 43 // AutofillClient:
44 PersonalDataManager* GetPersonalDataManager() override; 44 PersonalDataManager* GetPersonalDataManager() override;
45 scoped_refptr<AutofillWebDataService> GetDatabase() override; 45 scoped_refptr<AutofillWebDataService> GetDatabase() override;
46 PrefService* GetPrefs() override; 46 PrefService* GetPrefs() override;
(...skipping 21 matching lines...) Expand all
68 bool IsAutocompleteEnabled() override; 68 bool IsAutocompleteEnabled() override;
69 void DetectAccountCreationForms( 69 void DetectAccountCreationForms(
70 const std::vector<autofill::FormStructure*>& forms) override; 70 const std::vector<autofill::FormStructure*>& forms) override;
71 void DidFillOrPreviewField(const base::string16& autofilled_value, 71 void DidFillOrPreviewField(const base::string16& autofilled_value,
72 const base::string16& profile_full_name) override; 72 const base::string16& profile_full_name) override;
73 73
74 // content::WebContentsObserver implementation. 74 // content::WebContentsObserver implementation.
75 void WebContentsDestroyed() override; 75 void WebContentsDestroyed() override;
76 76
77 // ZoomObserver implementation. 77 // ZoomObserver implementation.
78 void OnZoomChanged(const ZoomController::ZoomChangedEventData& data) override; 78 void OnZoomChanged(
79 const extensions::ZoomController::ZoomChangedEventData& data) override;
79 80
80 // Exposed for testing. 81 // Exposed for testing.
81 AutofillDialogController* GetDialogControllerForTesting() { 82 AutofillDialogController* GetDialogControllerForTesting() {
82 return dialog_controller_.get(); 83 return dialog_controller_.get();
83 } 84 }
84 void SetDialogControllerForTesting( 85 void SetDialogControllerForTesting(
85 const base::WeakPtr<AutofillDialogController>& dialog_controller) { 86 const base::WeakPtr<AutofillDialogController>& dialog_controller) {
86 dialog_controller_ = dialog_controller; 87 dialog_controller_ = dialog_controller;
87 } 88 }
88 89
(...skipping 24 matching lines...) Expand all
113 // scoped_ptr. 114 // scoped_ptr.
114 AutofillKeystoneBridgeWrapper* bridge_wrapper_; 115 AutofillKeystoneBridgeWrapper* bridge_wrapper_;
115 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 116 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
116 117
117 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); 118 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
118 }; 119 };
119 120
120 } // namespace autofill 121 } // namespace autofill
121 122
122 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 123 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698