| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 const base::Callback<void(bool)>& callback) = 0; | 285 const base::Callback<void(bool)>& callback) = 0; |
| 286 | 286 |
| 287 // Returns true if CopyFromCompositingSurfaceToVideoFrame() is likely to | 287 // Returns true if CopyFromCompositingSurfaceToVideoFrame() is likely to |
| 288 // succeed. | 288 // succeed. |
| 289 // | 289 // |
| 290 // TODO(nick): When VideoFrame copies are broadly implemented, this method | 290 // TODO(nick): When VideoFrame copies are broadly implemented, this method |
| 291 // should be renamed to HasCompositingSurface(), or unified with | 291 // should be renamed to HasCompositingSurface(), or unified with |
| 292 // IsSurfaceAvailableForCopy() and HasAcceleratedSurface(). | 292 // IsSurfaceAvailableForCopy() and HasAcceleratedSurface(). |
| 293 virtual bool CanCopyToVideoFrame() const = 0; | 293 virtual bool CanCopyToVideoFrame() const = 0; |
| 294 | 294 |
| 295 // DEPRECATED. Called when an accelerated compositing surface is initialized. | |
| 296 virtual void AcceleratedSurfaceInitialized(int route_id) {} | |
| 297 | |
| 298 // Return true if the view has an accelerated surface that contains the last | 295 // Return true if the view has an accelerated surface that contains the last |
| 299 // presented frame for the view. If |desired_size| is non-empty, true is | 296 // presented frame for the view. If |desired_size| is non-empty, true is |
| 300 // returned only if the accelerated surface size matches. | 297 // returned only if the accelerated surface size matches. |
| 301 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; | 298 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; |
| 302 | 299 |
| 303 // Compute the orientation type of the display assuming it is a mobile device. | 300 // Compute the orientation type of the display assuming it is a mobile device. |
| 304 static blink::WebScreenOrientationType GetOrientationTypeForMobile( | 301 static blink::WebScreenOrientationType GetOrientationTypeForMobile( |
| 305 const gfx::Display& display); | 302 const gfx::Display& display); |
| 306 | 303 |
| 307 // Compute the orientation type of the display assuming it is a desktop. | 304 // Compute the orientation type of the display assuming it is a desktop. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 428 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 432 | 429 |
| 433 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 430 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 434 | 431 |
| 435 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 432 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 436 }; | 433 }; |
| 437 | 434 |
| 438 } // namespace content | 435 } // namespace content |
| 439 | 436 |
| 440 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 437 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |