| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 9 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/readback_types.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 12 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 class CrossProcessFrameConnector; | 16 class CrossProcessFrameConnector; |
| 16 class RenderWidgetHost; | 17 class RenderWidgetHost; |
| 17 class RenderWidgetHostImpl; | 18 class RenderWidgetHostImpl; |
| 18 | 19 |
| 19 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost | 20 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost |
| 20 // associated with content being rendered in a separate process from | 21 // associated with content being rendered in a separate process from |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 #endif | 77 #endif |
| 77 void RenderProcessGone(base::TerminationStatus status, | 78 void RenderProcessGone(base::TerminationStatus status, |
| 78 int error_code) override; | 79 int error_code) override; |
| 79 void Destroy() override; | 80 void Destroy() override; |
| 80 void SetTooltipText(const base::string16& tooltip_text) override; | 81 void SetTooltipText(const base::string16& tooltip_text) override; |
| 81 void SelectionChanged(const base::string16& text, | 82 void SelectionChanged(const base::string16& text, |
| 82 size_t offset, | 83 size_t offset, |
| 83 const gfx::Range& range) override; | 84 const gfx::Range& range) override; |
| 84 void SelectionBoundsChanged( | 85 void SelectionBoundsChanged( |
| 85 const ViewHostMsg_SelectionBounds_Params& params) override; | 86 const ViewHostMsg_SelectionBounds_Params& params) override; |
| 86 void CopyFromCompositingSurface( | 87 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, |
| 87 const gfx::Rect& src_subrect, | 88 const gfx::Size& dst_size, |
| 88 const gfx::Size& dst_size, | 89 ReadbackRequestCallback& callback, |
| 89 const base::Callback<void(bool, const SkBitmap&)>& callback, | 90 const SkColorType color_type) override; |
| 90 const SkColorType color_type) override; | |
| 91 void CopyFromCompositingSurfaceToVideoFrame( | 91 void CopyFromCompositingSurfaceToVideoFrame( |
| 92 const gfx::Rect& src_subrect, | 92 const gfx::Rect& src_subrect, |
| 93 const scoped_refptr<media::VideoFrame>& target, | 93 const scoped_refptr<media::VideoFrame>& target, |
| 94 const base::Callback<void(bool)>& callback) override; | 94 const base::Callback<void(bool)>& callback) override; |
| 95 bool CanCopyToVideoFrame() const override; | 95 bool CanCopyToVideoFrame() const override; |
| 96 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 96 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 97 void OnSwapCompositorFrame(uint32 output_surface_id, | 97 void OnSwapCompositorFrame(uint32 output_surface_id, |
| 98 scoped_ptr<cc::CompositorFrame> frame) override; | 98 scoped_ptr<cc::CompositorFrame> frame) override; |
| 99 void GetScreenInfo(blink::WebScreenInfo* results) override; | 99 void GetScreenInfo(blink::WebScreenInfo* results) override; |
| 100 gfx::Rect GetBoundsInRootWindow() override; | 100 gfx::Rect GetBoundsInRootWindow() override; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // sent through it are routed to the embedding renderer process. | 152 // sent through it are routed to the embedding renderer process. |
| 153 CrossProcessFrameConnector* frame_connector_; | 153 CrossProcessFrameConnector* frame_connector_; |
| 154 | 154 |
| 155 private: | 155 private: |
| 156 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 156 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace content | 159 } // namespace content |
| 160 | 160 |
| 161 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 161 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |