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