Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: ash/display/json_converter.cc

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/display/extended_mouse_warp_controller_unittest.cc ('k') | ash/display/json_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698