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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 const Value& arg2); | 113 const Value& arg2); |
114 void CallJavascriptFunction(const std::wstring& function_name, | 114 void CallJavascriptFunction(const std::wstring& function_name, |
115 const Value& arg1, | 115 const Value& arg1, |
116 const Value& arg2, | 116 const Value& arg2, |
117 const Value& arg3); | 117 const Value& arg3); |
118 | 118 |
119 ThemeProvider* GetThemeProvider() const; | 119 ThemeProvider* GetThemeProvider() const; |
120 | 120 |
121 TabContents* tab_contents() const { return tab_contents_; } | 121 TabContents* tab_contents() const { return tab_contents_; } |
122 | 122 |
123 Profile* GetProfile(); | 123 Profile* GetProfile() const; |
124 | 124 |
125 protected: | 125 protected: |
126 void AddMessageHandler(DOMMessageHandler* handler); | 126 void AddMessageHandler(DOMMessageHandler* handler); |
127 | 127 |
128 // Options that may be overridden by individual DOM UI implementations. The | 128 // Options that may be overridden by individual DOM UI implementations. The |
129 // bool options default to false. See the public getters for more information. | 129 // bool options default to false. See the public getters for more information. |
130 bool hide_favicon_; | 130 bool hide_favicon_; |
131 bool force_bookmark_bar_visible_; | 131 bool force_bookmark_bar_visible_; |
132 bool force_extension_shelf_visible_; | 132 bool force_extension_shelf_visible_; |
133 bool focus_location_bar_by_default_; | 133 bool focus_location_bar_by_default_; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Extract a string value from a list Value. | 183 // Extract a string value from a list Value. |
184 std::wstring ExtractStringValue(const Value* value); | 184 std::wstring ExtractStringValue(const Value* value); |
185 | 185 |
186 DOMUI* dom_ui_; | 186 DOMUI* dom_ui_; |
187 | 187 |
188 private: | 188 private: |
189 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); | 189 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); |
190 }; | 190 }; |
191 | 191 |
192 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 192 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ |
OLD | NEW |