| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 // The height of the physical backing surface that is overdrawn opaquely in | 263 // The height of the physical backing surface that is overdrawn opaquely in |
| 264 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 264 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
| 265 virtual float GetOverdrawBottomHeight() const = 0; | 265 virtual float GetOverdrawBottomHeight() const = 0; |
| 266 | 266 |
| 267 // Gets the bounds of the window, in screen coordinates. | 267 // Gets the bounds of the window, in screen coordinates. |
| 268 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 268 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
| 269 | 269 |
| 270 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 270 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
| 271 | 271 |
| 272 // Resize compositing surface. | |
| 273 virtual void ResizeCompositingSurface(const gfx::Size&) = 0; | |
| 274 | |
| 275 // Because the associated remote WebKit instance can asynchronously | 272 // Because the associated remote WebKit instance can asynchronously |
| 276 // prevent-default on a dispatched touch event, the touch events are queued in | 273 // prevent-default on a dispatched touch event, the touch events are queued in |
| 277 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 274 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| 278 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 275 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
| 279 // or ignored (when |ack_result| is CONSUMED). | 276 // or ignored (when |ack_result| is CONSUMED). |
| 280 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 277 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 281 InputEventAckState ack_result) = 0; | 278 InputEventAckState ack_result) = 0; |
| 282 | 279 |
| 283 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; | 280 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; |
| 284 virtual void SetScrollOffsetPinning( | 281 virtual void SetScrollOffsetPinning( |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 350 |
| 354 // Returns an HWND that's given as the parent window for windowless Flash to | 351 // Returns an HWND that's given as the parent window for windowless Flash to |
| 355 // workaround crbug.com/301548. | 352 // workaround crbug.com/301548. |
| 356 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 353 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
| 357 #endif | 354 #endif |
| 358 }; | 355 }; |
| 359 | 356 |
| 360 } // namespace content | 357 } // namespace content |
| 361 | 358 |
| 362 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 359 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |