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

Side by Side Diff: ui/aura_shell/shell.h

Issue 8205018: Gets component build to work with aura. As part of this I needed to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/aura/desktop_delegate.h" 11 #include "ui/aura/desktop_delegate.h"
12 #include "ui/aura_shell/aura_shell_export.h"
12 13
13 namespace aura { 14 namespace aura {
14 class Window; 15 class Window;
15 } 16 }
16 17
17 namespace aura_shell { 18 namespace aura_shell {
18 19
19 // Shell is a singleton object that presents the Shell API and implements the 20 // Shell is a singleton object that presents the Shell API and implements the
20 // Desktop's delegate interface. 21 // Desktop's delegate interface.
21 class Shell : public aura::DesktopDelegate { 22 class AURA_SHELL_EXPORT Shell : public aura::DesktopDelegate {
22 public: 23 public:
23 // Upon creation, the Shell sets itself as the Desktop's delegate, which takes 24 // Upon creation, the Shell sets itself as the Desktop's delegate, which takes
24 // ownership of the Shell. 25 // ownership of the Shell.
25 Shell(); 26 Shell();
26 virtual ~Shell(); 27 virtual ~Shell();
27 28
28 void Init(); 29 void Init();
29 30
30 private: 31 private:
31 aura::Window* GetContainer(int container_id); 32 aura::Window* GetContainer(int container_id);
32 const aura::Window* GetContainer(int container_id) const; 33 const aura::Window* GetContainer(int container_id) const;
33 34
34 // Overridden from aura::DesktopDelegate: 35 // Overridden from aura::DesktopDelegate:
35 virtual void AddChildToDefaultParent(aura::Window* window) OVERRIDE; 36 virtual void AddChildToDefaultParent(aura::Window* window) OVERRIDE;
36 virtual aura::Window* GetTopmostWindowToActivate( 37 virtual aura::Window* GetTopmostWindowToActivate(
37 aura::Window* ignore) const OVERRIDE; 38 aura::Window* ignore) const OVERRIDE;
38 39
39 DISALLOW_COPY_AND_ASSIGN(Shell); 40 DISALLOW_COPY_AND_ASSIGN(Shell);
40 }; 41 };
41 42
42 } // namespace aura_shell 43 } // namespace aura_shell
43 44
44 #endif // UI_AURA_SHELL_SHELL_H_ 45 #endif // UI_AURA_SHELL_SHELL_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/desktop_layout_manager.h ('k') | ui/gfx/DEPS » ('j') | ui/gfx/screen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698