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

Side by Side Diff: ui/wm/core/transient_window_manager.h

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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
« no previous file with comments | « ui/wm/core/transient_window_controller.cc ('k') | ui/wm/core/transient_window_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_VIEWS_COREWM_TRANSIENT_WINDOW_MANAGER_H_ 5 #ifndef UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_
6 #define UI_VIEWS_COREWM_TRANSIENT_WINDOW_MANAGER_H_ 6 #define UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
11 #include "ui/aura/window_observer.h" 11 #include "ui/aura/window_observer.h"
12 #include "ui/views/views_export.h" 12 #include "ui/wm/core/wm_core_export.h"
13 13
14 namespace views { 14 namespace views {
15 namespace corewm { 15 namespace corewm {
16 16
17 class TransientWindowObserver; 17 class TransientWindowObserver;
18 18
19 // TransientWindowManager manages the set of transient children for a window 19 // TransientWindowManager manages the set of transient children for a window
20 // along with the transient parent. Transient children get the following 20 // along with the transient parent. Transient children get the following
21 // behavior: 21 // behavior:
22 // . The transient parent destroys any transient children when it is 22 // . The transient parent destroys any transient children when it is
23 // destroyed. This means a transient child is destroyed if either its parent 23 // destroyed. This means a transient child is destroyed if either its parent
24 // or transient parent is destroyed. 24 // or transient parent is destroyed.
25 // . If a transient child and its transient parent share the same parent, then 25 // . If a transient child and its transient parent share the same parent, then
26 // transient children are always ordered above the transient parent. 26 // transient children are always ordered above the transient parent.
27 // Transient windows are typically used for popups and menus. 27 // Transient windows are typically used for popups and menus.
28 // TODO(sky): when we nuke TransientWindowClient rename this to 28 // TODO(sky): when we nuke TransientWindowClient rename this to
29 // TransientWindowController. 29 // TransientWindowController.
30 class VIEWS_EXPORT TransientWindowManager : public aura::WindowObserver { 30 class WM_CORE_EXPORT TransientWindowManager : public aura::WindowObserver {
31 public: 31 public:
32 typedef std::vector<aura::Window*> Windows; 32 typedef std::vector<aura::Window*> Windows;
33 33
34 virtual ~TransientWindowManager(); 34 virtual ~TransientWindowManager();
35 35
36 // Returns the TransientWindowManager for |window|. This never returns NULL. 36 // Returns the TransientWindowManager for |window|. This never returns NULL.
37 static TransientWindowManager* Get(aura::Window* window); 37 static TransientWindowManager* Get(aura::Window* window);
38 38
39 // Returns the TransientWindowManager for |window| only if it already exists. 39 // Returns the TransientWindowManager for |window| only if it already exists.
40 // WARNING: this may return NULL. 40 // WARNING: this may return NULL.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 StackingPair* stacking_pair_; 94 StackingPair* stacking_pair_;
95 95
96 ObserverList<TransientWindowObserver> observers_; 96 ObserverList<TransientWindowObserver> observers_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(TransientWindowManager); 98 DISALLOW_COPY_AND_ASSIGN(TransientWindowManager);
99 }; 99 };
100 100
101 } // namespace corewm 101 } // namespace corewm
102 } // namespace views 102 } // namespace views
103 103
104 #endif // UI_VIEWS_COREWM_TRANSIENT_WINDOW_MANAGER_H_ 104 #endif // UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/wm/core/transient_window_controller.cc ('k') | ui/wm/core/transient_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698