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

Unified Diff: aura/desktop.h

Issue 7886042: Move Aura to UI subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « aura/demo/demo_main.cc ('k') | aura/desktop.cc » ('j') | ui/aura/aura.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: aura/desktop.h
===================================================================
--- aura/desktop.h (revision 100961)
+++ aura/desktop.h (working copy)
@@ -1,80 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef AURA_DESKTOP_H_
-#define AURA_DESKTOP_H_
-#pragma once
-
-#include "aura/root_window.h"
-#include "aura/aura_export.h"
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/task.h"
-#include "ui/gfx/compositor/compositor.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace gfx {
-class Size;
-}
-
-namespace aura {
-
-class DesktopHost;
-class MouseEvent;
-
-// Desktop is responsible for hosting a set of windows.
-class AURA_EXPORT Desktop : public ui::CompositorDelegate {
- public:
- Desktop();
- ~Desktop();
-
- // Shows the desktop host.
- void Show();
-
- // Sets the size of the desktop.
- void SetSize(const gfx::Size& size);
-
- // Shows the desktop host and runs an event loop for it.
- void Run();
-
- // Draws the necessary set of windows.
- void Draw();
-
- // Handles a mouse event. Returns true if handled.
- bool OnMouseEvent(const MouseEvent& event);
-
- // Handles a key event. Returns true if handled.
- bool OnKeyEvent(const KeyEvent& event);
-
- // Called when the host changes size.
- void OnHostResized(const gfx::Size& size);
-
- // Compositor we're drawing to.
- ui::Compositor* compositor() { return compositor_.get(); }
-
- Window* window() { return window_.get(); }
-
- static Desktop* GetInstance();
-
- private:
- // Overridden from ui::CompositorDelegate
- virtual void ScheduleCompositorPaint();
-
- scoped_refptr<ui::Compositor> compositor_;
-
- scoped_ptr<internal::RootWindow> window_;
-
- scoped_ptr<DesktopHost> host_;
-
- static Desktop* instance_;
-
- // Used to schedule painting.
- ScopedRunnableMethodFactory<Desktop> schedule_paint_;
-
- DISALLOW_COPY_AND_ASSIGN(Desktop);
-};
-
-} // namespace aura
-
-#endif // AURA_DESKTOP_H_
« no previous file with comments | « aura/demo/demo_main.cc ('k') | aura/desktop.cc » ('j') | ui/aura/aura.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698