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_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
10 #endif | 10 #endif |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual bool IsMouseLocked() OVERRIDE; | 73 virtual bool IsMouseLocked() OVERRIDE; |
74 virtual gfx::Size GetVisibleViewportSize() const OVERRIDE; | 74 virtual gfx::Size GetVisibleViewportSize() const OVERRIDE; |
75 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; | 75 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; |
76 virtual void BeginFrameSubscription( | 76 virtual void BeginFrameSubscription( |
77 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 77 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
78 virtual void EndFrameSubscription() OVERRIDE; | 78 virtual void EndFrameSubscription() OVERRIDE; |
79 | 79 |
80 // IPC::Listener implementation: | 80 // IPC::Listener implementation: |
81 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 81 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
82 | 82 |
83 // Called when a mousewheel event was not processed by the renderer. | |
84 // virtual for testing. | |
85 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event); | |
86 | |
87 // Called by the host when the input flush has completed. | 83 // Called by the host when the input flush has completed. |
88 void OnDidFlushInput(); | 84 void OnDidFlushInput(); |
89 | 85 |
90 void SetPopupType(blink::WebPopupType popup_type); | 86 void SetPopupType(blink::WebPopupType popup_type); |
91 | 87 |
92 blink::WebPopupType GetPopupType(); | 88 blink::WebPopupType GetPopupType(); |
93 | 89 |
94 // Get the BrowserAccessibilityManager if it exists, may return NULL. | 90 // Get the BrowserAccessibilityManager if it exists, may return NULL. |
95 BrowserAccessibilityManager* GetBrowserAccessibilityManager() const; | 91 BrowserAccessibilityManager* GetBrowserAccessibilityManager() const; |
96 | 92 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // the view a chance to perform in-process event filtering or processing. | 126 // the view a chance to perform in-process event filtering or processing. |
131 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 127 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
132 // being forwarded. | 128 // being forwarded. |
133 virtual InputEventAckState FilterInputEvent( | 129 virtual InputEventAckState FilterInputEvent( |
134 const blink::WebInputEvent& input_event); | 130 const blink::WebInputEvent& input_event); |
135 | 131 |
136 // Called by the host when it requires an input flush; the flush call should | 132 // Called by the host when it requires an input flush; the flush call should |
137 // by synchronized with BeginFrame. | 133 // by synchronized with BeginFrame. |
138 virtual void OnSetNeedsFlushInput(); | 134 virtual void OnSetNeedsFlushInput(); |
139 | 135 |
| 136 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, |
| 137 InputEventAckState ack_result); |
| 138 |
140 virtual void GestureEventAck(const blink::WebGestureEvent& event, | 139 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
141 InputEventAckState ack_result); | 140 InputEventAckState ack_result); |
142 | 141 |
143 // Create a platform specific SyntheticGestureTarget implementation that will | 142 // Create a platform specific SyntheticGestureTarget implementation that will |
144 // be used to inject synthetic input events. | 143 // be used to inject synthetic input events. |
145 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget(); | 144 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget(); |
146 | 145 |
147 // Return true if frame subscription is supported on this platform. | 146 // Return true if frame subscription is supported on this platform. |
148 virtual bool CanSubscribeFrame() const; | 147 virtual bool CanSubscribeFrame() const; |
149 | 148 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 uint32 renderer_frame_number_; | 424 uint32 renderer_frame_number_; |
426 | 425 |
427 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 426 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
428 | 427 |
429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
430 }; | 429 }; |
431 | 430 |
432 } // namespace content | 431 } // namespace content |
433 | 432 |
434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |