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