OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_WEB_CONTENTS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // | 101 // |
102 // (1) will be fixed once interstitials are cleaned up. (2) seems like it | 102 // (1) will be fixed once interstitials are cleaned up. (2) seems like it |
103 // should be cleaned up or done some other way, since this works for normal | 103 // should be cleaned up or done some other way, since this works for normal |
104 // TabContents without the special code. | 104 // TabContents without the special code. |
105 virtual void SizeContents(const gfx::Size& size) = 0; | 105 virtual void SizeContents(const gfx::Size& size) = 0; |
106 | 106 |
107 // Invoked from the platform dependent web contents view when a | 107 // Invoked from the platform dependent web contents view when a |
108 // RenderWidgetHost is deleted. Removes |host| from internal maps. | 108 // RenderWidgetHost is deleted. Removes |host| from internal maps. |
109 void RenderWidgetHostDestroyed(RenderWidgetHost* host); | 109 void RenderWidgetHostDestroyed(RenderWidgetHost* host); |
110 | 110 |
| 111 // Opens developer tools window for the page. |
| 112 virtual void OpenDeveloperTools() = 0; |
| 113 |
| 114 // Forwards message to DevToolsClient in developer tools window open for this |
| 115 // page. |
| 116 virtual void ForwardMessageToDevToolsClient(const IPC::Message& message) = 0; |
| 117 |
111 protected: | 118 protected: |
112 WebContentsView() {} // Abstract interface. | 119 WebContentsView() {} // Abstract interface. |
113 | 120 |
114 // Internal interface for some functions in the RenderViewHostDelegate::View | 121 // Internal interface for some functions in the RenderViewHostDelegate::View |
115 // interface. Subclasses should implement this rather than the corresponding | 122 // interface. Subclasses should implement this rather than the corresponding |
116 // ...::View functions directly, since the routing stuff will already be | 123 // ...::View functions directly, since the routing stuff will already be |
117 // computed. They should implement the rest of the functions as normal. | 124 // computed. They should implement the rest of the functions as normal. |
118 // | 125 // |
119 // The only difference is that the Create functions return the newly | 126 // The only difference is that the Create functions return the newly |
120 // created objects so that they can be associated with the given routes. When | 127 // created objects so that they can be associated with the given routes. When |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 159 |
153 // These maps hold on to the widgets that we created on behalf of the | 160 // These maps hold on to the widgets that we created on behalf of the |
154 // renderer that haven't shown yet. | 161 // renderer that haven't shown yet. |
155 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; | 162 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; |
156 PendingWidgetViews pending_widget_views_; | 163 PendingWidgetViews pending_widget_views_; |
157 | 164 |
158 DISALLOW_COPY_AND_ASSIGN(WebContentsView); | 165 DISALLOW_COPY_AND_ASSIGN(WebContentsView); |
159 }; | 166 }; |
160 | 167 |
161 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_H_ | 168 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_H_ |
OLD | NEW |