Chromium Code Reviews| 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| 7 | 7 |
| 8 #include <vector> | |
|
sadrul
2015/10/29 16:26:36
This isn't necessary?
| |
| 9 | |
| 8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/resources/returned_resource.h" | 11 #include "cc/resources/returned_resource.h" |
| 10 #include "cc/surfaces/surface_factory_client.h" | 12 #include "cc/surfaces/surface_factory_client.h" |
| 11 #include "cc/surfaces/surface_id_allocator.h" | 13 #include "cc/surfaces/surface_id_allocator.h" |
| 12 #include "content/browser/compositor/image_transport_factory.h" | 14 #include "content/browser/compositor/image_transport_factory.h" |
| 13 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 15 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 14 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 15 #include "content/public/browser/readback_types.h" | 17 #include "content/public/browser/readback_types.h" |
| 16 #include "ui/compositor/compositor.h" | 18 #include "ui/compositor/compositor.h" |
| 17 #include "ui/gfx/geometry/rect.h" | 19 #include "ui/gfx/geometry/rect.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 void SelectionBoundsChanged( | 95 void SelectionBoundsChanged( |
| 94 const ViewHostMsg_SelectionBounds_Params& params) override; | 96 const ViewHostMsg_SelectionBounds_Params& params) override; |
| 95 void CopyFromCompositingSurface( | 97 void CopyFromCompositingSurface( |
| 96 const gfx::Rect& src_subrect, | 98 const gfx::Rect& src_subrect, |
| 97 const gfx::Size& dst_size, | 99 const gfx::Size& dst_size, |
| 98 const ReadbackRequestCallback& callback, | 100 const ReadbackRequestCallback& callback, |
| 99 const SkColorType preferred_color_type) override; | 101 const SkColorType preferred_color_type) override; |
| 100 void CopyFromCompositingSurfaceToVideoFrame( | 102 void CopyFromCompositingSurfaceToVideoFrame( |
| 101 const gfx::Rect& src_subrect, | 103 const gfx::Rect& src_subrect, |
| 102 const scoped_refptr<media::VideoFrame>& target, | 104 const scoped_refptr<media::VideoFrame>& target, |
| 103 const base::Callback<void(bool)>& callback) override; | 105 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 104 bool CanCopyToVideoFrame() const override; | 106 bool CanCopyToVideoFrame() const override; |
| 105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 107 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 106 void OnSwapCompositorFrame(uint32 output_surface_id, | 108 void OnSwapCompositorFrame(uint32 output_surface_id, |
| 107 scoped_ptr<cc::CompositorFrame> frame) override; | 109 scoped_ptr<cc::CompositorFrame> frame) override; |
| 108 // Since the URL of content rendered by this class is not displayed in | 110 // Since the URL of content rendered by this class is not displayed in |
| 109 // the URL bar, this method does not need an implementation. | 111 // the URL bar, this method does not need an implementation. |
| 110 void ClearCompositorFrame() override {} | 112 void ClearCompositorFrame() override {} |
| 111 void GetScreenInfo(blink::WebScreenInfo* results) override; | 113 void GetScreenInfo(blink::WebScreenInfo* results) override; |
| 112 bool GetScreenColorProfile(std::vector<char>* color_profile) override; | 114 bool GetScreenColorProfile(std::vector<char>* color_profile) override; |
| 113 gfx::Rect GetBoundsInRootWindow() override; | 115 gfx::Rect GetBoundsInRootWindow() override; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 197 } | 199 } |
| 198 | 200 |
| 199 private: | 201 private: |
| 200 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 202 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 201 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 203 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 202 }; | 204 }; |
| 203 | 205 |
| 204 } // namespace content | 206 } // namespace content |
| 205 | 207 |
| 206 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 208 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |