| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <CoreGraphics/CoreGraphics.h> | 8 #include <CoreGraphics/CoreGraphics.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual InfoBarViewPlaceholder CreateInfoBarView( | 79 virtual InfoBarViewPlaceholder CreateInfoBarView( |
| 80 CGRect frame, | 80 CGRect frame, |
| 81 InfoBarViewDelegate* delegate); | 81 InfoBarViewDelegate* delegate); |
| 82 // Returns an instance of a string provider. | 82 // Returns an instance of a string provider. |
| 83 virtual StringProvider* GetStringProvider(); | 83 virtual StringProvider* GetStringProvider(); |
| 84 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); | 84 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); |
| 85 // Displays the Translate settings screen. | 85 // Displays the Translate settings screen. |
| 86 virtual void ShowTranslateSettings(); | 86 virtual void ShowTranslateSettings(); |
| 87 // Returns the distribution brand code. | 87 // Returns the distribution brand code. |
| 88 virtual std::string GetDistributionBrandCode(); | 88 virtual std::string GetDistributionBrandCode(); |
| 89 // Returns whether the new bookmark collection experience is enabled. | |
| 90 virtual bool IsBookmarkCollectionEnabled(); | |
| 91 // Returns the chrome UI scheme. | 89 // Returns the chrome UI scheme. |
| 92 // TODO(droger): Remove this method once chrome no longer needs to match | 90 // TODO(droger): Remove this method once chrome no longer needs to match |
| 93 // content. | 91 // content. |
| 94 virtual const char* GetChromeUIScheme(); | 92 virtual const char* GetChromeUIScheme(); |
| 95 // Sets the alpha property of an UIView with an animation. | 93 // Sets the alpha property of an UIView with an animation. |
| 96 virtual void SetUIViewAlphaWithAnimation(UIView* view, float alpha); | 94 virtual void SetUIViewAlphaWithAnimation(UIView* view, float alpha); |
| 97 // Returns the metrics service. | 95 // Returns the metrics service. |
| 98 virtual metrics::MetricsService* GetMetricsService(); | 96 virtual metrics::MetricsService* GetMetricsService(); |
| 99 // Returns an instance of a CardUnmaskPromptView used to unmask Wallet cards. | 97 // Returns an instance of a CardUnmaskPromptView used to unmask Wallet cards. |
| 100 // The view is responsible for its own lifetime. | 98 // The view is responsible for its own lifetime. |
| 101 virtual autofill::CardUnmaskPromptView* CreateCardUnmaskPromptView( | 99 virtual autofill::CardUnmaskPromptView* CreateCardUnmaskPromptView( |
| 102 autofill::CardUnmaskPromptController* controller); | 100 autofill::CardUnmaskPromptController* controller); |
| 103 // Returns risk data used in Wallet requests. | 101 // Returns risk data used in Wallet requests. |
| 104 virtual std::string GetRiskData(); | 102 virtual std::string GetRiskData(); |
| 105 // Returns product version with prefix. | 103 // Returns product version with prefix. |
| 106 virtual std::string GetProductVersionWithPrefix(const std::string& prefix); | 104 virtual std::string GetProductVersionWithPrefix(const std::string& prefix); |
| 107 // Returns a version string to be displayed in "About Chromium" dialog. | 105 // Returns a version string to be displayed in "About Chromium" dialog. |
| 108 virtual std::string GetVersionString(); | 106 virtual std::string GetVersionString(); |
| 109 // Version number, e.g. "6.0.490.1". | 107 // Version number, e.g. "6.0.490.1". |
| 110 virtual std::string GetVersionNumber(); | 108 virtual std::string GetVersionNumber(); |
| 111 // Returns the RapporService. May be null. | 109 // Returns the RapporService. May be null. |
| 112 virtual rappor::RapporService* GetRapporService(); | 110 virtual rappor::RapporService* GetRapporService(); |
| 113 // Returns the SearchProvider. | 111 // Returns the SearchProvider. |
| 114 virtual SearchProvider* GetSearchProvider(); | 112 virtual SearchProvider* GetSearchProvider(); |
| 115 }; | 113 }; |
| 116 | 114 |
| 117 } // namespace ios | 115 } // namespace ios |
| 118 | 116 |
| 119 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 117 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |