OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void CallJavascriptFunction(const std::wstring& function_name, | 109 void CallJavascriptFunction(const std::wstring& function_name, |
110 const Value& arg); | 110 const Value& arg); |
111 void CallJavascriptFunction(const std::wstring& function_name, | 111 void CallJavascriptFunction(const std::wstring& function_name, |
112 const Value& arg1, | 112 const Value& arg1, |
113 const Value& arg2); | 113 const Value& arg2); |
114 | 114 |
115 ThemeProvider* GetThemeProvider() const; | 115 ThemeProvider* GetThemeProvider() const; |
116 | 116 |
117 TabContents* tab_contents() const { return tab_contents_; } | 117 TabContents* tab_contents() const { return tab_contents_; } |
118 | 118 |
119 Profile* GetProfile() const; | 119 Profile* GetProfile(); |
120 | 120 |
121 protected: | 121 protected: |
122 void AddMessageHandler(DOMMessageHandler* handler); | 122 void AddMessageHandler(DOMMessageHandler* handler); |
123 | 123 |
124 // Options that may be overridden by individual DOM UI implementations. The | 124 // Options that may be overridden by individual DOM UI implementations. The |
125 // bool options default to false. See the public getters for more information. | 125 // bool options default to false. See the public getters for more information. |
126 bool hide_favicon_; | 126 bool hide_favicon_; |
127 bool force_bookmark_bar_visible_; | 127 bool force_bookmark_bar_visible_; |
128 bool force_extension_shelf_visible_; | 128 bool force_extension_shelf_visible_; |
129 bool focus_location_bar_by_default_; | 129 bool focus_location_bar_by_default_; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Extract a string value from a list Value. | 179 // Extract a string value from a list Value. |
180 std::wstring ExtractStringValue(const Value* value); | 180 std::wstring ExtractStringValue(const Value* value); |
181 | 181 |
182 DOMUI* dom_ui_; | 182 DOMUI* dom_ui_; |
183 | 183 |
184 private: | 184 private: |
185 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); | 185 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); |
186 }; | 186 }; |
187 | 187 |
188 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 188 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ |
OLD | NEW |