| 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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 281 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| 282 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 282 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
| 283 // or ignored (when |ack_result| is CONSUMED). | 283 // or ignored (when |ack_result| is CONSUMED). |
| 284 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 284 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 285 InputEventAckState ack_result) = 0; | 285 InputEventAckState ack_result) = 0; |
| 286 | 286 |
| 287 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; | 287 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; |
| 288 virtual void SetScrollOffsetPinning( | 288 virtual void SetScrollOffsetPinning( |
| 289 bool is_pinned_to_left, bool is_pinned_to_right) = 0; | 289 bool is_pinned_to_left, bool is_pinned_to_right) = 0; |
| 290 | 290 |
| 291 // When a wheel event is first received, it is sent to the renderer. This | 291 // Called when a mousewheel event was not processed by the renderer. |
| 292 // method is invoked once the renderer, and |delegate_| have been given a | 292 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) = 0; |
| 293 // chance to process the wheel event. |consumed| indicates whether either | |
| 294 // chose to process the |event|. At most one entity should consume an event. | |
| 295 virtual void HandledWheelEvent(const blink::WebMouseWheelEvent& event, | |
| 296 bool consumed) = 0; | |
| 297 | 293 |
| 298 // Called prior to forwarding input event messages to the renderer, giving | 294 // Called prior to forwarding input event messages to the renderer, giving |
| 299 // the view a chance to perform in-process event filtering or processing. | 295 // the view a chance to perform in-process event filtering or processing. |
| 300 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 296 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
| 301 // being forwarded. | 297 // being forwarded. |
| 302 virtual InputEventAckState FilterInputEvent( | 298 virtual InputEventAckState FilterInputEvent( |
| 303 const blink::WebInputEvent& input_event) = 0; | 299 const blink::WebInputEvent& input_event) = 0; |
| 304 | 300 |
| 305 // Called by the host when it requires an input flush; the flush call should | 301 // Called by the host when it requires an input flush; the flush call should |
| 306 // by synchronized with BeginFrame. | 302 // by synchronized with BeginFrame. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 357 |
| 362 // Returns an HWND that's given as the parent window for windowless Flash to | 358 // Returns an HWND that's given as the parent window for windowless Flash to |
| 363 // workaround crbug.com/301548. | 359 // workaround crbug.com/301548. |
| 364 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 360 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
| 365 #endif | 361 #endif |
| 366 }; | 362 }; |
| 367 | 363 |
| 368 } // namespace content | 364 } // namespace content |
| 369 | 365 |
| 370 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 366 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |