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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, | 108 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, |
109 CGContextRef target) OVERRIDE; | 109 CGContextRef target) OVERRIDE; |
110 #endif | 110 #endif |
111 virtual void EnableFullAccessibilityMode() OVERRIDE; | 111 virtual void EnableFullAccessibilityMode() OVERRIDE; |
112 virtual void ForwardMouseEvent( | 112 virtual void ForwardMouseEvent( |
113 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; | 113 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; |
114 virtual void ForwardWheelEvent( | 114 virtual void ForwardWheelEvent( |
115 const WebKit::WebMouseWheelEvent& wheel_event) OVERRIDE; | 115 const WebKit::WebMouseWheelEvent& wheel_event) OVERRIDE; |
116 virtual void ForwardKeyboardEvent( | 116 virtual void ForwardKeyboardEvent( |
117 const NativeWebKeyboardEvent& key_event) OVERRIDE; | 117 const NativeWebKeyboardEvent& key_event) OVERRIDE; |
118 virtual const gfx::Point& GetLastScrollOffset() const OVERRIDE; | 118 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE; |
119 virtual RenderProcessHost* GetProcess() const OVERRIDE; | 119 virtual RenderProcessHost* GetProcess() const OVERRIDE; |
120 virtual int GetRoutingID() const OVERRIDE; | 120 virtual int GetRoutingID() const OVERRIDE; |
121 virtual RenderWidgetHostView* GetView() const OVERRIDE; | 121 virtual RenderWidgetHostView* GetView() const OVERRIDE; |
122 virtual bool IsLoading() const OVERRIDE; | 122 virtual bool IsLoading() const OVERRIDE; |
123 virtual bool IsRenderView() const OVERRIDE; | 123 virtual bool IsRenderView() const OVERRIDE; |
124 virtual void PaintAtSize(TransportDIB::Handle dib_handle, | 124 virtual void PaintAtSize(TransportDIB::Handle dib_handle, |
125 int tag, | 125 int tag, |
126 const gfx::Size& page_size, | 126 const gfx::Size& page_size, |
127 const gfx::Size& desired_size) OVERRIDE; | 127 const gfx::Size& desired_size) OVERRIDE; |
128 virtual void Replace(const string16& word) OVERRIDE; | 128 virtual void Replace(const string16& word) OVERRIDE; |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 // For example, pressing alt-2 may let the browser switch to the second tab, | 812 // For example, pressing alt-2 may let the browser switch to the second tab, |
813 // but the Char event generated by alt-2 may also activate a HTML element | 813 // but the Char event generated by alt-2 may also activate a HTML element |
814 // if its accesskey happens to be "2", then the user may get confused when | 814 // if its accesskey happens to be "2", then the user may get confused when |
815 // switching back to the original tab, because the content may already be | 815 // switching back to the original tab, because the content may already be |
816 // changed. | 816 // changed. |
817 bool suppress_next_char_events_; | 817 bool suppress_next_char_events_; |
818 | 818 |
819 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 819 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
820 | 820 |
821 // The last scroll offset of the render widget. | 821 // The last scroll offset of the render widget. |
822 gfx::Point last_scroll_offset_; | 822 gfx::Vector2d last_scroll_offset_; |
823 | 823 |
824 bool pending_mouse_lock_request_; | 824 bool pending_mouse_lock_request_; |
825 bool allow_privileged_mouse_lock_; | 825 bool allow_privileged_mouse_lock_; |
826 | 826 |
827 // Keeps track of whether the webpage has any touch event handler. If it does, | 827 // Keeps track of whether the webpage has any touch event handler. If it does, |
828 // then touch events are sent to the renderer. Otherwise, the touch events are | 828 // then touch events are sent to the renderer. Otherwise, the touch events are |
829 // not sent to the renderer. | 829 // not sent to the renderer. |
830 bool has_touch_handler_; | 830 bool has_touch_handler_; |
831 | 831 |
832 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 832 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
833 | 833 |
834 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > | 834 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > |
835 SmoothScrollGestureMap; | 835 SmoothScrollGestureMap; |
836 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 836 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
837 base::TimeTicks last_smooth_scroll_gestures_tick_time_; | 837 base::TimeTicks last_smooth_scroll_gestures_tick_time_; |
838 bool tick_active_smooth_scroll_gestures_task_posted_; | 838 bool tick_active_smooth_scroll_gestures_task_posted_; |
839 | 839 |
840 scoped_ptr<TouchEventQueue> touch_event_queue_; | 840 scoped_ptr<TouchEventQueue> touch_event_queue_; |
841 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 841 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
842 | 842 |
843 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 843 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
844 }; | 844 }; |
845 | 845 |
846 } // namespace content | 846 } // namespace content |
847 | 847 |
848 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 848 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |