| 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 25 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace ui { | 38 namespace ui { |
| 39 class Range; | 39 class Range; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace WebKit { | 42 namespace WebKit { |
| 43 class WebInputEvent; | 43 class WebInputEvent; |
| 44 class WebMouseEvent; | 44 class WebMouseEvent; |
| 45 struct WebCompositionUnderline; | 45 struct WebCompositionUnderline; |
| 46 struct WebCompositorFrame; |
| 47 struct WebCompositorFrameAck; |
| 46 struct WebScreenInfo; | 48 struct WebScreenInfo; |
| 47 } | 49 } |
| 48 | 50 |
| 49 #if defined(OS_ANDROID) | 51 #if defined(OS_ANDROID) |
| 50 namespace WebKit { | 52 namespace WebKit { |
| 51 class WebLayer; | 53 class WebLayer; |
| 52 } | 54 } |
| 53 #endif | 55 #endif |
| 54 | 56 |
| 55 namespace content { | 57 namespace content { |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // Called by the view in response to visibility changes: | 390 // Called by the view in response to visibility changes: |
| 389 // 1. After the front surface is guarenteed to no longer be in use by the ui | 391 // 1. After the front surface is guarenteed to no longer be in use by the ui |
| 390 // (protected false), | 392 // (protected false), |
| 391 // 2. When the ui expects to have a valid front surface (protected true). | 393 // 2. When the ui expects to have a valid front surface (protected true). |
| 392 static void SendFrontSurfaceIsProtected(bool is_protected, | 394 static void SendFrontSurfaceIsProtected(bool is_protected, |
| 393 uint32 protection_state_id, | 395 uint32 protection_state_id, |
| 394 int32 route_id, | 396 int32 route_id, |
| 395 int gpu_host_id); | 397 int gpu_host_id); |
| 396 #endif | 398 #endif |
| 397 | 399 |
| 400 void SwapCompositorFrameAck(const WebKit::WebCompositorFrameAck& ack); |
| 401 |
| 398 // Signals that the compositing surface was updated, e.g. after a lost context | 402 // Signals that the compositing surface was updated, e.g. after a lost context |
| 399 // event. | 403 // event. |
| 400 void CompositingSurfaceUpdated(); | 404 void CompositingSurfaceUpdated(); |
| 401 | 405 |
| 402 void set_allow_privileged_mouse_lock(bool allow) { | 406 void set_allow_privileged_mouse_lock(bool allow) { |
| 403 allow_privileged_mouse_lock_ = allow; | 407 allow_privileged_mouse_lock_ = allow; |
| 404 } | 408 } |
| 405 | 409 |
| 406 #if defined(OS_ANDROID) | 410 #if defined(OS_ANDROID) |
| 407 virtual void AttachLayer(WebKit::WebLayer* layer) {} | 411 virtual void AttachLayer(WebKit::WebLayer* layer) {} |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 const ui::Range& range, | 544 const ui::Range& range, |
| 541 const std::vector<gfx::Rect>& character_bounds); | 545 const std::vector<gfx::Rect>& character_bounds); |
| 542 void OnMsgImeCancelComposition(); | 546 void OnMsgImeCancelComposition(); |
| 543 | 547 |
| 544 void OnMsgDidActivateAcceleratedCompositing(bool activated); | 548 void OnMsgDidActivateAcceleratedCompositing(bool activated); |
| 545 | 549 |
| 546 void OnMsgLockMouse(bool user_gesture, | 550 void OnMsgLockMouse(bool user_gesture, |
| 547 bool last_unlocked_by_target, | 551 bool last_unlocked_by_target, |
| 548 bool privileged); | 552 bool privileged); |
| 549 void OnMsgUnlockMouse(); | 553 void OnMsgUnlockMouse(); |
| 554 void OnMsgSwapCompositorFrame(const WebKit::WebCompositorFrame& frame); |
| 550 | 555 |
| 551 #if defined(OS_POSIX) || defined(USE_AURA) | 556 #if defined(OS_POSIX) || defined(USE_AURA) |
| 552 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); | 557 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); |
| 553 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); | 558 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); |
| 554 #endif | 559 #endif |
| 555 #if defined(OS_MACOSX) | 560 #if defined(OS_MACOSX) |
| 556 void OnMsgPluginFocusChanged(bool focused, int plugin_id); | 561 void OnMsgPluginFocusChanged(bool focused, int plugin_id); |
| 557 void OnMsgStartPluginIme(); | 562 void OnMsgStartPluginIme(); |
| 558 void OnAllocateFakePluginWindowHandle(bool opaque, | 563 void OnAllocateFakePluginWindowHandle(bool opaque, |
| 559 bool root, | 564 bool root, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 810 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 806 | 811 |
| 807 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 812 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 808 | 813 |
| 809 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 814 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 810 }; | 815 }; |
| 811 | 816 |
| 812 } // namespace content | 817 } // namespace content |
| 813 | 818 |
| 814 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 819 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |