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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_views.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void SetTooltipText(const std::wstring& tooltip_text); 72 virtual void SetTooltipText(const std::wstring& tooltip_text);
73 virtual void SelectionChanged(const std::string& text); 73 virtual void SelectionChanged(const std::string& text);
74 virtual void ShowingContextMenu(bool showing); 74 virtual void ShowingContextMenu(bool showing);
75 virtual BackingStore* AllocBackingStore(const gfx::Size& size); 75 virtual BackingStore* AllocBackingStore(const gfx::Size& size);
76 virtual void SetBackground(const SkBitmap& background); 76 virtual void SetBackground(const SkBitmap& background);
77 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); 77 virtual void CreatePluginContainer(gfx::PluginWindowHandle id);
78 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); 78 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id);
79 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); 79 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate);
80 virtual bool ContainsNativeView(gfx::NativeView native_view) const; 80 virtual bool ContainsNativeView(gfx::NativeView native_view) const;
81 virtual void AcceleratedCompositingActivated(bool activated); 81 virtual void AcceleratedCompositingActivated(bool activated);
82 virtual gfx::PluginWindowHandle AcquireCompositingSurface();
83 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface);
82 84
83 // On some systems, there can be two native views, where an outer native view 85 // On some systems, there can be two native views, where an outer native view
84 // contains the inner native view (e.g. when using GTK+). This returns the 86 // contains the inner native view (e.g. when using GTK+). This returns the
85 // inner view. This can return NULL when it's not attached to a view. 87 // inner view. This can return NULL when it's not attached to a view.
86 gfx::NativeView GetInnerNativeView() const; 88 gfx::NativeView GetInnerNativeView() const;
87 89
88 virtual void OnPaint(gfx::Canvas* canvas); 90 virtual void OnPaint(gfx::Canvas* canvas);
89 91
90 // Overridden from views::View. 92 // Overridden from views::View.
91 virtual std::string GetClassName() const; 93 virtual std::string GetClassName() const;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 WebKit::WebTouchEvent touch_event_; 183 WebKit::WebTouchEvent touch_event_;
182 184
183 // Input method context used to translating sequence of key events into other 185 // Input method context used to translating sequence of key events into other
184 // languages. 186 // languages.
185 scoped_ptr<IMEContextHandler> ime_context_; 187 scoped_ptr<IMEContextHandler> ime_context_;
186 188
187 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); 189 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews);
188 }; 190 };
189 191
190 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ 192 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698