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_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 17 matching lines...) Expand all Loading... |
28 class MockRenderWidgetHost; | 28 class MockRenderWidgetHost; |
29 class WebCursor; | 29 class WebCursor; |
30 struct EditCommand; | 30 struct EditCommand; |
31 struct ViewHostMsg_UpdateRect_Params; | 31 struct ViewHostMsg_UpdateRect_Params; |
32 struct ViewHostMsg_TextInputState_Params; | 32 struct ViewHostMsg_TextInputState_Params; |
33 | 33 |
34 namespace base { | 34 namespace base { |
35 class TimeTicks; | 35 class TimeTicks; |
36 } | 36 } |
37 | 37 |
| 38 namespace cc { |
| 39 struct CompositorFrame; |
| 40 struct CompositorFrameAck; |
| 41 } |
| 42 |
38 namespace ui { | 43 namespace ui { |
39 class KeyEvent; | 44 class KeyEvent; |
40 class Range; | 45 class Range; |
41 } | 46 } |
42 | 47 |
43 namespace WebKit { | 48 namespace WebKit { |
44 class WebInputEvent; | 49 class WebInputEvent; |
45 class WebMouseEvent; | 50 class WebMouseEvent; |
46 struct WebCompositionUnderline; | 51 struct WebCompositionUnderline; |
47 struct WebScreenInfo; | 52 struct WebScreenInfo; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 // Called by the view in response to visibility changes: | 404 // Called by the view in response to visibility changes: |
400 // 1. After the front surface is guarenteed to no longer be in use by the ui | 405 // 1. After the front surface is guarenteed to no longer be in use by the ui |
401 // (protected false), | 406 // (protected false), |
402 // 2. When the ui expects to have a valid front surface (protected true). | 407 // 2. When the ui expects to have a valid front surface (protected true). |
403 static void SendFrontSurfaceIsProtected(bool is_protected, | 408 static void SendFrontSurfaceIsProtected(bool is_protected, |
404 uint32 protection_state_id, | 409 uint32 protection_state_id, |
405 int32 route_id, | 410 int32 route_id, |
406 int gpu_host_id); | 411 int gpu_host_id); |
407 #endif | 412 #endif |
408 | 413 |
| 414 void SwapCompositorFrameAck(const cc::CompositorFrameAck& ack); |
| 415 |
409 // Signals that the compositing surface was updated, e.g. after a lost context | 416 // Signals that the compositing surface was updated, e.g. after a lost context |
410 // event. | 417 // event. |
411 void CompositingSurfaceUpdated(); | 418 void CompositingSurfaceUpdated(); |
412 | 419 |
413 void set_allow_privileged_mouse_lock(bool allow) { | 420 void set_allow_privileged_mouse_lock(bool allow) { |
414 allow_privileged_mouse_lock_ = allow; | 421 allow_privileged_mouse_lock_ = allow; |
415 } | 422 } |
416 | 423 |
417 #if defined(OS_ANDROID) | 424 #if defined(OS_ANDROID) |
418 virtual void AttachLayer(WebKit::WebLayer* layer) {} | 425 virtual void AttachLayer(WebKit::WebLayer* layer) {} |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 const ui::Range& range, | 568 const ui::Range& range, |
562 const std::vector<gfx::Rect>& character_bounds); | 569 const std::vector<gfx::Rect>& character_bounds); |
563 void OnMsgImeCancelComposition(); | 570 void OnMsgImeCancelComposition(); |
564 | 571 |
565 void OnMsgDidActivateAcceleratedCompositing(bool activated); | 572 void OnMsgDidActivateAcceleratedCompositing(bool activated); |
566 | 573 |
567 void OnMsgLockMouse(bool user_gesture, | 574 void OnMsgLockMouse(bool user_gesture, |
568 bool last_unlocked_by_target, | 575 bool last_unlocked_by_target, |
569 bool privileged); | 576 bool privileged); |
570 void OnMsgUnlockMouse(); | 577 void OnMsgUnlockMouse(); |
| 578 void OnMsgSwapCompositorFrame(const cc::CompositorFrame& frame); |
571 | 579 |
572 #if defined(OS_POSIX) || defined(USE_AURA) | 580 #if defined(OS_POSIX) || defined(USE_AURA) |
573 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); | 581 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); |
574 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); | 582 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); |
575 #endif | 583 #endif |
576 #if defined(OS_MACOSX) | 584 #if defined(OS_MACOSX) |
577 void OnMsgPluginFocusChanged(bool focused, int plugin_id); | 585 void OnMsgPluginFocusChanged(bool focused, int plugin_id); |
578 void OnMsgStartPluginIme(); | 586 void OnMsgStartPluginIme(); |
579 void OnAllocateFakePluginWindowHandle(bool opaque, | 587 void OnAllocateFakePluginWindowHandle(bool opaque, |
580 bool root, | 588 bool root, |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 835 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
828 | 836 |
829 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 837 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
830 | 838 |
831 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 839 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
832 }; | 840 }; |
833 | 841 |
834 } // namespace content | 842 } // namespace content |
835 | 843 |
836 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 844 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |