Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 2702093002: Consistent CopyFromSurface() API, consolidated to RWHV (Closed)
Patch Set: REBASE Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // RenderWidgetHostView implementation. 102 // RenderWidgetHostView implementation.
103 void InitAsChild(gfx::NativeView parent_view) override; 103 void InitAsChild(gfx::NativeView parent_view) override;
104 RenderWidgetHost* GetRenderWidgetHost() const override; 104 RenderWidgetHost* GetRenderWidgetHost() const override;
105 void SetSize(const gfx::Size& size) override; 105 void SetSize(const gfx::Size& size) override;
106 void SetBounds(const gfx::Rect& rect) override; 106 void SetBounds(const gfx::Rect& rect) override;
107 gfx::Vector2dF GetLastScrollOffset() const override; 107 gfx::Vector2dF GetLastScrollOffset() const override;
108 gfx::NativeView GetNativeView() const override; 108 gfx::NativeView GetNativeView() const override;
109 gfx::NativeViewAccessible GetNativeViewAccessible() override; 109 gfx::NativeViewAccessible GetNativeViewAccessible() override;
110 ui::TextInputClient* GetTextInputClient() override; 110 ui::TextInputClient* GetTextInputClient() override;
111 bool HasFocus() const override; 111 bool HasFocus() const override;
112 bool IsSurfaceAvailableForCopy() const override;
113 void Show() override; 112 void Show() override;
114 void Hide() override; 113 void Hide() override;
115 bool IsShowing() override; 114 bool IsShowing() override;
116 gfx::Rect GetViewBounds() const override; 115 gfx::Rect GetViewBounds() const override;
117 void SetBackgroundColor(SkColor color) override; 116 void SetBackgroundColor(SkColor color) override;
118 bool IsMouseLocked() override; 117 bool IsMouseLocked() override;
119 gfx::Size GetVisibleViewportSize() const override; 118 gfx::Size GetVisibleViewportSize() const override;
120 void SetInsets(const gfx::Insets& insets) override; 119 void SetInsets(const gfx::Insets& insets) override;
121 void FocusedNodeTouched(const gfx::Point& location_dips_screen, 120 void FocusedNodeTouched(const gfx::Point& location_dips_screen,
122 bool editable) override; 121 bool editable) override;
123 void SetNeedsBeginFrames(bool needs_begin_frames) override; 122 void SetNeedsBeginFrames(bool needs_begin_frames) override;
124 123
125 // Overridden from RenderWidgetHostViewBase: 124 // Overridden from RenderWidgetHostViewBase:
126 void InitAsPopup(RenderWidgetHostView* parent_host_view, 125 void InitAsPopup(RenderWidgetHostView* parent_host_view,
127 const gfx::Rect& pos) override; 126 const gfx::Rect& pos) override;
128 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 127 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
129 void Focus() override; 128 void Focus() override;
130 void UpdateCursor(const WebCursor& cursor) override; 129 void UpdateCursor(const WebCursor& cursor) override;
131 void SetIsLoading(bool is_loading) override; 130 void SetIsLoading(bool is_loading) override;
132 void RenderProcessGone(base::TerminationStatus status, 131 void RenderProcessGone(base::TerminationStatus status,
133 int error_code) override; 132 int error_code) override;
134 void Destroy() override; 133 void Destroy() override;
135 void SetTooltipText(const base::string16& tooltip_text) override; 134 void SetTooltipText(const base::string16& tooltip_text) override;
136 gfx::Size GetRequestedRendererSize() const override; 135 gfx::Size GetRequestedRendererSize() const override;
137 void CopyFromCompositingSurface( 136 bool IsSurfaceAvailableForCopy() const override;
138 const gfx::Rect& src_subrect, 137 void CopyFromSurface(const gfx::Rect& src_rect,
139 const gfx::Size& dst_size, 138 const gfx::Size& output_size,
140 const ReadbackRequestCallback& callback, 139 const ReadbackRequestCallback& callback,
141 const SkColorType preferred_color_type) override; 140 const SkColorType color_type) override;
142 void CopyFromCompositingSurfaceToVideoFrame( 141 void CopyFromSurfaceToVideoFrame(
143 const gfx::Rect& src_subrect, 142 const gfx::Rect& src_rect,
144 const scoped_refptr<media::VideoFrame>& target, 143 scoped_refptr<media::VideoFrame> target,
145 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 144 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
146 bool CanCopyToVideoFrame() const override;
147 void BeginFrameSubscription( 145 void BeginFrameSubscription(
148 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; 146 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override;
149 void EndFrameSubscription() override; 147 void EndFrameSubscription() override;
150 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 148 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
151 gfx::Rect GetBoundsInRootWindow() override; 149 gfx::Rect GetBoundsInRootWindow() override;
152 void OnSetNeedsFlushInput() override; 150 void OnSetNeedsFlushInput() override;
153 void WheelEventAck(const blink::WebMouseWheelEvent& event, 151 void WheelEventAck(const blink::WebMouseWheelEvent& event,
154 InputEventAckState ack_result) override; 152 InputEventAckState ack_result) override;
155 void GestureEventAck(const blink::WebGestureEvent& event, 153 void GestureEventAck(const blink::WebGestureEvent& event,
156 InputEventAckState ack_result) override; 154 InputEventAckState ack_result) override;
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; 585 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
588 586
589 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 587 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
590 588
591 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 589 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
592 }; 590 };
593 591
594 } // namespace content 592 } // namespace content
595 593
596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698