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 <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 const blink::WebTouchEvent& touch_event, | 269 const blink::WebTouchEvent& touch_event, |
270 const ui::LatencyInfo& ui_latency); | 270 const ui::LatencyInfo& ui_latency); |
271 void ForwardMouseEventWithLatencyInfo( | 271 void ForwardMouseEventWithLatencyInfo( |
272 const blink::WebMouseEvent& mouse_event, | 272 const blink::WebMouseEvent& mouse_event, |
273 const ui::LatencyInfo& ui_latency); | 273 const ui::LatencyInfo& ui_latency); |
274 void ForwardWheelEventWithLatencyInfo( | 274 void ForwardWheelEventWithLatencyInfo( |
275 const blink::WebMouseWheelEvent& wheel_event, | 275 const blink::WebMouseWheelEvent& wheel_event, |
276 const ui::LatencyInfo& ui_latency); | 276 const ui::LatencyInfo& ui_latency); |
277 | 277 |
278 // Enables/disables touch emulation using mouse event. See TouchEmulator. | 278 // Enables/disables touch emulation using mouse event. See TouchEmulator. |
279 void SetTouchEventEmulationEnabled(bool enabled, bool allow_pinch); | 279 void SetTouchEventEmulationEnabled(bool enabled); |
280 | 280 |
281 // TouchEmulatorClient implementation. | 281 // TouchEmulatorClient implementation. |
282 virtual void ForwardGestureEvent( | 282 virtual void ForwardGestureEvent( |
283 const blink::WebGestureEvent& gesture_event) OVERRIDE; | 283 const blink::WebGestureEvent& gesture_event) OVERRIDE; |
284 virtual void ForwardEmulatedTouchEvent( | 284 virtual void ForwardEmulatedTouchEvent( |
285 const blink::WebTouchEvent& touch_event) OVERRIDE; | 285 const blink::WebTouchEvent& touch_event) OVERRIDE; |
286 virtual void SetCursor(const WebCursor& cursor) OVERRIDE; | 286 virtual void SetCursor(const WebCursor& cursor) OVERRIDE; |
287 virtual void ShowContextMenuAtPoint(const gfx::Point& point) OVERRIDE; | 287 virtual void ShowContextMenuAtPoint(const gfx::Point& point) OVERRIDE; |
288 | 288 |
289 // Queues a synthetic gesture for testing purposes. Invokes the on_complete | 289 // Queues a synthetic gesture for testing purposes. Invokes the on_complete |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 void OnRequestMove(const gfx::Rect& pos); | 592 void OnRequestMove(const gfx::Rect& pos); |
593 void OnSetTooltipText(const base::string16& tooltip_text, | 593 void OnSetTooltipText(const base::string16& tooltip_text, |
594 blink::WebTextDirection text_direction_hint); | 594 blink::WebTextDirection text_direction_hint); |
595 bool OnSwapCompositorFrame(const IPC::Message& message); | 595 bool OnSwapCompositorFrame(const IPC::Message& message); |
596 void OnFlingingStopped(); | 596 void OnFlingingStopped(); |
597 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 597 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
598 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); | 598 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); |
599 virtual void OnFocus(); | 599 virtual void OnFocus(); |
600 virtual void OnBlur(); | 600 virtual void OnBlur(); |
601 void OnSetCursor(const WebCursor& cursor); | 601 void OnSetCursor(const WebCursor& cursor); |
602 void OnSetTouchEventEmulationEnabled(bool enabled, bool allow_pinch); | |
603 void OnTextInputStateChanged( | 602 void OnTextInputStateChanged( |
604 const ViewHostMsg_TextInputState_Params& params); | 603 const ViewHostMsg_TextInputState_Params& params); |
605 | 604 |
606 #if defined(OS_MACOSX) || defined(USE_AURA) | 605 #if defined(OS_MACOSX) || defined(USE_AURA) |
607 void OnImeCompositionRangeChanged( | 606 void OnImeCompositionRangeChanged( |
608 const gfx::Range& range, | 607 const gfx::Range& range, |
609 const std::vector<gfx::Rect>& character_bounds); | 608 const std::vector<gfx::Rect>& character_bounds); |
610 #endif | 609 #endif |
611 void OnImeCancelComposition(); | 610 void OnImeCancelComposition(); |
612 void OnLockMouse(bool user_gesture, | 611 void OnLockMouse(bool user_gesture, |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 typedef std::map<int, | 844 typedef std::map<int, |
846 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; | 845 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; |
847 PendingSnapshotMap pending_browser_snapshots_; | 846 PendingSnapshotMap pending_browser_snapshots_; |
848 | 847 |
849 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
850 }; | 849 }; |
851 | 850 |
852 } // namespace content | 851 } // namespace content |
853 | 852 |
854 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |