summaryrefslogtreecommitdiffstats
path: root/aura/desktop.h
diff options
context:
space:
mode:
Diffstat (limited to 'aura/desktop.h')
-rw-r--r--aura/desktop.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/aura/desktop.h b/aura/desktop.h
index 1eb89ca..a894e24 100644
--- a/aura/desktop.h
+++ b/aura/desktop.h
@@ -21,15 +21,19 @@ class Compositor;
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 @@ class Desktop {
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);
};