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

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

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Rebase. Created 3 years, 7 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/autofill/chrome_autofill_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/i18n/rtl.h" 14 #include "base/i18n/rtl.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "components/autofill/core/browser/autofill_client.h" 17 #include "components/autofill/core/browser/autofill_client.h"
18 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl .h" 18 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl .h"
19 #include "components/zoom/zoom_observer.h"
20 #include "content/public/browser/web_contents_observer.h" 19 #include "content/public/browser/web_contents_observer.h"
21 #include "content/public/browser/web_contents_user_data.h" 20 #include "content/public/browser/web_contents_user_data.h"
22 21
22 #if !defined(OS_ANDROID)
23 #include "components/zoom/zoom_observer.h"
24 #endif // !defined(OS_ANDROID)
25
23 namespace content { 26 namespace content {
24 class WebContents; 27 class WebContents;
25 } 28 }
26 29
27 namespace autofill { 30 namespace autofill {
28 31
29 class AutofillPopupControllerImpl; 32 class AutofillPopupControllerImpl;
30 33
31 // Chrome implementation of AutofillClient. 34 // Chrome implementation of AutofillClient.
32 class ChromeAutofillClient 35 class ChromeAutofillClient
33 : public AutofillClient, 36 : public AutofillClient,
34 public content::WebContentsUserData<ChromeAutofillClient>, 37 public content::WebContentsUserData<ChromeAutofillClient>,
35 public content::WebContentsObserver, 38 public content::WebContentsObserver
36 public zoom::ZoomObserver { 39 #if !defined(OS_ANDROID)
40 ,
41 public zoom::ZoomObserver
42 #endif // !defined(OS_ANDROID)
43 {
37 public: 44 public:
38 ~ChromeAutofillClient() override; 45 ~ChromeAutofillClient() override;
39 46
40 // AutofillClient: 47 // AutofillClient:
41 PersonalDataManager* GetPersonalDataManager() override; 48 PersonalDataManager* GetPersonalDataManager() override;
42 scoped_refptr<AutofillWebDataService> GetDatabase() override; 49 scoped_refptr<AutofillWebDataService> GetDatabase() override;
43 PrefService* GetPrefs() override; 50 PrefService* GetPrefs() override;
44 syncer::SyncService* GetSyncService() override; 51 syncer::SyncService* GetSyncService() override;
45 IdentityProvider* GetIdentityProvider() override; 52 IdentityProvider* GetIdentityProvider() override;
46 rappor::RapporServiceImpl* GetRapporServiceImpl() override; 53 rappor::RapporServiceImpl* GetRapporServiceImpl() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const base::string16& profile_full_name) override; 88 const base::string16& profile_full_name) override;
82 bool IsContextSecure() override; 89 bool IsContextSecure() override;
83 bool ShouldShowSigninPromo() override; 90 bool ShouldShowSigninPromo() override;
84 void StartSigninFlow() override; 91 void StartSigninFlow() override;
85 void ShowHttpNotSecureExplanation() override; 92 void ShowHttpNotSecureExplanation() override;
86 93
87 // content::WebContentsObserver implementation. 94 // content::WebContentsObserver implementation.
88 void MainFrameWasResized(bool width_changed) override; 95 void MainFrameWasResized(bool width_changed) override;
89 void WebContentsDestroyed() override; 96 void WebContentsDestroyed() override;
90 97
98 #if !defined(OS_ANDROID)
91 // ZoomObserver implementation. 99 // ZoomObserver implementation.
92 void OnZoomChanged( 100 void OnZoomChanged(
93 const zoom::ZoomController::ZoomChangedEventData& data) override; 101 const zoom::ZoomController::ZoomChangedEventData& data) override;
102 #endif // !defined(OS_ANDROID)
94 103
95 private: 104 private:
96 explicit ChromeAutofillClient(content::WebContents* web_contents); 105 explicit ChromeAutofillClient(content::WebContents* web_contents);
97 friend class content::WebContentsUserData<ChromeAutofillClient>; 106 friend class content::WebContentsUserData<ChromeAutofillClient>;
98 107
99 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; 108 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
100 CardUnmaskPromptControllerImpl unmask_controller_; 109 CardUnmaskPromptControllerImpl unmask_controller_;
101 110
102 // The identity provider, used for Payments integration. 111 // The identity provider, used for Payments integration.
103 std::unique_ptr<IdentityProvider> identity_provider_; 112 std::unique_ptr<IdentityProvider> identity_provider_;
104 113
105 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); 114 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
106 }; 115 };
107 116
108 } // namespace autofill 117 } // namespace autofill
109 118
110 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ 119 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/autofill/chrome_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698