Chromium Code Reviews| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 const Value& arg3, | 123 const Value& arg3, |
| 124 const Value& arg4); | 124 const Value& arg4); |
| 125 void CallJavascriptFunction(const std::wstring& function_name, | 125 void CallJavascriptFunction(const std::wstring& function_name, |
| 126 const std::vector<const Value*>& args); | 126 const std::vector<const Value*>& args); |
| 127 | 127 |
| 128 ThemeProvider* GetThemeProvider() const; | 128 ThemeProvider* GetThemeProvider() const; |
| 129 | 129 |
| 130 // May be overridden by DOMUI's which do not have a tab contents. | 130 // May be overridden by DOMUI's which do not have a tab contents. |
| 131 virtual Profile* GetProfile() const; | 131 virtual Profile* GetProfile() const; |
| 132 | 132 |
| 133 // Convenience function for UI that requires access to the original profile. | |
|
akalin
2011/01/13 04:38:42
I think there's no need for this -- GetProfileSync
stevenjb
2011/01/13 18:00:49
OK, I wasn't sure if this mattered. Definitely bet
| |
| 134 Profile* GetOriginalProfile() const; | |
| 135 | |
| 133 // May be overridden by DOMUI's which do not have a tab contents. | 136 // May be overridden by DOMUI's which do not have a tab contents. |
| 134 virtual RenderViewHost* GetRenderViewHost() const; | 137 virtual RenderViewHost* GetRenderViewHost() const; |
| 135 | 138 |
| 136 TabContents* tab_contents() const { return tab_contents_; } | 139 TabContents* tab_contents() const { return tab_contents_; } |
| 137 | 140 |
| 138 protected: | 141 protected: |
| 139 void AddMessageHandler(DOMMessageHandler* handler); | 142 void AddMessageHandler(DOMMessageHandler* handler); |
| 140 | 143 |
| 141 // Options that may be overridden by individual DOM UI implementations. The | 144 // Options that may be overridden by individual DOM UI implementations. The |
| 142 // bool options default to false. See the public getters for more information. | 145 // bool options default to false. See the public getters for more information. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 // Extract a string value from a list Value. | 198 // Extract a string value from a list Value. |
| 196 std::wstring ExtractStringValue(const ListValue* value); | 199 std::wstring ExtractStringValue(const ListValue* value); |
| 197 | 200 |
| 198 DOMUI* dom_ui_; | 201 DOMUI* dom_ui_; |
| 199 | 202 |
| 200 private: | 203 private: |
| 201 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); | 204 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); |
| 202 }; | 205 }; |
| 203 | 206 |
| 204 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 207 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ |
| OLD | NEW |