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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void Cut() OVERRIDE; 72 virtual void Cut() OVERRIDE;
73 virtual void Copy() OVERRIDE; 73 virtual void Copy() OVERRIDE;
74 virtual void CopyToFindPboard() OVERRIDE; 74 virtual void CopyToFindPboard() OVERRIDE;
75 virtual void Paste() OVERRIDE; 75 virtual void Paste() OVERRIDE;
76 virtual void PasteAndMatchStyle() OVERRIDE; 76 virtual void PasteAndMatchStyle() OVERRIDE;
77 virtual void Delete() OVERRIDE; 77 virtual void Delete() OVERRIDE;
78 virtual void SelectAll() OVERRIDE; 78 virtual void SelectAll() OVERRIDE;
79 virtual void UpdateTextDirection(WebKit::WebTextDirection direction) OVERRIDE; 79 virtual void UpdateTextDirection(WebKit::WebTextDirection direction) OVERRIDE;
80 virtual void NotifyTextDirection() OVERRIDE; 80 virtual void NotifyTextDirection() OVERRIDE;
81 virtual void Blur() OVERRIDE; 81 virtual void Blur() OVERRIDE;
82 virtual bool CopyFromBackingStore(const gfx::Rect& src_rect, 82 virtual void CopyFromBackingStore(
83 const gfx::Size& accelerated_dest_size,
84 skia::PlatformCanvas* output) OVERRIDE;
85 virtual void AsyncCopyFromBackingStore(
86 const gfx::Rect& src_rect, 83 const gfx::Rect& src_rect,
87 const gfx::Size& accelerated_dest_size, 84 const gfx::Size& accelerated_dest_size,
88 skia::PlatformCanvas* output, 85 skia::PlatformCanvas* output,
89 base::Callback<void(bool)> callback) OVERRIDE; 86 base::Callback<void(bool)> callback) OVERRIDE;
90 #if defined(TOOLKIT_GTK) 87 #if defined(TOOLKIT_GTK)
91 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, 88 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
92 GdkWindow* target) OVERRIDE; 89 GdkWindow* target) OVERRIDE;
93 #elif defined(OS_MACOSX) 90 #elif defined(OS_MACOSX)
94 virtual gfx::Size GetBackingStoreSize() OVERRIDE; 91 virtual gfx::Size GetBackingStoreSize() OVERRIDE;
95 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 92 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 723 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
727 724
728 scoped_ptr<TapSuppressionController> tap_suppression_controller_; 725 scoped_ptr<TapSuppressionController> tap_suppression_controller_;
729 726
730 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 727 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
731 }; 728 };
732 729
733 } // namespace content 730 } // namespace content
734 731
735 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 732 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698