OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 SessionStorageNamespace* session_storage_namespace) {} | 220 SessionStorageNamespace* session_storage_namespace) {} |
221 | 221 |
222 // The page is trying to open a new widget (e.g. a select popup). The | 222 // The page is trying to open a new widget (e.g. a select popup). The |
223 // widget should be created associated with the given |route_id| in the | 223 // widget should be created associated with the given |route_id| in the |
224 // process |render_process_id|, but it should not be shown yet. That should | 224 // process |render_process_id|, but it should not be shown yet. That should |
225 // happen in response to ShowCreatedWidget. | 225 // happen in response to ShowCreatedWidget. |
226 // |popup_type| indicates if the widget is a popup and what kind of popup it | 226 // |popup_type| indicates if the widget is a popup and what kind of popup it |
227 // is (select, autofill...). | 227 // is (select, autofill...). |
228 virtual void CreateNewWidget(int32 render_process_id, | 228 virtual void CreateNewWidget(int32 render_process_id, |
229 int32 route_id, | 229 int32 route_id, |
230 int32 surface_id, | |
231 blink::WebPopupType popup_type) {} | 230 blink::WebPopupType popup_type) {} |
232 | 231 |
233 // Creates a full screen RenderWidget. Similar to above. | 232 // Creates a full screen RenderWidget. Similar to above. |
234 virtual void CreateNewFullscreenWidget(int32 render_process_id, | 233 virtual void CreateNewFullscreenWidget(int32 render_process_id, |
235 int32 route_id, | 234 int32 route_id) {} |
236 int32 surface_id) {} | |
237 | 235 |
238 // Show a previously created page with the specified disposition and bounds. | 236 // Show a previously created page with the specified disposition and bounds. |
239 // The window is identified by the route_id passed to CreateNewWindow. | 237 // The window is identified by the route_id passed to CreateNewWindow. |
240 // | 238 // |
241 // Note: this is not called "ShowWindow" because that will clash with | 239 // Note: this is not called "ShowWindow" because that will clash with |
242 // the Windows function which is actually a #define. | 240 // the Windows function which is actually a #define. |
243 virtual void ShowCreatedWindow(int route_id, | 241 virtual void ShowCreatedWindow(int route_id, |
244 WindowOpenDisposition disposition, | 242 WindowOpenDisposition disposition, |
245 const gfx::Rect& initial_rect, | 243 const gfx::Rect& initial_rect, |
246 bool user_gesture) {} | 244 bool user_gesture) {} |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 277 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
280 virtual bool IsVirtualKeyboardRequested(); | 278 virtual bool IsVirtualKeyboardRequested(); |
281 | 279 |
282 protected: | 280 protected: |
283 virtual ~RenderViewHostDelegate() {} | 281 virtual ~RenderViewHostDelegate() {} |
284 }; | 282 }; |
285 | 283 |
286 } // namespace content | 284 } // namespace content |
287 | 285 |
288 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 286 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |