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

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

Issue 10352016: Consolidate RenderWidgetHost::CopyFromBackingStore and RenderWidgetHost::AsyncCopyFromBackingStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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 | Annotate | Revision Log
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_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual void DidUpdateBackingStore( 191 virtual void DidUpdateBackingStore(
192 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 192 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy,
193 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; 193 const std::vector<gfx::Rect>& copy_rects) OVERRIDE;
194 virtual void RenderViewGone(base::TerminationStatus status, 194 virtual void RenderViewGone(base::TerminationStatus status,
195 int error_code) OVERRIDE; 195 int error_code) OVERRIDE;
196 // called by WebContentsImpl before DestroyWindow 196 // called by WebContentsImpl before DestroyWindow
197 virtual void WillWmDestroy() OVERRIDE; 197 virtual void WillWmDestroy() OVERRIDE;
198 virtual void Destroy() OVERRIDE; 198 virtual void Destroy() OVERRIDE;
199 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; 199 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
200 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 200 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
201 virtual bool CopyFromCompositingSurface( 201 virtual void CopyFromCompositingSurface(
202 const gfx::Size& size,
203 skia::PlatformCanvas* output) OVERRIDE;
204 virtual void AsyncCopyFromCompositingSurface(
205 const gfx::Size& size, 202 const gfx::Size& size,
206 skia::PlatformCanvas* output, 203 skia::PlatformCanvas* output,
207 base::Callback<void(bool)> callback) OVERRIDE; 204 base::Callback<void(bool)> callback) OVERRIDE;
208 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 205 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
209 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, 206 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type,
210 bool processed) OVERRIDE; 207 bool processed) OVERRIDE;
211 virtual void SetHasHorizontalScrollbar( 208 virtual void SetHasHorizontalScrollbar(
212 bool has_horizontal_scrollbar) OVERRIDE; 209 bool has_horizontal_scrollbar) OVERRIDE;
213 virtual void SetScrollOffsetPinning( 210 virtual void SetScrollOffsetPinning(
214 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 211 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 // Region in which the view will be transparent to clicks. 564 // Region in which the view will be transparent to clicks.
568 scoped_ptr<SkRegion> transparent_region_; 565 scoped_ptr<SkRegion> transparent_region_;
569 566
570 // Are touch events currently enabled? 567 // Are touch events currently enabled?
571 bool touch_events_enabled_; 568 bool touch_events_enabled_;
572 569
573 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 570 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
574 }; 571 };
575 572
576 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 573 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698