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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.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_GTK_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 int error_code) OVERRIDE; 86 int error_code) OVERRIDE;
87 virtual void Destroy() OVERRIDE; 87 virtual void Destroy() OVERRIDE;
88 virtual void WillDestroyRenderWidget(content::RenderWidgetHost* rwh) {} 88 virtual void WillDestroyRenderWidget(content::RenderWidgetHost* rwh) {}
89 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; 89 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
90 virtual void SelectionChanged(const string16& text, 90 virtual void SelectionChanged(const string16& text,
91 size_t offset, 91 size_t offset,
92 const ui::Range& range) OVERRIDE; 92 const ui::Range& range) OVERRIDE;
93 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, 93 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
94 const gfx::Rect& end_rect) OVERRIDE; 94 const gfx::Rect& end_rect) OVERRIDE;
95 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 95 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
96 virtual bool CopyFromCompositingSurface( 96 virtual void CopyFromCompositingSurface(
97 const gfx::Size& size,
98 skia::PlatformCanvas* output) OVERRIDE;
99 virtual void AsyncCopyFromCompositingSurface(
100 const gfx::Size& size, 97 const gfx::Size& size,
101 skia::PlatformCanvas* output, 98 skia::PlatformCanvas* output,
102 base::Callback<void(bool)> callback) OVERRIDE; 99 base::Callback<void(bool)> callback) OVERRIDE;
103 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 100 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
104 virtual void AcceleratedSurfaceBuffersSwapped( 101 virtual void AcceleratedSurfaceBuffersSwapped(
105 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 102 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
106 int gpu_host_id) OVERRIDE; 103 int gpu_host_id) OVERRIDE;
107 virtual void AcceleratedSurfacePostSubBuffer( 104 virtual void AcceleratedSurfacePostSubBuffer(
108 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 105 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
109 int gpu_host_id) OVERRIDE; 106 int gpu_host_id) OVERRIDE;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 gfx::PluginWindowHandle compositing_surface_; 281 gfx::PluginWindowHandle compositing_surface_;
285 282
286 // The event for the last mouse down we handled. We need this for context 283 // The event for the last mouse down we handled. We need this for context
287 // menus and drags. 284 // menus and drags.
288 GdkEventButton* last_mouse_down_; 285 GdkEventButton* last_mouse_down_;
289 286
290 ui::GtkSignalRegistrar signals_; 287 ui::GtkSignalRegistrar signals_;
291 }; 288 };
292 289
293 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 290 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698