OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ROOT_WINDOW_SETTINGS_H_ | 5 #ifndef ASH_ROOT_WINDOW_SETTINGS_H_ |
6 #define ASH_ROOT_WINDOW_SETTINGS_H_ | 6 #define ASH_ROOT_WINDOW_SETTINGS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // it can prevent mis-using on non root window. | 21 // it can prevent mis-using on non root window. |
22 struct RootWindowSettings { | 22 struct RootWindowSettings { |
23 RootWindowSettings(); | 23 RootWindowSettings(); |
24 | 24 |
25 // ID of the display associated with the root window. | 25 // ID of the display associated with the root window. |
26 int64 display_id; | 26 int64 display_id; |
27 | 27 |
28 // RootWindowController for the root window. This may be NULL | 28 // RootWindowController for the root window. This may be NULL |
29 // for the root window used for mirroring. | 29 // for the root window used for mirroring. |
30 RootWindowController* controller; | 30 RootWindowController* controller; |
31 | |
32 // True if the root window has already been shutdown. | |
33 bool shutdown; | |
34 }; | 31 }; |
35 | 32 |
36 // Initializes and returns RootWindowSettings for |root|. | 33 // Initializes and returns RootWindowSettings for |root|. |
37 // It is owned by the |root|. | 34 // It is owned by the |root|. |
38 RootWindowSettings* InitRootWindowSettings(aura::Window* root); | 35 RootWindowSettings* InitRootWindowSettings(aura::Window* root); |
39 | 36 |
40 // Returns the RootWindowSettings for |root|. | 37 // Returns the RootWindowSettings for |root|. |
41 ASH_EXPORT RootWindowSettings* GetRootWindowSettings(aura::Window* root); | 38 ASH_EXPORT RootWindowSettings* GetRootWindowSettings(aura::Window* root); |
42 | 39 |
43 // const version of GetRootWindowSettings. | 40 // const version of GetRootWindowSettings. |
44 ASH_EXPORT const RootWindowSettings* | 41 ASH_EXPORT const RootWindowSettings* |
45 GetRootWindowSettings(const aura::Window* root); | 42 GetRootWindowSettings(const aura::Window* root); |
46 | 43 |
47 } // namespace ash | 44 } // namespace ash |
48 | 45 |
49 #endif // ASH_ROOT_WINDOW_SETTINGS_H_ | 46 #endif // ASH_ROOT_WINDOW_SETTINGS_H_ |
OLD | NEW |