| 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_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 virtual void AcceleratedSurfaceRelease() = 0; | 215 virtual void AcceleratedSurfaceRelease() = 0; |
| 216 | 216 |
| 217 // Return true if the view has an accelerated surface that contains the last | 217 // Return true if the view has an accelerated surface that contains the last |
| 218 // presented frame for the view. If |desired_size| is non-empty, true is | 218 // presented frame for the view. If |desired_size| is non-empty, true is |
| 219 // returned only if the accelerated surface size matches. | 219 // returned only if the accelerated surface size matches. |
| 220 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; | 220 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; |
| 221 | 221 |
| 222 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; | 222 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; |
| 223 | 223 |
| 224 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 225 virtual gfx::Size GetPhysicalBackingSize() const = 0; |
| 226 |
| 224 // Gets the bounds of the window, in screen coordinates. | 227 // Gets the bounds of the window, in screen coordinates. |
| 225 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 228 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
| 226 | 229 |
| 227 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 230 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
| 228 | 231 |
| 229 // Because the associated remote WebKit instance can asynchronously | 232 // Because the associated remote WebKit instance can asynchronously |
| 230 // prevent-default on a dispatched touch event, the touch events are queued in | 233 // prevent-default on a dispatched touch event, the touch events are queued in |
| 231 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 234 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| 232 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 235 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
| 233 // or ignored (when |ack_result| is CONSUMED). | 236 // or ignored (when |ack_result| is CONSUMED). |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 #endif | 284 #endif |
| 282 | 285 |
| 283 #if defined(OS_WIN) && !defined(USE_AURA) | 286 #if defined(OS_WIN) && !defined(USE_AURA) |
| 284 virtual void WillWmDestroy() = 0; | 287 virtual void WillWmDestroy() = 0; |
| 285 #endif | 288 #endif |
| 286 }; | 289 }; |
| 287 | 290 |
| 288 } // namespace content | 291 } // namespace content |
| 289 | 292 |
| 290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 293 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |