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

Side by Side Diff: ash/wm/stacking_controller.h

Issue 1954523002: Refactors StackingController::GetDefaultParent to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update gyp Created 4 years, 7 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
« no previous file with comments | « ash/wm/common/wm_window.h ('k') | ash/wm/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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_WM_STACKING_CONTROLLER_H_ 5 #ifndef ASH_WM_STACKING_CONTROLLER_H_
6 #define ASH_WM_STACKING_CONTROLLER_H_ 6 #define ASH_WM_STACKING_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/aura/client/window_tree_client.h" 11 #include "ui/aura/client/window_tree_client.h"
12 12
13 namespace ash { 13 namespace ash {
14 class AlwaysOnTopController; 14 class AlwaysOnTopController;
15 15
16 class ASH_EXPORT StackingController : public aura::client::WindowTreeClient { 16 class ASH_EXPORT StackingController : public aura::client::WindowTreeClient {
17 public: 17 public:
18 StackingController(); 18 StackingController();
19 ~StackingController() override; 19 ~StackingController() override;
20 20
21 // Overridden from aura::client::WindowTreeClient: 21 // Overridden from aura::client::WindowTreeClient:
22 aura::Window* GetDefaultParent(aura::Window* context, 22 aura::Window* GetDefaultParent(aura::Window* context,
23 aura::Window* window, 23 aura::Window* window,
24 const gfx::Rect& bounds) override; 24 const gfx::Rect& bounds) override;
25 25
26 private: 26 private:
27 // Returns corresponding system modal container for a modal window.
28 // If screen lock is not active, all system modal windows are placed into the
29 // normal modal container.
30 // Otherwise those that originate from LockScreen container and above are
31 // placed in the screen lock modal container.
32 aura::Window* GetSystemModalContainer(aura::Window* root,
33 aura::Window* window) const;
34
35 DISALLOW_COPY_AND_ASSIGN(StackingController); 27 DISALLOW_COPY_AND_ASSIGN(StackingController);
36 }; 28 };
37 29
38 } // namespace ash 30 } // namespace ash
39 31
40 #endif // ASH_WM_STACKING_CONTROLLER_H_ 32 #endif // ASH_WM_STACKING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_window.h ('k') | ash/wm/stacking_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698