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