OLD | NEW |
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_DISPLAY_DISPLAY_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "ui/aura/display_observer.h" | 14 #include "ui/aura/display_observer.h" |
15 #include "ui/aura/display_manager.h" | 15 #include "ui/aura/display_manager.h" |
16 | 16 |
17 namespace aura { | 17 namespace aura { |
18 class Display; | 18 class Display; |
19 class RootWindow; | 19 class RootWindow; |
20 } | 20 } |
21 | 21 |
22 namespace ash { | 22 namespace ash { |
23 namespace internal { | 23 namespace internal { |
24 class RootWindowController; | 24 class RootWindowController; |
25 | 25 |
26 // DisplayController owns and maintains RootWindows for each attached | 26 // DisplayController owns and maintains RootWindows for each attached |
27 // display, keeping them in sync with display configuration changes. | 27 // display, keeping them in sync with display configuration changes. |
28 // TODO(oshima): Rename DisplayXXX to DisplayXXX. | |
29 class ASH_EXPORT DisplayController : public aura::DisplayObserver { | 28 class ASH_EXPORT DisplayController : public aura::DisplayObserver { |
30 public: | 29 public: |
31 // Layout options where the secondary display should be positioned. | 30 // Layout options where the secondary display should be positioned. |
32 enum SecondaryDisplayLayout { | 31 enum SecondaryDisplayLayout { |
33 TOP, | 32 TOP, |
34 RIGHT, | 33 RIGHT, |
35 BOTTOM, | 34 BOTTOM, |
36 LEFT | 35 LEFT |
37 }; | 36 }; |
38 | 37 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 103 |
105 SecondaryDisplayLayout secondary_display_layout_; | 104 SecondaryDisplayLayout secondary_display_layout_; |
106 | 105 |
107 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 106 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
108 }; | 107 }; |
109 | 108 |
110 } // namespace internal | 109 } // namespace internal |
111 } // namespace ash | 110 } // namespace ash |
112 | 111 |
113 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 112 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |