| 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 // Called when a mousewheel event was not processed by the renderer. | 291 // When a wheel event is first received, it is sent to the renderer. This |
| 292 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) = 0; | 292 // method is invoked once the renderer, and |delegate_| have been given a |
| 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; |
| 293 | 297 |
| 294 // Called prior to forwarding input event messages to the renderer, giving | 298 // Called prior to forwarding input event messages to the renderer, giving |
| 295 // the view a chance to perform in-process event filtering or processing. | 299 // the view a chance to perform in-process event filtering or processing. |
| 296 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 300 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
| 297 // being forwarded. | 301 // being forwarded. |
| 298 virtual InputEventAckState FilterInputEvent( | 302 virtual InputEventAckState FilterInputEvent( |
| 299 const blink::WebInputEvent& input_event) = 0; | 303 const blink::WebInputEvent& input_event) = 0; |
| 300 | 304 |
| 301 // Called by the host when it requires an input flush; the flush call should | 305 // Called by the host when it requires an input flush; the flush call should |
| 302 // by synchronized with BeginFrame. | 306 // by synchronized with BeginFrame. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 361 |
| 358 // Returns an HWND that's given as the parent window for windowless Flash to | 362 // Returns an HWND that's given as the parent window for windowless Flash to |
| 359 // workaround crbug.com/301548. | 363 // workaround crbug.com/301548. |
| 360 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 364 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
| 361 #endif | 365 #endif |
| 362 }; | 366 }; |
| 363 | 367 |
| 364 } // namespace content | 368 } // namespace content |
| 365 | 369 |
| 366 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 370 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |