| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 virtual void ResizeCompositingSurface(const gfx::Size&) = 0; | 263 virtual void ResizeCompositingSurface(const gfx::Size&) = 0; |
| 264 | 264 |
| 265 // Because the associated remote WebKit instance can asynchronously | 265 // Because the associated remote WebKit instance can asynchronously |
| 266 // prevent-default on a dispatched touch event, the touch events are queued in | 266 // prevent-default on a dispatched touch event, the touch events are queued in |
| 267 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 267 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| 268 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 268 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
| 269 // or ignored (when |ack_result| is CONSUMED). | 269 // or ignored (when |ack_result| is CONSUMED). |
| 270 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 270 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 271 InputEventAckState ack_result) = 0; | 271 InputEventAckState ack_result) = 0; |
| 272 | 272 |
| 273 // Asks the view to create a synthetic gesture that will be used to | |
| 274 // simulate a user-initiated scroll. | |
| 275 virtual SyntheticGesture* CreateSmoothScrollGesture( | |
| 276 bool scroll_down, int pixels_to_scroll, int mouse_event_x, | |
| 277 int mouse_event_y) = 0; | |
| 278 | |
| 279 // Asks the view to create a synthetic gesture that will be used to | |
| 280 // simulate a user-initiated pinch-to-zoom. | |
| 281 virtual SyntheticGesture* CreatePinchGesture( | |
| 282 bool zoom_in, int pixels_to_move, int anchor_x, int anchor_y) = 0; | |
| 283 | |
| 284 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; | 273 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; |
| 285 virtual void SetScrollOffsetPinning( | 274 virtual void SetScrollOffsetPinning( |
| 286 bool is_pinned_to_left, bool is_pinned_to_right) = 0; | 275 bool is_pinned_to_left, bool is_pinned_to_right) = 0; |
| 287 | 276 |
| 288 // Called when a mousewheel event was not processed by the renderer. | 277 // Called when a mousewheel event was not processed by the renderer. |
| 289 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) = 0; | 278 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) = 0; |
| 290 | 279 |
| 291 // Called prior to forwarding input event messages to the renderer, giving | 280 // Called prior to forwarding input event messages to the renderer, giving |
| 292 // the view a chance to perform in-process event filtering or processing. | 281 // the view a chance to perform in-process event filtering or processing. |
| 293 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 282 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 340 |
| 352 #if defined(OS_WIN) && defined(USE_AURA) | 341 #if defined(OS_WIN) && defined(USE_AURA) |
| 353 virtual void SetParentNativeViewAccessible( | 342 virtual void SetParentNativeViewAccessible( |
| 354 gfx::NativeViewAccessible accessible_parent) = 0; | 343 gfx::NativeViewAccessible accessible_parent) = 0; |
| 355 #endif | 344 #endif |
| 356 }; | 345 }; |
| 357 | 346 |
| 358 } // namespace content | 347 } // namespace content |
| 359 | 348 |
| 360 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 349 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |