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 |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class Value; | 27 class Value; |
28 template <typename T> class JSONValueConverter; | 28 template <typename T> class JSONValueConverter; |
29 } | 29 } |
30 | 30 |
31 namespace ash { | 31 namespace ash { |
32 namespace internal { | 32 namespace internal { |
33 class DisplayManager; | 33 class DisplayManager; |
34 class FocusActivationStore; | |
35 class RootWindowController; | 34 class RootWindowController; |
36 } | 35 } |
37 | 36 |
38 typedef std::pair<int64, int64> DisplayIdPair; | 37 typedef std::pair<int64, int64> DisplayIdPair; |
39 | 38 |
40 struct ASH_EXPORT DisplayLayout { | 39 struct ASH_EXPORT DisplayLayout { |
41 // Layout options where the secondary display should be positioned. | 40 // Layout options where the secondary display should be positioned. |
42 enum Position { | 41 enum Position { |
43 TOP, | 42 TOP, |
44 RIGHT, | 43 RIGHT, |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // The ID of the display which should be primary when connected. | 251 // The ID of the display which should be primary when connected. |
253 // kInvalidDisplayID if no such preference is specified. | 252 // kInvalidDisplayID if no such preference is specified. |
254 int64 desired_primary_display_id_; | 253 int64 desired_primary_display_id_; |
255 | 254 |
256 ObserverList<Observer> observers_; | 255 ObserverList<Observer> observers_; |
257 | 256 |
258 // Store the primary root window temporarily while replacing | 257 // Store the primary root window temporarily while replacing |
259 // display. | 258 // display. |
260 aura::RootWindow* primary_root_window_for_replace_; | 259 aura::RootWindow* primary_root_window_for_replace_; |
261 | 260 |
262 scoped_ptr<internal::FocusActivationStore> focus_activation_store_; | |
263 | |
264 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 261 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
265 }; | 262 }; |
266 | 263 |
267 } // namespace ash | 264 } // namespace ash |
268 | 265 |
269 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 266 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |