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_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 // Called on the IO thread when a UpdateRect message is received. | 123 // Called on the IO thread when a UpdateRect message is received. |
124 void DidReceiveUpdateMsg(const IPC::Message& msg); | 124 void DidReceiveUpdateMsg(const IPC::Message& msg); |
125 | 125 |
126 void CreateNewWindow(const ViewHostMsg_CreateWindow_Params& params, | 126 void CreateNewWindow(const ViewHostMsg_CreateWindow_Params& params, |
127 base::ProcessHandle render_process, | 127 base::ProcessHandle render_process, |
128 int* route_id); | 128 int* route_id); |
129 void CreateNewWidget(int opener_id, | 129 void CreateNewWidget(int opener_id, |
130 WebKit::WebPopupType popup_type, | 130 WebKit::WebPopupType popup_type, |
131 int* route_id); | 131 int* route_id); |
132 void CreateNewFullscreenWidget(int opener_id, | 132 void CreateNewFullscreenWidget(int opener_id, int* route_id); |
133 WebKit::WebPopupType popup_type, | |
134 int* route_id); | |
135 | 133 |
136 #if defined(OS_MACOSX) | 134 #if defined(OS_MACOSX) |
137 // Called on the IO thread to handle the allocation of a TransportDIB. If | 135 // Called on the IO thread to handle the allocation of a TransportDIB. If |
138 // |cache_in_browser| is |true|, then a copy of the shmem is kept by the | 136 // |cache_in_browser| is |true|, then a copy of the shmem is kept by the |
139 // browser, and it is the caller's repsonsibility to call | 137 // browser, and it is the caller's repsonsibility to call |
140 // FreeTransportDIB(). In all cases, the caller is responsible for deleting | 138 // FreeTransportDIB(). In all cases, the caller is responsible for deleting |
141 // the resulting TransportDIB. | 139 // the resulting TransportDIB. |
142 void AllocTransportDIB(size_t size, | 140 void AllocTransportDIB(size_t size, |
143 bool cache_in_browser, | 141 bool cache_in_browser, |
144 TransportDIB::Handle* result); | 142 TransportDIB::Handle* result); |
(...skipping 25 matching lines...) Expand all Loading... |
170 int route_id); | 168 int route_id); |
171 | 169 |
172 // Called on the IO thread after a window was created on the UI thread. | 170 // Called on the IO thread after a window was created on the UI thread. |
173 void OnCreateWindowOnIO(int route_id); | 171 void OnCreateWindowOnIO(int route_id); |
174 | 172 |
175 // Called on the UI thread to finish creating a widget. | 173 // Called on the UI thread to finish creating a widget. |
176 void OnCreateWidgetOnUI(int opener_id, | 174 void OnCreateWidgetOnUI(int opener_id, |
177 int route_id, | 175 int route_id, |
178 WebKit::WebPopupType popup_type); | 176 WebKit::WebPopupType popup_type); |
179 | 177 |
180 // Called on the UI thread to create a full screen widget. | 178 // Called on the UI thread to create a fullscreen widget. |
181 void OnCreateFullscreenWidgetOnUI(int opener_id, | 179 void OnCreateFullscreenWidgetOnUI(int opener_id, int route_id); |
182 int route_id, | |
183 WebKit::WebPopupType popup_type); | |
184 | 180 |
185 // Called on the IO thread to cancel resource requests for the render widget. | 181 // Called on the IO thread to cancel resource requests for the render widget. |
186 void OnCancelResourceRequests(int render_widget_id); | 182 void OnCancelResourceRequests(int render_widget_id); |
187 | 183 |
188 // Called on the IO thread to resume a cross-site response. | 184 // Called on the IO thread to resume a cross-site response. |
189 void OnCrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); | 185 void OnCrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); |
190 | 186 |
191 #if defined(OS_MACOSX) | 187 #if defined(OS_MACOSX) |
192 // Called on destruction to release all allocated transport DIBs | 188 // Called on destruction to release all allocated transport DIBs |
193 void ClearAllocatedDIBs(); | 189 void ClearAllocatedDIBs(); |
(...skipping 17 matching lines...) Expand all Loading... |
211 | 207 |
212 // The next routing id to use. | 208 // The next routing id to use. |
213 base::AtomicSequenceNumber next_routing_id_; | 209 base::AtomicSequenceNumber next_routing_id_; |
214 | 210 |
215 ResourceDispatcherHost* resource_dispatcher_host_; | 211 ResourceDispatcherHost* resource_dispatcher_host_; |
216 | 212 |
217 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 213 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
218 }; | 214 }; |
219 | 215 |
220 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 216 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
OLD | NEW |