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_EXTENSIONS_EXTENSION_DOM_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 // DOMUI | 44 // DOMUI |
45 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 45 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
46 virtual void RenderViewReused(RenderViewHost* render_view_host); | 46 virtual void RenderViewReused(RenderViewHost* render_view_host); |
47 virtual void ProcessDOMUIMessage(const ViewHostMsg_DomMessage_Params& params); | 47 virtual void ProcessDOMUIMessage(const ViewHostMsg_DomMessage_Params& params); |
48 | 48 |
49 // ExtensionFunctionDispatcher::Delegate | 49 // ExtensionFunctionDispatcher::Delegate |
50 virtual Browser* GetBrowser(); | 50 virtual Browser* GetBrowser(); |
51 virtual gfx::NativeView GetNativeViewOfHost(); | 51 virtual gfx::NativeView GetNativeViewOfHost(); |
52 virtual gfx::NativeWindow GetCustomFrameNativeWindow(); | |
53 virtual TabContents* associated_tab_contents() const; | 52 virtual TabContents* associated_tab_contents() const; |
54 | 53 |
55 virtual ExtensionBookmarkManagerEventRouter* | 54 virtual ExtensionBookmarkManagerEventRouter* |
56 extension_bookmark_manager_event_router(); | 55 extension_bookmark_manager_event_router(); |
57 | 56 |
58 // BrowserURLHandler | 57 // BrowserURLHandler |
59 static bool HandleChromeURLOverride(GURL* url, Profile* profile); | 58 static bool HandleChromeURLOverride(GURL* url, Profile* profile); |
60 | 59 |
61 // Register and unregister a dictionary of one or more overrides. | 60 // Register and unregister a dictionary of one or more overrides. |
62 // Page names are the keys, and chrome-extension: URLs are the values. | 61 // Page names are the keys, and chrome-extension: URLs are the values. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // TODO(aa): This seems out of place. Why is it not with the event routers for | 96 // TODO(aa): This seems out of place. Why is it not with the event routers for |
98 // the other extension APIs? | 97 // the other extension APIs? |
99 scoped_ptr<ExtensionBookmarkManagerEventRouter> | 98 scoped_ptr<ExtensionBookmarkManagerEventRouter> |
100 extension_bookmark_manager_event_router_; | 99 extension_bookmark_manager_event_router_; |
101 | 100 |
102 // The URL this DOMUI was created for. | 101 // The URL this DOMUI was created for. |
103 GURL url_; | 102 GURL url_; |
104 }; | 103 }; |
105 | 104 |
106 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ | 105 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ |
OLD | NEW |