| 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 "cc/resources/returned_resource.h" | 9 #include "cc/resources/returned_resource.h" |
| 10 #include "cc/surfaces/surface_factory_client.h" | 10 #include "cc/surfaces/surface_factory_client.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 ReadbackRequestCallback& callback, | 98 ReadbackRequestCallback& callback, |
| 99 const SkColorType preferred_color_type) override; | 99 const SkColorType preferred_color_type) override; |
| 100 void CopyFromCompositingSurfaceToVideoFrame( | 100 void CopyFromCompositingSurfaceToVideoFrame( |
| 101 const gfx::Rect& src_subrect, | 101 const gfx::Rect& src_subrect, |
| 102 const scoped_refptr<media::VideoFrame>& target, | 102 const scoped_refptr<media::VideoFrame>& target, |
| 103 const base::Callback<void(bool)>& callback) override; | 103 const base::Callback<void(bool)>& callback) override; |
| 104 bool CanCopyToVideoFrame() const override; | 104 bool CanCopyToVideoFrame() const override; |
| 105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 106 void OnSwapCompositorFrame(uint32 output_surface_id, | 106 void OnSwapCompositorFrame(uint32 output_surface_id, |
| 107 scoped_ptr<cc::CompositorFrame> frame) override; | 107 scoped_ptr<cc::CompositorFrame> frame) override; |
| 108 // Since the URL of content rendered by this class is not displayed in |
| 109 // the URL bar, this method does not need an implementation. |
| 110 void ClearCompositorFrame() override {} |
| 108 void GetScreenInfo(blink::WebScreenInfo* results) override; | 111 void GetScreenInfo(blink::WebScreenInfo* results) override; |
| 109 bool GetScreenColorProfile(std::vector<char>* color_profile) override; | 112 bool GetScreenColorProfile(std::vector<char>* color_profile) override; |
| 110 gfx::Rect GetBoundsInRootWindow() override; | 113 gfx::Rect GetBoundsInRootWindow() override; |
| 111 gfx::GLSurfaceHandle GetCompositingSurface() override; | 114 gfx::GLSurfaceHandle GetCompositingSurface() override; |
| 112 #if defined(USE_AURA) | 115 #if defined(USE_AURA) |
| 113 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 116 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 114 InputEventAckState ack_result) override; | 117 InputEventAckState ack_result) override; |
| 115 #endif // defined(USE_AURA) | 118 #endif // defined(USE_AURA) |
| 116 bool LockMouse() override; | 119 bool LockMouse() override; |
| 117 void UnlockMouse() override; | 120 void UnlockMouse() override; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 } | 198 } |
| 196 | 199 |
| 197 private: | 200 private: |
| 198 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 201 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 199 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 202 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 200 }; | 203 }; |
| 201 | 204 |
| 202 } // namespace content | 205 } // namespace content |
| 203 | 206 |
| 204 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 207 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |