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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 namespace content { | 80 namespace content { |
81 class InputRouter; | 81 class InputRouter; |
82 class MockRenderWidgetHost; | 82 class MockRenderWidgetHost; |
83 class OverscrollController; | 83 class OverscrollController; |
84 class RenderWidgetHostDelegate; | 84 class RenderWidgetHostDelegate; |
85 class RenderWidgetHostViewPort; | 85 class RenderWidgetHostViewPort; |
86 class SyntheticGestureController; | 86 class SyntheticGestureController; |
87 class TimeoutMonitor; | 87 class TimeoutMonitor; |
88 class TouchEmulator; | 88 class TouchEmulator; |
89 class WebCursor; | 89 class WebCursor; |
| 90 struct DidOverscrollParams; |
90 struct EditCommand; | 91 struct EditCommand; |
91 | 92 |
92 // This implements the RenderWidgetHost interface that is exposed to | 93 // This implements the RenderWidgetHost interface that is exposed to |
93 // embedders of content, and adds things only visible to content. | 94 // embedders of content, and adds things only visible to content. |
94 class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, | 95 class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
95 public InputRouterClient, | 96 public InputRouterClient, |
96 public InputAckHandler, | 97 public InputAckHandler, |
97 public TouchEmulatorClient, | 98 public TouchEmulatorClient, |
98 public IPC::Listener { | 99 public IPC::Listener { |
99 public: | 100 public: |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 void OnClose(); | 625 void OnClose(); |
625 void OnUpdateScreenRectsAck(); | 626 void OnUpdateScreenRectsAck(); |
626 void OnRequestMove(const gfx::Rect& pos); | 627 void OnRequestMove(const gfx::Rect& pos); |
627 void OnSetTooltipText(const base::string16& tooltip_text, | 628 void OnSetTooltipText(const base::string16& tooltip_text, |
628 blink::WebTextDirection text_direction_hint); | 629 blink::WebTextDirection text_direction_hint); |
629 #if defined(OS_MACOSX) | 630 #if defined(OS_MACOSX) |
630 void OnCompositorSurfaceBuffersSwapped( | 631 void OnCompositorSurfaceBuffersSwapped( |
631 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); | 632 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); |
632 #endif | 633 #endif |
633 bool OnSwapCompositorFrame(const IPC::Message& message); | 634 bool OnSwapCompositorFrame(const IPC::Message& message); |
634 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 635 void OnDidOverscroll(const DidOverscrollParams& params); |
635 gfx::Vector2dF current_fling_velocity); | |
636 void OnFlingingStopped(); | 636 void OnFlingingStopped(); |
637 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 637 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
638 void OnUpdateIsDelayed(); | 638 void OnUpdateIsDelayed(); |
639 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); | 639 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); |
640 virtual void OnFocus(); | 640 virtual void OnFocus(); |
641 virtual void OnBlur(); | 641 virtual void OnBlur(); |
642 void OnSetCursor(const WebCursor& cursor); | 642 void OnSetCursor(const WebCursor& cursor); |
643 void OnSetTouchEventEmulationEnabled(bool enabled, bool allow_pinch); | 643 void OnSetTouchEventEmulationEnabled(bool enabled, bool allow_pinch); |
644 void OnTextInputTypeChanged(ui::TextInputType type, | 644 void OnTextInputTypeChanged(ui::TextInputType type, |
645 ui::TextInputMode input_mode, | 645 ui::TextInputMode input_mode, |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 885 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
886 | 886 |
887 int64 last_input_number_; | 887 int64 last_input_number_; |
888 | 888 |
889 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 889 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
890 }; | 890 }; |
891 | 891 |
892 } // namespace content | 892 } // namespace content |
893 | 893 |
894 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 894 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |