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