OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_DOM_UI_DOM_UI_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_H_ |
6 #define CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 6 #define CHROME_BROWSER_DOM_UI_DOM_UI_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // There are two function variants for one-arg and two-arg calls. | 104 // There are two function variants for one-arg and two-arg calls. |
105 void CallJavascriptFunction(const std::wstring& function_name); | 105 void CallJavascriptFunction(const std::wstring& function_name); |
106 void CallJavascriptFunction(const std::wstring& function_name, | 106 void CallJavascriptFunction(const std::wstring& function_name, |
107 const Value& arg); | 107 const Value& arg); |
108 void CallJavascriptFunction(const std::wstring& function_name, | 108 void CallJavascriptFunction(const std::wstring& function_name, |
109 const Value& arg1, | 109 const Value& arg1, |
110 const Value& arg2); | 110 const Value& arg2); |
111 | 111 |
112 ThemeProvider* GetThemeProvider() const; | 112 ThemeProvider* GetThemeProvider() const; |
113 | 113 |
114 TabContents* tab_contents() { return tab_contents_; } | 114 TabContents* tab_contents() const { return tab_contents_; } |
115 | 115 |
116 Profile* GetProfile(); | 116 Profile* GetProfile(); |
117 | 117 |
118 protected: | 118 protected: |
119 void AddMessageHandler(DOMMessageHandler* handler); | 119 void AddMessageHandler(DOMMessageHandler* handler); |
120 | 120 |
121 // Options that may be overridden by individual DOM UI implementations. The | 121 // Options that may be overridden by individual DOM UI implementations. The |
122 // bool options default to false. See the public getters for more information. | 122 // bool options default to false. See the public getters for more information. |
123 bool hide_favicon_; | 123 bool hide_favicon_; |
124 bool force_bookmark_bar_visible_; | 124 bool force_bookmark_bar_visible_; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Extract a string value from a Value. | 175 // Extract a string value from a Value. |
176 std::wstring ExtractStringValue(const Value* value); | 176 std::wstring ExtractStringValue(const Value* value); |
177 | 177 |
178 DOMUI* dom_ui_; | 178 DOMUI* dom_ui_; |
179 | 179 |
180 private: | 180 private: |
181 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); | 181 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); |
182 }; | 182 }; |
183 | 183 |
184 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 184 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ |
OLD | NEW |