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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // Create a platform specific SyntheticGestureTarget implementation that will | 295 // Create a platform specific SyntheticGestureTarget implementation that will |
296 // be used to inject synthetic input events. | 296 // be used to inject synthetic input events. |
297 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0; | 297 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0; |
298 | 298 |
299 virtual void GestureEventAck(int gesture_event_type, | 299 virtual void GestureEventAck(int gesture_event_type, |
300 InputEventAckState ack_result) = 0; | 300 InputEventAckState ack_result) = 0; |
301 | 301 |
302 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 302 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
303 gfx::Vector2dF current_fling_velocity) = 0; | 303 gfx::Vector2dF current_fling_velocity) = 0; |
304 | 304 |
| 305 virtual void DidStopFlinging() = 0; |
| 306 |
305 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; | 307 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; |
306 virtual blink::WebPopupType GetPopupType() = 0; | 308 virtual blink::WebPopupType GetPopupType() = 0; |
307 | 309 |
308 // Get the BrowserAccessibilityManager if it exists, may return NULL. | 310 // Get the BrowserAccessibilityManager if it exists, may return NULL. |
309 virtual BrowserAccessibilityManager* | 311 virtual BrowserAccessibilityManager* |
310 GetBrowserAccessibilityManager() const = 0; | 312 GetBrowserAccessibilityManager() const = 0; |
311 // Create a BrowserAccessibilityManager for this view if it's possible to | 313 // Create a BrowserAccessibilityManager for this view if it's possible to |
312 // create one and if one doesn't exist already. Some ports may not create | 314 // create one and if one doesn't exist already. Some ports may not create |
313 // one depending on the current state. | 315 // one depending on the current state. |
314 virtual void CreateBrowserAccessibilityManagerIfNeeded() = 0; | 316 virtual void CreateBrowserAccessibilityManagerIfNeeded() = 0; |
(...skipping 30 matching lines...) Expand all Loading... |
345 | 347 |
346 // Returns an HWND that's given as the parent window for windowless Flash to | 348 // Returns an HWND that's given as the parent window for windowless Flash to |
347 // workaround crbug.com/301548. | 349 // workaround crbug.com/301548. |
348 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 350 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
349 #endif | 351 #endif |
350 }; | 352 }; |
351 | 353 |
352 } // namespace content | 354 } // namespace content |
353 | 355 |
354 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 356 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |