Chromium Code Reviews| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 359 virtual void GotFocus() OVERRIDE; | 359 virtual void GotFocus() OVERRIDE; |
| 360 virtual void LostCapture() OVERRIDE; | 360 virtual void LostCapture() OVERRIDE; |
| 361 virtual void LostMouseLock() OVERRIDE; | 361 virtual void LostMouseLock() OVERRIDE; |
| 362 virtual void ForwardMouseEvent( | 362 virtual void ForwardMouseEvent( |
| 363 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; | 363 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; |
| 364 virtual void OnPointerEventActivate() OVERRIDE; | 364 virtual void OnPointerEventActivate() OVERRIDE; |
| 365 virtual void ForwardKeyboardEvent( | 365 virtual void ForwardKeyboardEvent( |
| 366 const NativeWebKeyboardEvent& key_event) OVERRIDE; | 366 const NativeWebKeyboardEvent& key_event) OVERRIDE; |
| 367 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 367 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
| 368 | 368 |
| 369 #if defined(OS_ANDROID) | |
| 370 virtual void AttachLayer(WebKit::WebLayer* layer) OVERRIDE; | |
| 371 virtual void RemoveLayer(WebKit::WebLayer* layer) OVERRIDE; | |
| 372 | |
| 373 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | |
| 374 void DidCancelPopupMenu(); | |
|
jam
2012/09/04 16:44:48
nit: you have this twice now.. also, I think it's
| |
| 375 #endif | |
| 376 | |
| 369 // Creates a new RenderView with the given route id. | 377 // Creates a new RenderView with the given route id. |
| 370 void CreateNewWindow( | 378 void CreateNewWindow( |
| 371 int route_id, | 379 int route_id, |
| 372 const ViewHostMsg_CreateWindow_Params& params, | 380 const ViewHostMsg_CreateWindow_Params& params, |
| 373 SessionStorageNamespace* session_storage_namespace); | 381 SessionStorageNamespace* session_storage_namespace); |
| 374 | 382 |
| 375 // Creates a new RenderWidget with the given route id. |popup_type| indicates | 383 // Creates a new RenderWidget with the given route id. |popup_type| indicates |
| 376 // if this widget is a popup and what kind of popup it is (select, autofill). | 384 // if this widget is a popup and what kind of popup it is (select, autofill). |
| 377 void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); | 385 void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); |
| 378 | 386 |
| 379 // Creates a full screen RenderWidget. | 387 // Creates a full screen RenderWidget. |
| 380 void CreateNewFullscreenWidget(int route_id); | 388 void CreateNewFullscreenWidget(int route_id); |
| 381 | 389 |
| 382 #if defined(OS_MACOSX) | 390 #if defined(OS_MACOSX) |
| 383 // Select popup menu related methods (for external popup menus). | 391 // Select popup menu related methods (for external popup menus). |
| 384 void DidSelectPopupMenuItem(int selected_index); | 392 void DidSelectPopupMenuItem(int selected_index); |
| 385 void DidCancelPopupMenu(); | 393 void DidCancelPopupMenu(); |
| 386 #endif | 394 #endif |
| 387 | 395 |
| 388 #if defined(OS_ANDROID) | |
| 389 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | |
| 390 void DidCancelPopupMenu(); | |
| 391 #endif | |
| 392 | |
| 393 // User rotated the screen. Calls the "onorientationchange" Javascript hook. | 396 // User rotated the screen. Calls the "onorientationchange" Javascript hook. |
| 394 void SendOrientationChangeEvent(int orientation); | 397 void SendOrientationChangeEvent(int orientation); |
| 395 | 398 |
| 396 const std::string& frame_tree() const { | 399 const std::string& frame_tree() const { |
| 397 return frame_tree_; | 400 return frame_tree_; |
| 398 } | 401 } |
| 399 | 402 |
| 400 // Updates the frame tree for this RVH and sends an IPC down to the renderer | 403 // Updates the frame tree for this RVH and sends an IPC down to the renderer |
| 401 // process to keep them in sync. For more details, see the comments on | 404 // process to keep them in sync. For more details, see the comments on |
| 402 // ViewHostMsg_FrameTreeUpdated. | 405 // ViewHostMsg_FrameTreeUpdated. |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 666 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 669 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 667 }; | 670 }; |
| 668 | 671 |
| 669 #if defined(COMPILER_MSVC) | 672 #if defined(COMPILER_MSVC) |
| 670 #pragma warning(pop) | 673 #pragma warning(pop) |
| 671 #endif | 674 #endif |
| 672 | 675 |
| 673 } // namespace content | 676 } // namespace content |
| 674 | 677 |
| 675 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 678 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |