| 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 UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_ |   5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_ | 
|   6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_ |   6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_ | 
|   7  |   7  | 
|   8 #include <stdint.h> |   8 #include <stdint.h> | 
|   9  |   9  | 
|  10 #include <map> |  10 #include <map> | 
|  11 #include <memory> |  11 #include <memory> | 
|  12  |  12  | 
|  13 #include "base/macros.h" |  13 #include "base/macros.h" | 
|  14 #include "ui/display/display.h" |  14 #include "ui/display/display.h" | 
|  15 #include "ui/display/display_export.h" |  15 #include "ui/display/display_layout.h" | 
|  16 #include "ui/display/manager/display_layout.h" |  16 #include "ui/display/manager/display_manager_export.h" | 
|  17  |  17  | 
|  18 namespace display { |  18 namespace display { | 
|  19  |  19  | 
|  20 class DISPLAY_EXPORT DisplayLayoutStore { |  20 class DISPLAY_MANAGER_EXPORT DisplayLayoutStore { | 
|  21  public: |  21  public: | 
|  22   DisplayLayoutStore(); |  22   DisplayLayoutStore(); | 
|  23   ~DisplayLayoutStore(); |  23   ~DisplayLayoutStore(); | 
|  24  |  24  | 
|  25   void SetDefaultDisplayPlacement(const DisplayPlacement& placement); |  25   void SetDefaultDisplayPlacement(const DisplayPlacement& placement); | 
|  26  |  26  | 
|  27   // Registers the display layout info for the specified display(s). |  27   // Registers the display layout info for the specified display(s). | 
|  28   void RegisterLayoutForDisplayIdList(const DisplayIdList& list, |  28   void RegisterLayoutForDisplayIdList(const DisplayIdList& list, | 
|  29                                       std::unique_ptr<DisplayLayout> layout); |  29                                       std::unique_ptr<DisplayLayout> layout); | 
|  30  |  30  | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
|  48  |  48  | 
|  49   // Display layout per list of devices. |  49   // Display layout per list of devices. | 
|  50   std::map<DisplayIdList, std::unique_ptr<DisplayLayout>> layouts_; |  50   std::map<DisplayIdList, std::unique_ptr<DisplayLayout>> layouts_; | 
|  51  |  51  | 
|  52   DISALLOW_COPY_AND_ASSIGN(DisplayLayoutStore); |  52   DISALLOW_COPY_AND_ASSIGN(DisplayLayoutStore); | 
|  53 }; |  53 }; | 
|  54  |  54  | 
|  55 }  // namespace display |  55 }  // namespace display | 
|  56  |  56  | 
|  57 #endif  // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_ |  57 #endif  // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_ | 
| OLD | NEW |