| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_SHELL_H_ | 5 #ifndef UI_AURA_SHELL_SHELL_H_ |
| 6 #define UI_AURA_SHELL_SHELL_H_ | 6 #define UI_AURA_SHELL_SHELL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class Window; | 21 class Window; |
| 22 } | 22 } |
| 23 namespace gfx { | 23 namespace gfx { |
| 24 class Rect; | 24 class Rect; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace aura_shell { | 27 namespace aura_shell { |
| 28 | 28 |
| 29 class Launcher; | 29 class Launcher; |
| 30 class ShellDelegate; | 30 class ShellDelegate; |
| 31 class WorkspaceManager; | 31 |
| 32 namespace internal { |
| 33 class WorkspaceController; |
| 34 } |
| 32 | 35 |
| 33 // Shell is a singleton object that presents the Shell API and implements the | 36 // Shell is a singleton object that presents the Shell API and implements the |
| 34 // Desktop's delegate interface. | 37 // Desktop's delegate interface. |
| 35 class AURA_SHELL_EXPORT Shell : public aura::DesktopDelegate { | 38 class AURA_SHELL_EXPORT Shell : public aura::DesktopDelegate { |
| 36 public: | 39 public: |
| 37 // Upon creation, the Shell sets itself as the Desktop's delegate, which takes | 40 // Upon creation, the Shell sets itself as the Desktop's delegate, which takes |
| 38 // ownership of the Shell. | 41 // ownership of the Shell. |
| 39 Shell(); | 42 Shell(); |
| 40 virtual ~Shell(); | 43 virtual ~Shell(); |
| 41 | 44 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 66 static Shell* instance_; | 69 static Shell* instance_; |
| 67 | 70 |
| 68 std::vector<WindowAndBoundsPair> to_restore_; | 71 std::vector<WindowAndBoundsPair> to_restore_; |
| 69 | 72 |
| 70 base::WeakPtrFactory<Shell> method_factory_; | 73 base::WeakPtrFactory<Shell> method_factory_; |
| 71 | 74 |
| 72 scoped_ptr<ShellDelegate> delegate_; | 75 scoped_ptr<ShellDelegate> delegate_; |
| 73 | 76 |
| 74 scoped_ptr<Launcher> launcher_; | 77 scoped_ptr<Launcher> launcher_; |
| 75 | 78 |
| 76 scoped_ptr<WorkspaceManager> workspace_manager_; | 79 scoped_ptr<internal::WorkspaceController> workspace_controller_; |
| 77 | 80 |
| 78 DISALLOW_COPY_AND_ASSIGN(Shell); | 81 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 79 }; | 82 }; |
| 80 | 83 |
| 81 } // namespace aura_shell | 84 } // namespace aura_shell |
| 82 | 85 |
| 83 #endif // UI_AURA_SHELL_SHELL_H_ | 86 #endif // UI_AURA_SHELL_SHELL_H_ |
| OLD | NEW |