OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 17 matching lines...) Expand all Loading... | |
28 // Is this handler enabled? | 28 // Is this handler enabled? |
29 virtual bool IsEnabled(); | 29 virtual bool IsEnabled(); |
30 | 30 |
31 // Collects localized strings for options page. | 31 // Collects localized strings for options page. |
32 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) = 0; | 32 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) = 0; |
33 | 33 |
34 // Initialize the page. Called once the DOM is available for manipulation. | 34 // Initialize the page. Called once the DOM is available for manipulation. |
35 // This will be called only once. | 35 // This will be called only once. |
36 virtual void Initialize() {} | 36 virtual void Initialize() {} |
37 | 37 |
38 // Actually sends down values after initialization to the webui page. | |
Evan Stade
2012/03/13 20:44:50
expand comment to highlight differences between th
csilv
2012/03/13 20:59:49
nit: remove the word "Actually".
Dan Beam
2012/03/13 23:01:45
Done.
Dan Beam
2012/03/13 23:01:45
Done.
| |
39 virtual void SendPageValues() {} | |
Evan Stade
2012/03/13 20:44:50
I am not too keen on this name. How about:
Refres
csilv
2012/03/13 20:59:49
I had the same reaction to the method name.
I rea
Dan Beam
2012/03/13 23:01:45
Done.
| |
40 | |
38 // Uninitializes the page. Called just before the object is destructed. | 41 // Uninitializes the page. Called just before the object is destructed. |
39 virtual void Uninitialize() {} | 42 virtual void Uninitialize() {} |
40 | 43 |
41 // WebUIMessageHandler implementation. | 44 // WebUIMessageHandler implementation. |
42 virtual void RegisterMessages() OVERRIDE {} | 45 virtual void RegisterMessages() OVERRIDE {} |
43 | 46 |
44 // content::NotificationObserver implementation. | 47 // content::NotificationObserver implementation. |
45 virtual void Observe(int type, | 48 virtual void Observe(int type, |
46 const content::NotificationSource& source, | 49 const content::NotificationSource& source, |
47 const content::NotificationDetails& details) OVERRIDE {} | 50 const content::NotificationDetails& details) OVERRIDE {} |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 void SetCommandLineString(content::RenderViewHost* render_view_host); | 111 void SetCommandLineString(content::RenderViewHost* render_view_host); |
109 | 112 |
110 bool initialized_handlers_; | 113 bool initialized_handlers_; |
111 | 114 |
112 std::vector<OptionsPageUIHandler*> handlers_; | 115 std::vector<OptionsPageUIHandler*> handlers_; |
113 | 116 |
114 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 117 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
115 }; | 118 }; |
116 | 119 |
117 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 120 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
OLD | NEW |