| 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 // For example, pressing alt-2 may let the browser switch to the second tab, | 811 // For example, pressing alt-2 may let the browser switch to the second tab, |
| 812 // but the Char event generated by alt-2 may also activate a HTML element | 812 // but the Char event generated by alt-2 may also activate a HTML element |
| 813 // if its accesskey happens to be "2", then the user may get confused when | 813 // if its accesskey happens to be "2", then the user may get confused when |
| 814 // switching back to the original tab, because the content may already be | 814 // switching back to the original tab, because the content may already be |
| 815 // changed. | 815 // changed. |
| 816 bool suppress_next_char_events_; | 816 bool suppress_next_char_events_; |
| 817 | 817 |
| 818 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 818 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
| 819 | 819 |
| 820 // The last scroll offset of the render widget. | 820 // The last scroll offset of the render widget. |
| 821 gfx::Point last_scroll_offset_; | 821 gfx::Vector2d last_scroll_offset_; |
| 822 | 822 |
| 823 bool pending_mouse_lock_request_; | 823 bool pending_mouse_lock_request_; |
| 824 bool allow_privileged_mouse_lock_; | 824 bool allow_privileged_mouse_lock_; |
| 825 | 825 |
| 826 // Keeps track of whether the webpage has any touch event handler. If it does, | 826 // Keeps track of whether the webpage has any touch event handler. If it does, |
| 827 // then touch events are sent to the renderer. Otherwise, the touch events are | 827 // then touch events are sent to the renderer. Otherwise, the touch events are |
| 828 // not sent to the renderer. | 828 // not sent to the renderer. |
| 829 bool has_touch_handler_; | 829 bool has_touch_handler_; |
| 830 | 830 |
| 831 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 831 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 832 | 832 |
| 833 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > | 833 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > |
| 834 SmoothScrollGestureMap; | 834 SmoothScrollGestureMap; |
| 835 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 835 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 836 base::TimeTicks last_smooth_scroll_gestures_tick_time_; | 836 base::TimeTicks last_smooth_scroll_gestures_tick_time_; |
| 837 bool tick_active_smooth_scroll_gestures_task_posted_; | 837 bool tick_active_smooth_scroll_gestures_task_posted_; |
| 838 | 838 |
| 839 scoped_ptr<TouchEventQueue> touch_event_queue_; | 839 scoped_ptr<TouchEventQueue> touch_event_queue_; |
| 840 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 840 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 841 | 841 |
| 842 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 842 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 843 }; | 843 }; |
| 844 | 844 |
| 845 } // namespace content | 845 } // namespace content |
| 846 | 846 |
| 847 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 847 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |