| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 #if defined(OS_ANDROID) | 139 #if defined(OS_ANDROID) |
| 140 virtual void LockBackingStore() OVERRIDE; | 140 virtual void LockBackingStore() OVERRIDE; |
| 141 virtual void UnlockBackingStore() OVERRIDE; | 141 virtual void UnlockBackingStore() OVERRIDE; |
| 142 #endif | 142 #endif |
| 143 virtual void ForwardMouseEvent( | 143 virtual void ForwardMouseEvent( |
| 144 const blink::WebMouseEvent& mouse_event) OVERRIDE; | 144 const blink::WebMouseEvent& mouse_event) OVERRIDE; |
| 145 virtual void ForwardWheelEvent( | 145 virtual void ForwardWheelEvent( |
| 146 const blink::WebMouseWheelEvent& wheel_event) OVERRIDE; | 146 const blink::WebMouseWheelEvent& wheel_event) OVERRIDE; |
| 147 virtual void ForwardKeyboardEvent( | 147 virtual void ForwardKeyboardEvent( |
| 148 const NativeWebKeyboardEvent& key_event) OVERRIDE; | 148 const NativeWebKeyboardEvent& key_event) OVERRIDE; |
| 149 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE; | |
| 150 virtual RenderProcessHost* GetProcess() const OVERRIDE; | 149 virtual RenderProcessHost* GetProcess() const OVERRIDE; |
| 151 virtual int GetRoutingID() const OVERRIDE; | 150 virtual int GetRoutingID() const OVERRIDE; |
| 152 virtual RenderWidgetHostView* GetView() const OVERRIDE; | 151 virtual RenderWidgetHostView* GetView() const OVERRIDE; |
| 153 virtual bool IsLoading() const OVERRIDE; | 152 virtual bool IsLoading() const OVERRIDE; |
| 154 virtual bool IsRenderView() const OVERRIDE; | 153 virtual bool IsRenderView() const OVERRIDE; |
| 155 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; | 154 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; |
| 156 virtual void RestartHangMonitorTimeout() OVERRIDE; | 155 virtual void RestartHangMonitorTimeout() OVERRIDE; |
| 157 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; | 156 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; |
| 158 virtual void WasResized() OVERRIDE; | 157 virtual void WasResized() OVERRIDE; |
| 159 virtual void AddKeyPressEventCallback( | 158 virtual void AddKeyPressEventCallback( |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 // shall not send the following sequence of Char events, which was generated | 803 // shall not send the following sequence of Char events, which was generated |
| 805 // by this RawKeyDown event, to the renderer. Otherwise the renderer may | 804 // by this RawKeyDown event, to the renderer. Otherwise the renderer may |
| 806 // handle the Char events and cause unexpected behavior. | 805 // handle the Char events and cause unexpected behavior. |
| 807 // For example, pressing alt-2 may let the browser switch to the second tab, | 806 // For example, pressing alt-2 may let the browser switch to the second tab, |
| 808 // but the Char event generated by alt-2 may also activate a HTML element | 807 // but the Char event generated by alt-2 may also activate a HTML element |
| 809 // if its accesskey happens to be "2", then the user may get confused when | 808 // if its accesskey happens to be "2", then the user may get confused when |
| 810 // switching back to the original tab, because the content may already be | 809 // switching back to the original tab, because the content may already be |
| 811 // changed. | 810 // changed. |
| 812 bool suppress_next_char_events_; | 811 bool suppress_next_char_events_; |
| 813 | 812 |
| 814 // The last scroll offset of the render widget. | |
| 815 gfx::Vector2d last_scroll_offset_; | |
| 816 | |
| 817 bool pending_mouse_lock_request_; | 813 bool pending_mouse_lock_request_; |
| 818 bool allow_privileged_mouse_lock_; | 814 bool allow_privileged_mouse_lock_; |
| 819 | 815 |
| 820 // Keeps track of whether the webpage has any touch event handler. If it does, | 816 // Keeps track of whether the webpage has any touch event handler. If it does, |
| 821 // then touch events are sent to the renderer. Otherwise, the touch events are | 817 // then touch events are sent to the renderer. Otherwise, the touch events are |
| 822 // not sent to the renderer. | 818 // not sent to the renderer. |
| 823 bool has_touch_handler_; | 819 bool has_touch_handler_; |
| 824 | 820 |
| 825 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 821 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 826 | 822 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 843 typedef std::map<int, | 839 typedef std::map<int, |
| 844 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; | 840 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; |
| 845 PendingSnapshotMap pending_browser_snapshots_; | 841 PendingSnapshotMap pending_browser_snapshots_; |
| 846 | 842 |
| 847 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 843 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 848 }; | 844 }; |
| 849 | 845 |
| 850 } // namespace content | 846 } // namespace content |
| 851 | 847 |
| 852 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 848 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |