| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DELEGATED_FRAME_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Returns the color that the resize gutters should be drawn with. Takes the | 64 // Returns the color that the resize gutters should be drawn with. Takes the |
| 65 // suggested color from the current page background. | 65 // suggested color from the current page background. |
| 66 virtual SkColor DelegatedFrameHostGetGutterColor(SkColor color) const = 0; | 66 virtual SkColor DelegatedFrameHostGetGutterColor(SkColor color) const = 0; |
| 67 virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0; | 67 virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0; |
| 68 | 68 |
| 69 virtual bool DelegatedFrameCanCreateResizeLock() const = 0; | 69 virtual bool DelegatedFrameCanCreateResizeLock() const = 0; |
| 70 virtual std::unique_ptr<CompositorResizeLock> | 70 virtual std::unique_ptr<CompositorResizeLock> |
| 71 DelegatedFrameHostCreateResizeLock() = 0; | 71 DelegatedFrameHostCreateResizeLock() = 0; |
| 72 | 72 |
| 73 virtual void OnBeginFrame(const cc::BeginFrameArgs& args) = 0; | 73 virtual void OnBeginFrame() = 0; |
| 74 virtual bool IsAutoResizeEnabled() const = 0; | 74 virtual bool IsAutoResizeEnabled() const = 0; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 // The DelegatedFrameHost is used to host all of the RenderWidgetHostView state | 77 // The DelegatedFrameHost is used to host all of the RenderWidgetHostView state |
| 78 // and functionality that is associated with delegated frames being sent from | 78 // and functionality that is associated with delegated frames being sent from |
| 79 // the RenderWidget. The DelegatedFrameHost will push these changes through to | 79 // the RenderWidget. The DelegatedFrameHost will push these changes through to |
| 80 // the ui::Compositor associated with its DelegatedFrameHostClient. | 80 // the ui::Compositor associated with its DelegatedFrameHostClient. |
| 81 class CONTENT_EXPORT DelegatedFrameHost | 81 class CONTENT_EXPORT DelegatedFrameHost |
| 82 : public ui::CompositorObserver, | 82 : public ui::CompositorObserver, |
| 83 public ui::CompositorVSyncManager::Observer, | 83 public ui::CompositorVSyncManager::Observer, |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 bool has_frame_ = false; | 322 bool has_frame_ = false; |
| 323 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = | 323 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = |
| 324 nullptr; | 324 nullptr; |
| 325 | 325 |
| 326 std::unique_ptr<viz::FrameEvictor> frame_evictor_; | 326 std::unique_ptr<viz::FrameEvictor> frame_evictor_; |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 } // namespace content | 329 } // namespace content |
| 330 | 330 |
| 331 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 331 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |