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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.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_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const gfx::Rect& pos) override; 85 const gfx::Rect& pos) override;
86 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 86 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
87 RenderWidgetHost* GetRenderWidgetHost() const override; 87 RenderWidgetHost* GetRenderWidgetHost() const override;
88 void SetSize(const gfx::Size& size) override; 88 void SetSize(const gfx::Size& size) override;
89 void SetBounds(const gfx::Rect& rect) override; 89 void SetBounds(const gfx::Rect& rect) override;
90 gfx::Vector2dF GetLastScrollOffset() const override; 90 gfx::Vector2dF GetLastScrollOffset() const override;
91 gfx::NativeView GetNativeView() const override; 91 gfx::NativeView GetNativeView() const override;
92 gfx::NativeViewAccessible GetNativeViewAccessible() override; 92 gfx::NativeViewAccessible GetNativeViewAccessible() override;
93 void Focus() override; 93 void Focus() override;
94 bool HasFocus() const override; 94 bool HasFocus() const override;
95 bool IsSurfaceAvailableForCopy() const override;
96 void Show() override; 95 void Show() override;
97 void Hide() override; 96 void Hide() override;
98 bool IsShowing() override; 97 bool IsShowing() override;
99 gfx::Rect GetViewBounds() const override; 98 gfx::Rect GetViewBounds() const override;
100 gfx::Size GetVisibleViewportSize() const override; 99 gfx::Size GetVisibleViewportSize() const override;
101 gfx::Size GetPhysicalBackingSize() const override; 100 gfx::Size GetPhysicalBackingSize() const override;
101 bool IsSurfaceAvailableForCopy() const override;
102 void CopyFromSurface(const gfx::Rect& src_rect,
103 const gfx::Size& output_size,
104 const ReadbackRequestCallback& callback,
105 const SkColorType color_type) override;
102 bool DoBrowserControlsShrinkBlinkSize() const override; 106 bool DoBrowserControlsShrinkBlinkSize() const override;
103 float GetTopControlsHeight() const override; 107 float GetTopControlsHeight() const override;
104 float GetBottomControlsHeight() const override; 108 float GetBottomControlsHeight() const override;
105 void UpdateCursor(const WebCursor& cursor) override; 109 void UpdateCursor(const WebCursor& cursor) override;
106 void SetIsLoading(bool is_loading) override; 110 void SetIsLoading(bool is_loading) override;
107 void FocusedNodeChanged(bool is_editable_node, 111 void FocusedNodeChanged(bool is_editable_node,
108 const gfx::Rect& node_bounds_in_screen) override; 112 const gfx::Rect& node_bounds_in_screen) override;
109 void RenderProcessGone(base::TerminationStatus status, 113 void RenderProcessGone(base::TerminationStatus status,
110 int error_code) override; 114 int error_code) override;
111 void Destroy() override; 115 void Destroy() override;
112 void SetTooltipText(const base::string16& tooltip_text) override; 116 void SetTooltipText(const base::string16& tooltip_text) override;
113 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 117 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
114 void SetBackgroundColor(SkColor color) override; 118 void SetBackgroundColor(SkColor color) override;
115 void CopyFromCompositingSurface(
116 const gfx::Rect& src_subrect,
117 const gfx::Size& dst_size,
118 const ReadbackRequestCallback& callback,
119 const SkColorType preferred_color_type) override;
120 void CopyFromCompositingSurfaceToVideoFrame(
121 const gfx::Rect& src_subrect,
122 const scoped_refptr<media::VideoFrame>& target,
123 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
124 bool CanCopyToVideoFrame() const override;
125 gfx::Rect GetBoundsInRootWindow() override; 119 gfx::Rect GetBoundsInRootWindow() override;
126 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 120 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
127 InputEventAckState ack_result) override; 121 InputEventAckState ack_result) override;
128 InputEventAckState FilterInputEvent( 122 InputEventAckState FilterInputEvent(
129 const blink::WebInputEvent& input_event) override; 123 const blink::WebInputEvent& input_event) override;
130 void OnSetNeedsFlushInput() override; 124 void OnSetNeedsFlushInput() override;
131 void GestureEventAck(const blink::WebGestureEvent& event, 125 void GestureEventAck(const blink::WebGestureEvent& event,
132 InputEventAckState ack_result) override; 126 InputEventAckState ack_result) override;
133 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 127 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
134 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 128 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 float prev_bottom_shown_pix_; 376 float prev_bottom_shown_pix_;
383 377
384 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 378 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
385 379
386 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 380 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
387 }; 381 };
388 382
389 } // namespace content 383 } // namespace content
390 384
391 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 385 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698