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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // by synchronized with BeginFrame. | 292 // by synchronized with BeginFrame. |
293 virtual void OnSetNeedsFlushInput() = 0; | 293 virtual void OnSetNeedsFlushInput() = 0; |
294 | 294 |
295 // Called by the host when the input flush has completed. | 295 // Called by the host when the input flush has completed. |
296 virtual void OnDidFlushInput() = 0; | 296 virtual void OnDidFlushInput() = 0; |
297 | 297 |
298 // Create a platform specific SyntheticGestureTarget implementation that will | 298 // Create a platform specific SyntheticGestureTarget implementation that will |
299 // be used to inject synthetic input events. | 299 // be used to inject synthetic input events. |
300 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0; | 300 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0; |
301 | 301 |
302 virtual void GestureEventAck(int gesture_event_type, | 302 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
303 InputEventAckState ack_result) = 0; | 303 InputEventAckState ack_result) = 0; |
304 | 304 |
305 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 305 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
306 gfx::Vector2dF current_fling_velocity) = 0; | 306 gfx::Vector2dF current_fling_velocity) = 0; |
307 | 307 |
308 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; | 308 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; |
309 virtual blink::WebPopupType GetPopupType() = 0; | 309 virtual blink::WebPopupType GetPopupType() = 0; |
310 | 310 |
311 // Get the BrowserAccessibilityManager if it exists, may return NULL. | 311 // Get the BrowserAccessibilityManager if it exists, may return NULL. |
312 virtual BrowserAccessibilityManager* | 312 virtual BrowserAccessibilityManager* |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 344 |
345 // Returns an HWND that's given as the parent window for windowless Flash to | 345 // Returns an HWND that's given as the parent window for windowless Flash to |
346 // workaround crbug.com/301548. | 346 // workaround crbug.com/301548. |
347 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 347 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
348 #endif | 348 #endif |
349 }; | 349 }; |
350 | 350 |
351 } // namespace content | 351 } // namespace content |
352 | 352 |
353 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 353 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |