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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.h

Issue 6462034: Refactor how surfaces are acquired for GPU compositing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary include. Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 6 #define CHROME_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} 83 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}
84 virtual void SetTooltipText(const std::wstring& tooltip_text); 84 virtual void SetTooltipText(const std::wstring& tooltip_text);
85 virtual void SelectionChanged(const std::string& text); 85 virtual void SelectionChanged(const std::string& text);
86 virtual void ShowingContextMenu(bool showing); 86 virtual void ShowingContextMenu(bool showing);
87 virtual BackingStore* AllocBackingStore(const gfx::Size& size); 87 virtual BackingStore* AllocBackingStore(const gfx::Size& size);
88 virtual void SetBackground(const SkBitmap& background); 88 virtual void SetBackground(const SkBitmap& background);
89 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); 89 virtual void CreatePluginContainer(gfx::PluginWindowHandle id);
90 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); 90 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id);
91 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); 91 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate);
92 virtual bool ContainsNativeView(gfx::NativeView native_view) const; 92 virtual bool ContainsNativeView(gfx::NativeView native_view) const;
93
93 virtual void AcceleratedCompositingActivated(bool activated); 94 virtual void AcceleratedCompositingActivated(bool activated);
95 virtual gfx::PluginWindowHandle AcquireCompositingSurface();
96 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface);
94 97
95 // ui::AnimationDelegate implementation. 98 // ui::AnimationDelegate implementation.
96 virtual void AnimationEnded(const ui::Animation* animation); 99 virtual void AnimationEnded(const ui::Animation* animation);
97 virtual void AnimationProgressed(const ui::Animation* animation); 100 virtual void AnimationProgressed(const ui::Animation* animation);
98 virtual void AnimationCanceled(const ui::Animation* animation); 101 virtual void AnimationCanceled(const ui::Animation* animation);
99 102
100 gfx::NativeView native_view() const { return view_.get(); } 103 gfx::NativeView native_view() const { return view_.get(); }
101 104
102 // If the widget is aligned with an edge of the monitor its on and the user 105 // If the widget is aligned with an edge of the monitor its on and the user
103 // attempts to drag past that edge we track the number of times it has 106 // attempts to drag past that edge we track the number of times it has
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // The number of times the user has dragged against horizontal edge of the 220 // The number of times the user has dragged against horizontal edge of the
218 // monitor (if the widget is aligned with that edge). Negative values 221 // monitor (if the widget is aligned with that edge). Negative values
219 // indicate the left edge, positive the right. 222 // indicate the left edge, positive the right.
220 int dragged_at_horizontal_edge_; 223 int dragged_at_horizontal_edge_;
221 224
222 // The number of times the user has dragged against vertical edge of the 225 // The number of times the user has dragged against vertical edge of the
223 // monitor (if the widget is aligned with that edge). Negative values 226 // monitor (if the widget is aligned with that edge). Negative values
224 // indicate the top edge, positive the bottom. 227 // indicate the top edge, positive the bottom.
225 int dragged_at_vertical_edge_; 228 int dragged_at_vertical_edge_;
226 229
230 bool accelerated_surface_acquired_;
231
227 #if defined(OS_CHROMEOS) 232 #if defined(OS_CHROMEOS)
228 // Custimized tooltip window. 233 // Custimized tooltip window.
229 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; 234 scoped_ptr<views::TooltipWindowGtk> tooltip_window_;
230 #endif // defined(OS_CHROMEOS) 235 #endif // defined(OS_CHROMEOS)
231 }; 236 };
232 237
233 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 238 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view.h ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698