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_DISPLAY_DISPLAY_LAYOUT_STORE_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_LAYOUT_STORE_H_ |
6 #define ASH_DISPLAY_DISPLAY_LAYOUT_STORE_H_ | 6 #define ASH_DISPLAY_DISPLAY_LAYOUT_STORE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/display/display_layout.h" | 11 #include "ash/display/display_layout.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 namespace internal { | |
15 | 14 |
16 class ASH_EXPORT DisplayLayoutStore { | 15 class ASH_EXPORT DisplayLayoutStore { |
17 public: | 16 public: |
18 DisplayLayoutStore(); | 17 DisplayLayoutStore(); |
19 ~DisplayLayoutStore(); | 18 ~DisplayLayoutStore(); |
20 | 19 |
21 const DisplayLayout& default_display_layout() const { | 20 const DisplayLayout& default_display_layout() const { |
22 return default_display_layout_; | 21 return default_display_layout_; |
23 } | 22 } |
24 void SetDefaultDisplayLayout(const DisplayLayout& layout); | 23 void SetDefaultDisplayLayout(const DisplayLayout& layout); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 55 |
57 // The default display layout. | 56 // The default display layout. |
58 DisplayLayout default_display_layout_; | 57 DisplayLayout default_display_layout_; |
59 | 58 |
60 // Display layout per pair of devices. | 59 // Display layout per pair of devices. |
61 std::map<DisplayIdPair, DisplayLayout> paired_layouts_; | 60 std::map<DisplayIdPair, DisplayLayout> paired_layouts_; |
62 | 61 |
63 DISALLOW_COPY_AND_ASSIGN(DisplayLayoutStore); | 62 DISALLOW_COPY_AND_ASSIGN(DisplayLayoutStore); |
64 }; | 63 }; |
65 | 64 |
66 } // namespace internal | |
67 } // namespace ash | 65 } // namespace ash |
68 | 66 |
69 #endif // ASH_DISPLAY_DISPLAY_LAYOUT_STORE_H_ | 67 #endif // ASH_DISPLAY_DISPLAY_LAYOUT_STORE_H_ |
OLD | NEW |