| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 public: | 103 public: |
| 104 explicit OptionsUI(content::WebUI* web_ui); | 104 explicit OptionsUI(content::WebUI* web_ui); |
| 105 virtual ~OptionsUI(); | 105 virtual ~OptionsUI(); |
| 106 | 106 |
| 107 // Takes the suggestions from |autocompleteResult| and adds them to | 107 // Takes the suggestions from |autocompleteResult| and adds them to |
| 108 // |suggestions| so that they can be passed to a JavaScript function. | 108 // |suggestions| so that they can be passed to a JavaScript function. |
| 109 static void ProcessAutocompleteSuggestions( | 109 static void ProcessAutocompleteSuggestions( |
| 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 base::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 // Overridden from OptionsPageUIHandlerHost: | 120 // Overridden from OptionsPageUIHandlerHost: |
| 121 virtual void InitializeHandlers() OVERRIDE; | 121 virtual void InitializeHandlers() OVERRIDE; |
| 122 | 122 |
| 123 private: | 123 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 137 scoped_ptr<chromeos::system::PointerDeviceObserver> | 137 scoped_ptr<chromeos::system::PointerDeviceObserver> |
| 138 pointer_device_observer_; | 138 pointer_device_observer_; |
| 139 #endif | 139 #endif |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 141 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace options2 | 144 } // namespace options2 |
| 145 | 145 |
| 146 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ | 146 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ |
| OLD | NEW |