| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "ash/display/json_converter.h" | 5 #include "ash/display/json_converter.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/display/display_pref_util.h" | 10 #include "ash/display/display_pref_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "ui/display/manager/display_layout.h" | 14 #include "ui/display/display_layout.h" |
| 15 | 15 |
| 16 namespace ash { | 16 namespace ash { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Persistent key names | 20 // Persistent key names |
| 21 const char kMirroredKey[] = "mirrored"; | 21 const char kMirroredKey[] = "mirrored"; |
| 22 const char kDefaultUnifiedKey[] = "default_unified"; | 22 const char kDefaultUnifiedKey[] = "default_unified"; |
| 23 const char kPrimaryIdKey[] = "primary-id"; | 23 const char kPrimaryIdKey[] = "primary-id"; |
| 24 const char kDisplayPlacementKey[] = "display_placement"; | 24 const char kDisplayPlacementKey[] = "display_placement"; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 placement_value->SetString( | 192 placement_value->SetString( |
| 193 kDisplayPlacementParentDisplayIdKey, | 193 kDisplayPlacementParentDisplayIdKey, |
| 194 base::Int64ToString(placement.parent_display_id)); | 194 base::Int64ToString(placement.parent_display_id)); |
| 195 placement_list->Append(std::move(placement_value)); | 195 placement_list->Append(std::move(placement_value)); |
| 196 } | 196 } |
| 197 dict_value->Set(kDisplayPlacementKey, std::move(placement_list)); | 197 dict_value->Set(kDisplayPlacementKey, std::move(placement_list)); |
| 198 return true; | 198 return true; |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace ash | 201 } // namespace ash |
| OLD | NEW |