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

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

Issue 593503003: Support error handling for Surface readbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted code and fixed build issue in test. Created 6 years, 1 month 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void Destroy() override; 182 void Destroy() override;
183 void SetTooltipText(const base::string16& tooltip_text) override; 183 void SetTooltipText(const base::string16& tooltip_text) override;
184 void SelectionChanged(const base::string16& text, 184 void SelectionChanged(const base::string16& text,
185 size_t offset, 185 size_t offset,
186 const gfx::Range& range) override; 186 const gfx::Range& range) override;
187 gfx::Size GetRequestedRendererSize() const override; 187 gfx::Size GetRequestedRendererSize() const override;
188 void SelectionBoundsChanged( 188 void SelectionBoundsChanged(
189 const ViewHostMsg_SelectionBounds_Params& params) override; 189 const ViewHostMsg_SelectionBounds_Params& params) override;
190 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, 190 void CopyFromCompositingSurface(const gfx::Rect& src_subrect,
191 const gfx::Size& dst_size, 191 const gfx::Size& dst_size,
192 CopyFromCompositingSurfaceCallback& callback, 192 ReadbackRequestCallback& callback,
193 const SkColorType color_type) override; 193 const SkColorType color_type) override;
194 void CopyFromCompositingSurfaceToVideoFrame( 194 void CopyFromCompositingSurfaceToVideoFrame(
195 const gfx::Rect& src_subrect, 195 const gfx::Rect& src_subrect,
196 const scoped_refptr<media::VideoFrame>& target, 196 const scoped_refptr<media::VideoFrame>& target,
197 const base::Callback<void(bool)>& callback) override; 197 const base::Callback<void(bool)>& callback) override;
198 bool CanCopyToVideoFrame() const override; 198 bool CanCopyToVideoFrame() const override;
199 bool CanSubscribeFrame() const override; 199 bool CanSubscribeFrame() const override;
200 void BeginFrameSubscription( 200 void BeginFrameSubscription(
201 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; 201 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override;
202 void EndFrameSubscription() override; 202 void EndFrameSubscription() override;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 #if defined(OS_WIN) 321 #if defined(OS_WIN)
322 // Sets the cutout rects from constrained windows. These are rectangles that 322 // Sets the cutout rects from constrained windows. These are rectangles that
323 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout 323 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout
324 // rects. 324 // rects.
325 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); 325 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects);
326 326
327 // Updates the cursor clip region. Used for mouse locking. 327 // Updates the cursor clip region. Used for mouse locking.
328 void UpdateMouseLockRegion(); 328 void UpdateMouseLockRegion();
329 #endif 329 #endif
330 330
331 void DisambiguationPopupRendered(bool success, const SkBitmap& result); 331 void DisambiguationPopupRendered(const SkBitmap& result,
332 ReadbackResponse response);
332 333
333 void HideDisambiguationPopup(); 334 void HideDisambiguationPopup();
334 335
335 void ProcessDisambiguationGesture(ui::GestureEvent* event); 336 void ProcessDisambiguationGesture(ui::GestureEvent* event);
336 337
337 void ProcessDisambiguationMouse(ui::MouseEvent* event); 338 void ProcessDisambiguationMouse(ui::MouseEvent* event);
338 339
339 // Method to indicate if this instance is shutting down or closing. 340 // Method to indicate if this instance is shutting down or closing.
340 // TODO(shrikant): Discuss around to see if it makes sense to add this method 341 // TODO(shrikant): Discuss around to see if it makes sense to add this method
341 // as part of RenderWidgetHostView. 342 // as part of RenderWidgetHostView.
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 // view, so we can ensure the window hasn't moved between copying from the 624 // view, so we can ensure the window hasn't moved between copying from the
624 // compositing surface and showing the disambiguation popup. 625 // compositing surface and showing the disambiguation popup.
625 gfx::Vector2dF disambiguation_scroll_offset_; 626 gfx::Vector2dF disambiguation_scroll_offset_;
626 627
627 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 628 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
628 }; 629 };
629 630
630 } // namespace content 631 } // namespace content
631 632
632 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 633 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698