| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void RegisterFrameSwappedCallback(std::unique_ptr<base::Closure> callback); | 69 void RegisterFrameSwappedCallback(std::unique_ptr<base::Closure> callback); |
| 70 | 70 |
| 71 // RenderWidgetHostView implementation. | 71 // RenderWidgetHostView implementation. |
| 72 void InitAsChild(gfx::NativeView parent_view) override; | 72 void InitAsChild(gfx::NativeView parent_view) override; |
| 73 RenderWidgetHost* GetRenderWidgetHost() const override; | 73 RenderWidgetHost* GetRenderWidgetHost() const override; |
| 74 void SetSize(const gfx::Size& size) override; | 74 void SetSize(const gfx::Size& size) override; |
| 75 void SetBounds(const gfx::Rect& rect) override; | 75 void SetBounds(const gfx::Rect& rect) override; |
| 76 void Focus() override; | 76 void Focus() override; |
| 77 bool HasFocus() const override; | 77 bool HasFocus() const override; |
| 78 bool IsSurfaceAvailableForCopy() const override; | 78 bool IsSurfaceAvailableForCopy() const override; |
| 79 void CopyFromSurface(const gfx::Rect& src_rect, |
| 80 const gfx::Size& output_size, |
| 81 const ReadbackRequestCallback& callback, |
| 82 const SkColorType color_type) override; |
| 79 void Show() override; | 83 void Show() override; |
| 80 void Hide() override; | 84 void Hide() override; |
| 81 bool IsShowing() override; | 85 bool IsShowing() override; |
| 82 gfx::Rect GetViewBounds() const override; | 86 gfx::Rect GetViewBounds() const override; |
| 83 gfx::Size GetVisibleViewportSize() const override; | 87 gfx::Size GetVisibleViewportSize() const override; |
| 84 gfx::Vector2dF GetLastScrollOffset() const override; | 88 gfx::Vector2dF GetLastScrollOffset() const override; |
| 85 gfx::NativeView GetNativeView() const override; | 89 gfx::NativeView GetNativeView() const override; |
| 86 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 90 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 87 void SetBackgroundColor(SkColor color) override; | 91 void SetBackgroundColor(SkColor color) override; |
| 88 gfx::Size GetPhysicalBackingSize() const override; | 92 gfx::Size GetPhysicalBackingSize() const override; |
| 89 bool IsMouseLocked() override; | 93 bool IsMouseLocked() override; |
| 90 void SetNeedsBeginFrames(bool needs_begin_frames) override; | 94 void SetNeedsBeginFrames(bool needs_begin_frames) override; |
| 91 | 95 |
| 92 // RenderWidgetHostViewBase implementation. | 96 // RenderWidgetHostViewBase implementation. |
| 93 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 97 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 94 const gfx::Rect& bounds) override; | 98 const gfx::Rect& bounds) override; |
| 95 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 99 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 96 void UpdateCursor(const WebCursor& cursor) override; | 100 void UpdateCursor(const WebCursor& cursor) override; |
| 97 void SetIsLoading(bool is_loading) override; | 101 void SetIsLoading(bool is_loading) override; |
| 98 void RenderProcessGone(base::TerminationStatus status, | 102 void RenderProcessGone(base::TerminationStatus status, |
| 99 int error_code) override; | 103 int error_code) override; |
| 100 void Destroy() override; | 104 void Destroy() override; |
| 101 void SetTooltipText(const base::string16& tooltip_text) override; | 105 void SetTooltipText(const base::string16& tooltip_text) override; |
| 102 void CopyFromCompositingSurface( | |
| 103 const gfx::Rect& src_subrect, | |
| 104 const gfx::Size& dst_size, | |
| 105 const ReadbackRequestCallback& callback, | |
| 106 const SkColorType preferred_color_type) override; | |
| 107 void CopyFromCompositingSurfaceToVideoFrame( | |
| 108 const gfx::Rect& src_subrect, | |
| 109 const scoped_refptr<media::VideoFrame>& target, | |
| 110 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | |
| 111 bool CanCopyToVideoFrame() const override; | |
| 112 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 106 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 113 void GestureEventAck(const blink::WebGestureEvent& event, | 107 void GestureEventAck(const blink::WebGestureEvent& event, |
| 114 InputEventAckState ack_result) override; | 108 InputEventAckState ack_result) override; |
| 115 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, | 109 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, |
| 116 cc::CompositorFrame frame) override; | 110 cc::CompositorFrame frame) override; |
| 117 // Since the URL of content rendered by this class is not displayed in | 111 // Since the URL of content rendered by this class is not displayed in |
| 118 // the URL bar, this method does not need an implementation. | 112 // the URL bar, this method does not need an implementation. |
| 119 void ClearCompositorFrame() override {} | 113 void ClearCompositorFrame() override {} |
| 120 gfx::Rect GetBoundsInRootWindow() override; | 114 gfx::Rect GetBoundsInRootWindow() override; |
| 121 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 115 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // The surface client ID of the parent RenderWidgetHostView. 0 if none. | 250 // The surface client ID of the parent RenderWidgetHostView. 0 if none. |
| 257 cc::FrameSinkId parent_frame_sink_id_; | 251 cc::FrameSinkId parent_frame_sink_id_; |
| 258 | 252 |
| 259 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 253 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 260 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 254 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 261 }; | 255 }; |
| 262 | 256 |
| 263 } // namespace content | 257 } // namespace content |
| 264 | 258 |
| 265 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 259 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |