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_WM_ROOT_WINDOW_SETTINGS_H_ | 5 #ifndef ASH_ROOT_WINDOW_SETTINGS_H_ |
6 #define ASH_WM_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 |
11 namespace aura { | 11 namespace aura { |
12 class RootWindow; | 12 class RootWindow; |
13 } | 13 } |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 namespace internal { | 16 namespace internal { |
(...skipping 11 matching lines...) Expand all Loading... | |
28 bool solo_window_header; | 28 bool solo_window_header; |
29 | 29 |
30 // ID of the display associated with the root window. | 30 // ID of the display associated with the root window. |
31 int64 display_id; | 31 int64 display_id; |
32 | 32 |
33 // RootWindowController for the root window. This may be NULL | 33 // RootWindowController for the root window. This may be NULL |
34 // for the root window used for mirroring. | 34 // for the root window used for mirroring. |
35 RootWindowController* controller; | 35 RootWindowController* controller; |
36 }; | 36 }; |
37 | 37 |
38 // Initializes and creates RootWindowSettings for |root|, and returns | 38 // Creates and returns RootWindowSettings for |root|. |
Daniel Erat
2013/09/05 16:56:34
nit: either document ownership of the returned poi
oshima
2013/09/05 17:05:54
Done. it is owned by the root window, so scoped_pt
| |
39 // the property. | |
40 RootWindowSettings* InitRootWindowSettings(aura::RootWindow* root); | 39 RootWindowSettings* InitRootWindowSettings(aura::RootWindow* root); |
Daniel Erat
2013/09/05 16:56:34
nit: renaming it to CreateRootWindowSettings might
oshima
2013/09/05 17:05:54
The object is owned by the root, so I think Init i
| |
41 | 40 |
42 // Returns the RootWindowSettings for |root|. | 41 // Returns the RootWindowSettings for |root|. |
43 ASH_EXPORT RootWindowSettings* GetRootWindowSettings(aura::RootWindow* root); | 42 ASH_EXPORT RootWindowSettings* GetRootWindowSettings(aura::RootWindow* root); |
44 | 43 |
45 // const version of GetRootWindowSettings. | 44 // const version of GetRootWindowSettings. |
46 ASH_EXPORT const RootWindowSettings* | 45 ASH_EXPORT const RootWindowSettings* |
47 GetRootWindowSettings(const aura::RootWindow* root); | 46 GetRootWindowSettings(const aura::RootWindow* root); |
48 | 47 |
49 } // namespace internal | 48 } // namespace internal |
50 } // namespace ash | 49 } // namespace ash |
51 | 50 |
52 #endif // ASH_WM_ROOT_WINDOW_SETTINGS_H_ | 51 #endif // ASH_ROOT_WINDOW_SETTINGS_H_ |
OLD | NEW |