Index: aura/desktop.h |
=================================================================== |
--- aura/desktop.h (revision 98313) |
+++ aura/desktop.h (working copy) |
@@ -21,15 +21,19 @@ |
namespace aura { |
+class DesktopHost; |
class MouseEvent; |
class Window; |
// Desktop is responsible for hosting a set of windows. |
class Desktop { |
public: |
- Desktop(gfx::AcceleratedWidget widget, const gfx::Size& size); |
+ Desktop(); |
~Desktop(); |
+ // Shows the desktop host and runs an event loop for it. |
+ void Run(); |
+ |
// Draws the necessary set of windows. |
void Draw(); |
@@ -41,11 +45,17 @@ |
Window* window() { return window_.get(); } |
+ static Desktop* GetInstance(); |
+ |
private: |
scoped_refptr<ui::Compositor> compositor_; |
scoped_ptr<Window> window_; |
+ DesktopHost* host_; |
+ |
+ static Desktop* instance_; |
+ |
DISALLOW_COPY_AND_ASSIGN(Desktop); |
}; |