| 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_OPTIONS2_OPTIONS_UI2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const AutocompleteResult& autocompleteResult, | 110 const AutocompleteResult& autocompleteResult, |
| 111 base::ListValue * const suggestions); | 111 base::ListValue * const suggestions); |
| 112 | 112 |
| 113 static RefCountedMemory* GetFaviconResourceBytes(); | 113 static RefCountedMemory* GetFaviconResourceBytes(); |
| 114 | 114 |
| 115 // WebUIController implementation. | 115 // WebUIController implementation. |
| 116 virtual void RenderViewCreated( | 116 virtual void RenderViewCreated( |
| 117 content::RenderViewHost* render_view_host) OVERRIDE; | 117 content::RenderViewHost* render_view_host) OVERRIDE; |
| 118 virtual void RenderViewReused( | 118 virtual void RenderViewReused( |
| 119 content::RenderViewHost* render_view_host) OVERRIDE; | 119 content::RenderViewHost* render_view_host) OVERRIDE; |
| 120 virtual void DidBecomeActiveForReusedRenderView() OVERRIDE; | |
| 121 | |
| 122 // Overridden from OptionsPageUIHandlerHost: | 120 // Overridden from OptionsPageUIHandlerHost: |
| 123 virtual void InitializeHandlers() OVERRIDE; | 121 virtual void InitializeHandlers() OVERRIDE; |
| 124 | 122 |
| 125 private: | 123 private: |
| 126 // Adds OptionsPageUiHandler to the handlers list if handler is enabled. | 124 // Adds OptionsPageUiHandler to the handlers list if handler is enabled. |
| 127 void AddOptionsPageUIHandler(base::DictionaryValue* localized_strings, | 125 void AddOptionsPageUIHandler(base::DictionaryValue* localized_strings, |
| 128 OptionsPageUIHandler* handler); | 126 OptionsPageUIHandler* handler); |
| 129 | 127 |
| 130 // Sets the WebUI CommandLineString property with arguments passed while | 128 // Sets the WebUI CommandLineString property with arguments passed while |
| 131 // launching chrome. | 129 // launching chrome. |
| 132 void SetCommandLineString(content::RenderViewHost* render_view_host); | 130 void SetCommandLineString(content::RenderViewHost* render_view_host); |
| 133 | 131 |
| 134 bool initialized_handlers_; | 132 bool initialized_handlers_; |
| 135 | 133 |
| 136 std::vector<OptionsPageUIHandler*> handlers_; | 134 std::vector<OptionsPageUIHandler*> handlers_; |
| 137 | 135 |
| 138 #if defined(OS_CHROMEOS) | 136 #if defined(OS_CHROMEOS) |
| 139 scoped_ptr<chromeos::system::PointerDeviceObserver> | 137 scoped_ptr<chromeos::system::PointerDeviceObserver> |
| 140 pointer_device_observer_; | 138 pointer_device_observer_; |
| 141 #endif | 139 #endif |
| 142 | 140 |
| 143 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 141 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
| 144 }; | 142 }; |
| 145 | 143 |
| 146 } // namespace options2 | 144 } // namespace options2 |
| 147 | 145 |
| 148 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ | 146 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ |
| OLD | NEW |