| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Key for identifying the Settings App localized_strings in loadTimeData. | 41 // Key for identifying the Settings App localized_strings in loadTimeData. |
| 42 static const char kSettingsAppKey[]; | 42 static const char kSettingsAppKey[]; |
| 43 | 43 |
| 44 OptionsPageUIHandler(); | 44 OptionsPageUIHandler(); |
| 45 virtual ~OptionsPageUIHandler(); | 45 virtual ~OptionsPageUIHandler(); |
| 46 | 46 |
| 47 // Is this handler enabled? | 47 // Is this handler enabled? |
| 48 virtual bool IsEnabled(); | 48 virtual bool IsEnabled(); |
| 49 | 49 |
| 50 // Collects localized strings for options page. | 50 // Collects localized strings for options page. |
| 51 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) = 0; | 51 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) {} |
| 52 | 52 |
| 53 virtual void PageLoadStarted() {} | 53 virtual void PageLoadStarted() {} |
| 54 | 54 |
| 55 // Will be called only once in the life time of the handler. Generally used to | 55 // Will be called only once in the life time of the handler. Generally used to |
| 56 // add observers, initializes preferences, or start asynchronous calls from | 56 // add observers, initializes preferences, or start asynchronous calls from |
| 57 // various services. | 57 // various services. |
| 58 virtual void InitializeHandler() {} | 58 virtual void InitializeHandler() {} |
| 59 | 59 |
| 60 // Initialize the page. Called once the DOM is available for manipulation. | 60 // Initialize the page. Called once the DOM is available for manipulation. |
| 61 // This will be called when a RenderView is re-used (when navigated to with | 61 // This will be called when a RenderView is re-used (when navigated to with |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 scoped_ptr<chromeos::system::PointerDeviceObserver> | 159 scoped_ptr<chromeos::system::PointerDeviceObserver> |
| 160 pointer_device_observer_; | 160 pointer_device_observer_; |
| 161 #endif | 161 #endif |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 163 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace options | 166 } // namespace options |
| 167 | 167 |
| 168 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 168 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| OLD | NEW |