| 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_STRING_PROVIDER_H_ | 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_STRING_PROVIDER_H_ |
| 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_STRING_PROVIDER_H_ | 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_STRING_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // is no longer necessary. | 23 // is no longer necessary. |
| 24 class StringProvider { | 24 class StringProvider { |
| 25 public: | 25 public: |
| 26 StringProvider() {} | 26 StringProvider() {} |
| 27 virtual ~StringProvider() {} | 27 virtual ~StringProvider() {} |
| 28 | 28 |
| 29 // Returns the string to display in the omnibox context menu for the user to | 29 // Returns the string to display in the omnibox context menu for the user to |
| 30 // copy the URL for the current search query into the pasteboard. | 30 // copy the URL for the current search query into the pasteboard. |
| 31 virtual std::string GetOmniboxCopyUrlString() = 0; | 31 virtual std::string GetOmniboxCopyUrlString() = 0; |
| 32 | 32 |
| 33 // Returns the resource IDs for the strings that are used in the Apple flags | |
| 34 // page (i.e., chrome://ui-alternatives). | |
| 35 virtual int GetAppleFlagsTableTitleID() = 0; | |
| 36 virtual int GetAppleFlagsNoExperimentsAvailableID() = 0; | |
| 37 | |
| 38 // Return the strings used to display spoofing attempt errors. | 33 // Return the strings used to display spoofing attempt errors. |
| 39 virtual base::string16 GetSpoofingInterstitialTitle() = 0; | 34 virtual base::string16 GetSpoofingInterstitialTitle() = 0; |
| 40 virtual base::string16 GetSpoofingInterstitialHeadline() = 0; | 35 virtual base::string16 GetSpoofingInterstitialHeadline() = 0; |
| 41 virtual base::string16 GetSpoofingInterstitialMessage() = 0; | 36 virtual base::string16 GetSpoofingInterstitialMessage() = 0; |
| 42 virtual base::string16 GetSpoofingInterstitialDetails() = 0; | 37 virtual base::string16 GetSpoofingInterstitialDetails() = 0; |
| 43 virtual base::string16 GetSpoofingInterstitialFailure() = 0; | 38 virtual base::string16 GetSpoofingInterstitialFailure() = 0; |
| 44 | 39 |
| 45 // Return the resource IDs used to display unsafe port errors. | 40 // Return the resource IDs used to display unsafe port errors. |
| 46 virtual int GetUnsafePortTitleID() = 0; | 41 virtual int GetUnsafePortTitleID() = 0; |
| 47 virtual int GetUnsafePortHeadlineID() = 0; | 42 virtual int GetUnsafePortHeadlineID() = 0; |
| 48 virtual int GetUnsafePortMessageID() = 0; | 43 virtual int GetUnsafePortMessageID() = 0; |
| 49 virtual int GetUnsafePortDetailsID() = 0; | 44 virtual int GetUnsafePortDetailsID() = 0; |
| 50 | 45 |
| 51 // Returns a generic "Done" string. | 46 // Returns a generic "Done" string. |
| 52 virtual base::string16 GetDoneString() = 0; | 47 virtual base::string16 GetDoneString() = 0; |
| 53 // Returns a generic "OK" string. | 48 // Returns a generic "OK" string. |
| 54 virtual base::string16 GetOKString() = 0; | 49 virtual base::string16 GetOKString() = 0; |
| 55 // Returns the product name (e.g. "Google Chrome"). | 50 // Returns the product name (e.g. "Google Chrome"). |
| 56 virtual base::string16 GetProductName() = 0; | 51 virtual base::string16 GetProductName() = 0; |
| 57 }; | 52 }; |
| 58 | 53 |
| 59 } // namespace ios | 54 } // namespace ios |
| 60 | 55 |
| 61 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_STRING_PROVIDER_H_ | 56 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_STRING_PROVIDER_H_ |
| OLD | NEW |