| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 234 |
| 235 // Return true if the view has an accelerated surface that contains the last | 235 // Return true if the view has an accelerated surface that contains the last |
| 236 // presented frame for the view. If |desired_size| is non-empty, true is | 236 // presented frame for the view. If |desired_size| is non-empty, true is |
| 237 // returned only if the accelerated surface size matches. | 237 // returned only if the accelerated surface size matches. |
| 238 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; | 238 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; |
| 239 | 239 |
| 240 virtual void OnSwapCompositorFrame( | 240 virtual void OnSwapCompositorFrame( |
| 241 uint32 output_surface_id, | 241 uint32 output_surface_id, |
| 242 scoped_ptr<cc::CompositorFrame> frame) = 0; | 242 scoped_ptr<cc::CompositorFrame> frame) = 0; |
| 243 | 243 |
| 244 // Returns last compositor frame metadata that was passed |
| 245 // in |OnSwapCompositorFrame|. |
| 246 virtual cc::CompositorFrameMetadata GetCompositorFrameMetadata() = 0; |
| 247 |
| 244 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; | 248 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; |
| 245 | 249 |
| 246 // The size of the view's backing surface in non-DPI-adjusted pixels. | 250 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 247 virtual gfx::Size GetPhysicalBackingSize() const = 0; | 251 virtual gfx::Size GetPhysicalBackingSize() const = 0; |
| 248 | 252 |
| 249 // The height of the physical backing surface that is overdrawn opaquely in | 253 // The height of the physical backing surface that is overdrawn opaquely in |
| 250 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 254 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
| 251 virtual float GetOverdrawBottomHeight() const = 0; | 255 virtual float GetOverdrawBottomHeight() const = 0; |
| 252 | 256 |
| 253 // Gets the bounds of the window, in screen coordinates. | 257 // Gets the bounds of the window, in screen coordinates. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 332 |
| 329 #if defined(OS_WIN) && defined(USE_AURA) | 333 #if defined(OS_WIN) && defined(USE_AURA) |
| 330 virtual void SetParentNativeViewAccessible( | 334 virtual void SetParentNativeViewAccessible( |
| 331 gfx::NativeViewAccessible accessible_parent) = 0; | 335 gfx::NativeViewAccessible accessible_parent) = 0; |
| 332 #endif | 336 #endif |
| 333 }; | 337 }; |
| 334 | 338 |
| 335 } // namespace content | 339 } // namespace content |
| 336 | 340 |
| 337 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 341 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |