| 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/process/kill.h" | 9 #include "base/process/kill.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // Called when a mousewheel event was not processed by the renderer. | 281 // Called when a mousewheel event was not processed by the renderer. |
| 282 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0; | 282 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0; |
| 283 | 283 |
| 284 // Called prior to forwarding input event messages to the renderer, giving | 284 // Called prior to forwarding input event messages to the renderer, giving |
| 285 // the view a chance to perform in-process event filtering or processing. | 285 // the view a chance to perform in-process event filtering or processing. |
| 286 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 286 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
| 287 // being forwarded. | 287 // being forwarded. |
| 288 virtual InputEventAckState FilterInputEvent( | 288 virtual InputEventAckState FilterInputEvent( |
| 289 const WebKit::WebInputEvent& input_event) = 0; | 289 const WebKit::WebInputEvent& input_event) = 0; |
| 290 | 290 |
| 291 // Called by the host when it requires an input flush; the flush call should |
| 292 // by synchronized with BeginFrame. |
| 293 virtual void OnSetNeedsFlushInput() = 0; |
| 294 |
| 295 // Called by the host when the input flush has completed. |
| 296 virtual void OnDidFlushInput() = 0; |
| 297 |
| 291 virtual void GestureEventAck(int gesture_event_type, | 298 virtual void GestureEventAck(int gesture_event_type, |
| 292 InputEventAckState ack_result) = 0; | 299 InputEventAckState ack_result) = 0; |
| 293 | 300 |
| 294 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 301 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
| 295 gfx::Vector2dF current_fling_velocity) = 0; | 302 gfx::Vector2dF current_fling_velocity) = 0; |
| 296 | 303 |
| 297 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 304 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
| 298 virtual WebKit::WebPopupType GetPopupType() = 0; | 305 virtual WebKit::WebPopupType GetPopupType() = 0; |
| 299 | 306 |
| 300 virtual BrowserAccessibilityManager* | 307 virtual BrowserAccessibilityManager* |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 340 |
| 334 #if defined(OS_WIN) && defined(USE_AURA) | 341 #if defined(OS_WIN) && defined(USE_AURA) |
| 335 virtual void SetParentNativeViewAccessible( | 342 virtual void SetParentNativeViewAccessible( |
| 336 gfx::NativeViewAccessible accessible_parent) = 0; | 343 gfx::NativeViewAccessible accessible_parent) = 0; |
| 337 #endif | 344 #endif |
| 338 }; | 345 }; |
| 339 | 346 |
| 340 } // namespace content | 347 } // namespace content |
| 341 | 348 |
| 342 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 349 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |