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

Unified Diff: ui/aura/root_window_host.h

Issue 10825050: Introduce RootWindowHostDelegate. The RootWindowHost performs most of its communication with RootWi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host.h
===================================================================
--- ui/aura/root_window_host.h (revision 148788)
+++ ui/aura/root_window_host.h (working copy)
@@ -20,6 +20,7 @@
namespace aura {
class RootWindow;
+class RootWindowHostDelegate;
// RootWindowHost bridges between a native window and the embedded RootWindow.
// It provides the accelerated widget and maps events from the native os to
@@ -29,22 +30,20 @@
virtual ~RootWindowHost() {}
// Creates a new RootWindowHost. The caller owns the returned value.
- static RootWindowHost* Create(const gfx::Rect& bounds);
+ static RootWindowHost* Create(RootWindowHostDelegate* delegate,
+ const gfx::Rect& bounds);
// Returns the actual size of the screen.
// (gfx::Screen only reports on the virtual desktop exposed by Aura.)
static gfx::Size GetNativeScreenSize();
+ virtual RootWindow* GetRootWindow() = 0;
+
// Returns the RootWindowHost for the specified accelerated widget, or NULL if
// there is none associated.
static RootWindowHost* GetForAcceleratedWidget(
gfx::AcceleratedWidget accelerated_widget);
- // Sets the RootWindow this RootWindowHost is hosting. RootWindowHost does not
- // own the RootWindow.
- virtual void SetRootWindow(RootWindow* root_window) = 0;
- virtual RootWindow* GetRootWindow() = 0;
-
// Returns the accelerated widget.
virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698