| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "app/surface/transport_dib.h" | 10 #include "app/surface/transport_dib.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 | 117 |
| 118 // IO THREAD ONLY ----------------------------------------------------------- | 118 // IO THREAD ONLY ----------------------------------------------------------- |
| 119 | 119 |
| 120 // Called on the IO thread when a UpdateRect message is received. | 120 // Called on the IO thread when a UpdateRect message is received. |
| 121 void DidReceiveUpdateMsg(const IPC::Message& msg); | 121 void DidReceiveUpdateMsg(const IPC::Message& msg); |
| 122 | 122 |
| 123 void CreateNewWindow(int opener_id, | 123 void CreateNewWindow(int opener_id, |
| 124 bool user_gesture, | 124 bool user_gesture, |
| 125 WindowContainerType window_container_type, | 125 WindowContainerType window_container_type, |
| 126 const string16& frame_name, |
| 126 base::ProcessHandle render_process, | 127 base::ProcessHandle render_process, |
| 127 int* route_id); | 128 int* route_id); |
| 128 void CreateNewWidget(int opener_id, | 129 void CreateNewWidget(int opener_id, |
| 129 WebKit::WebPopupType popup_type, | 130 WebKit::WebPopupType popup_type, |
| 130 int* route_id); | 131 int* route_id); |
| 131 | 132 |
| 132 #if defined(OS_MACOSX) | 133 #if defined(OS_MACOSX) |
| 133 // Called on the IO thread to handle the allocation of a TransportDIB. If | 134 // Called on the IO thread to handle the allocation of a TransportDIB. If |
| 134 // |cache_in_browser| is |true|, then a copy of the shmem is kept by the | 135 // |cache_in_browser| is |true|, then a copy of the shmem is kept by the |
| 135 // browser, and it is the caller's repsonsibility to call | 136 // browser, and it is the caller's repsonsibility to call |
| (...skipping 21 matching lines...) Expand all Loading... |
| 157 | 158 |
| 158 // Called on the UI thread to discard a paint message. | 159 // Called on the UI thread to discard a paint message. |
| 159 void OnDiscardUpdateMsg(UpdateMsgProxy* proxy); | 160 void OnDiscardUpdateMsg(UpdateMsgProxy* proxy); |
| 160 | 161 |
| 161 // Called on the UI thread to dispatch a paint message if necessary. | 162 // Called on the UI thread to dispatch a paint message if necessary. |
| 162 void OnDispatchUpdateMsg(UpdateMsgProxy* proxy); | 163 void OnDispatchUpdateMsg(UpdateMsgProxy* proxy); |
| 163 | 164 |
| 164 // Called on the UI thread to finish creating a window. | 165 // Called on the UI thread to finish creating a window. |
| 165 void OnCreateWindowOnUI(int opener_id, | 166 void OnCreateWindowOnUI(int opener_id, |
| 166 int route_id, | 167 int route_id, |
| 167 WindowContainerType window_container_type); | 168 WindowContainerType window_container_type, |
| 169 string16 frame_name); |
| 168 | 170 |
| 169 // Called on the IO thread after a window was created on the UI thread. | 171 // Called on the IO thread after a window was created on the UI thread. |
| 170 void OnCreateWindowOnIO(int route_id); | 172 void OnCreateWindowOnIO(int route_id); |
| 171 | 173 |
| 172 // Called on the UI thread to finish creating a widget. | 174 // Called on the UI thread to finish creating a widget. |
| 173 void OnCreateWidgetOnUI(int opener_id, | 175 void OnCreateWidgetOnUI(int opener_id, |
| 174 int route_id, | 176 int route_id, |
| 175 WebKit::WebPopupType popup_type); | 177 WebKit::WebPopupType popup_type); |
| 176 | 178 |
| 177 // Called on the IO thread to cancel resource requests for the render widget. | 179 // Called on the IO thread to cancel resource requests for the render widget. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 203 | 205 |
| 204 // The next routing id to use. | 206 // The next routing id to use. |
| 205 base::AtomicSequenceNumber next_routing_id_; | 207 base::AtomicSequenceNumber next_routing_id_; |
| 206 | 208 |
| 207 ResourceDispatcherHost* resource_dispatcher_host_; | 209 ResourceDispatcherHost* resource_dispatcher_host_; |
| 208 | 210 |
| 209 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 211 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 214 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
| OLD | NEW |