| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // the view a chance to perform in-process event filtering or processing. | 130 // the view a chance to perform in-process event filtering or processing. |
| 135 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 131 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
| 136 // being forwarded. | 132 // being forwarded. |
| 137 virtual InputEventAckState FilterInputEvent( | 133 virtual InputEventAckState FilterInputEvent( |
| 138 const blink::WebInputEvent& input_event); | 134 const blink::WebInputEvent& input_event); |
| 139 | 135 |
| 140 // Called by the host when it requires an input flush; the flush call should | 136 // Called by the host when it requires an input flush; the flush call should |
| 141 // by synchronized with BeginFrame. | 137 // by synchronized with BeginFrame. |
| 142 virtual void OnSetNeedsFlushInput(); | 138 virtual void OnSetNeedsFlushInput(); |
| 143 | 139 |
| 140 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, |
| 141 InputEventAckState ack_result); |
| 142 |
| 144 virtual void GestureEventAck(const blink::WebGestureEvent& event, | 143 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
| 145 InputEventAckState ack_result); | 144 InputEventAckState ack_result); |
| 146 | 145 |
| 147 // Create a platform specific SyntheticGestureTarget implementation that will | 146 // Create a platform specific SyntheticGestureTarget implementation that will |
| 148 // be used to inject synthetic input events. | 147 // be used to inject synthetic input events. |
| 149 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget(); | 148 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget(); |
| 150 | 149 |
| 151 // Return true if frame subscription is supported on this platform. | 150 // Return true if frame subscription is supported on this platform. |
| 152 virtual bool CanSubscribeFrame() const; | 151 virtual bool CanSubscribeFrame() const; |
| 153 | 152 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 uint32 renderer_frame_number_; | 428 uint32 renderer_frame_number_; |
| 430 | 429 |
| 431 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 430 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 432 | 431 |
| 433 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 432 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 434 }; | 433 }; |
| 435 | 434 |
| 436 } // namespace content | 435 } // namespace content |
| 437 | 436 |
| 438 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 437 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |