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

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

Issue 8916020: Second attempt at moving the StackingClient to a property on the RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/stacking_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_STACKING_CONTROLLER_H_ 5 #ifndef UI_AURA_SHELL_STACKING_CONTROLLER_H_
6 #define UI_AURA_SHELL_STACKING_CONTROLLER_H_ 6 #define UI_AURA_SHELL_STACKING_CONTROLLER_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 "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/aura/client/stacking_client.h" 12 #include "ui/aura/client/stacking_client.h"
13 13
14 namespace aura_shell { 14 namespace aura_shell {
15 namespace internal { 15 namespace internal {
16 16
17 class AlwaysOnTopController; 17 class AlwaysOnTopController;
18 18
19 class StackingController : public aura::StackingClient { 19 class StackingController : public aura::client::StackingClient {
20 public: 20 public:
21 StackingController(); 21 StackingController();
22 virtual ~StackingController(); 22 virtual ~StackingController();
23 23
24 // Initializes this controller. 24 // Overridden from aura::client::StackingClient:
25 void Init(); 25 virtual aura::Window* GetDefaultParent(aura::Window* window) OVERRIDE;
26
27 // Overridden from aura::StackingClient:
28 virtual void AddChildToDefaultParent(aura::Window* window) OVERRIDE;
29 26
30 private: 27 private:
31 // Returns corresponding modal container for a modal window. 28 // Returns corresponding modal container for a modal window.
32 // If screen lock is not active, all modal windows are placed into the 29 // If screen lock is not active, all modal windows are placed into the
33 // normal modal container. 30 // normal modal container.
34 // Otherwise those that originate from LockScreen container and above are 31 // Otherwise those that originate from LockScreen container and above are
35 // placed in the screen lock modal container. 32 // placed in the screen lock modal container.
36 aura::Window* GetModalContainer(aura::Window* window) const; 33 aura::Window* GetModalContainer(aura::Window* window) const;
37 34
38 scoped_ptr<internal::AlwaysOnTopController> always_on_top_controller_; 35 scoped_ptr<internal::AlwaysOnTopController> always_on_top_controller_;
39 36
40 DISALLOW_COPY_AND_ASSIGN(StackingController); 37 DISALLOW_COPY_AND_ASSIGN(StackingController);
41 }; 38 };
42 39
43 } // namespace internal 40 } // namespace internal
44 } // namespace aura_shell 41 } // namespace aura_shell
45 42
46 #endif // UI_AURA_SHELL_STACKING_CONTROLLER_H_ 43 #endif // UI_AURA_SHELL_STACKING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/stacking_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698