| OLD | NEW |
| 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_WEBUI_OPTIONS_OPTIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 class PointerDeviceObserver; | 34 class PointerDeviceObserver; |
| 35 } // namespace system | 35 } // namespace system |
| 36 } // namespace chromeos | 36 } // namespace chromeos |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 namespace options { | 39 namespace options { |
| 40 | 40 |
| 41 // The base class handler of Javascript messages of options pages. | 41 // The base class handler of Javascript messages of options pages. |
| 42 class OptionsPageUIHandler : public content::WebUIMessageHandler { | 42 class OptionsPageUIHandler : public content::WebUIMessageHandler { |
| 43 public: | 43 public: |
| 44 // Key for identifying the Settings App localized_strings in loadTimeData. | |
| 45 static const char kSettingsAppKey[]; | |
| 46 | |
| 47 OptionsPageUIHandler(); | 44 OptionsPageUIHandler(); |
| 48 ~OptionsPageUIHandler() override; | 45 ~OptionsPageUIHandler() override; |
| 49 | 46 |
| 50 // Is this handler enabled? | 47 // Is this handler enabled? |
| 51 virtual bool IsEnabled(); | 48 virtual bool IsEnabled(); |
| 52 | 49 |
| 53 // Collects localized strings for options page. | 50 // Collects localized strings for options page. |
| 54 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) = 0; | 51 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) = 0; |
| 55 | 52 |
| 56 virtual void PageLoadStarted() {} | 53 virtual void PageLoadStarted() {} |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 #endif | 158 #endif |
| 162 | 159 |
| 163 base::Time load_start_time_; | 160 base::Time load_start_time_; |
| 164 | 161 |
| 165 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 162 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
| 166 }; | 163 }; |
| 167 | 164 |
| 168 } // namespace options | 165 } // namespace options |
| 169 | 166 |
| 170 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 167 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| OLD | NEW |