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

Side by Side Diff: ui/display/mojo/display_snapshot_mojo_struct_traits.cc

Issue 2857033002: Remove DisplayStructTraitsTest interface. (Closed)
Patch Set: SerializeAndDeserialize. Created 3 years, 7 months 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "ui/display/mojo/display_snapshot_mojo_struct_traits.h" 5 #include "ui/display/mojo/display_snapshot_mojo_struct_traits.h"
6 6
7 #include "ipc/ipc_message_utils.h"
8 #include "ui/display/mojo/display_constants_struct_traits.h"
9 #include "ui/display/mojo/display_mode_struct_traits.h"
10 #include "ui/display/types/display_constants.h" 7 #include "ui/display/types/display_constants.h"
11 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h"
12 #include "ui/gfx/geometry/size.h" 8 #include "ui/gfx/geometry/size.h"
13 9
14 namespace mojo { 10 namespace mojo {
15 11
16 namespace { 12 namespace {
17 13
18 // Returns the index of |mode| in |modes| or not found. 14 // Returns the index of |mode| in |modes| or not found.
19 static uint64_t GetModeIndex( 15 static uint64_t GetModeIndex(
20 const display::DisplaySnapshot::DisplayModeList& modes, 16 const display::DisplaySnapshot::DisplayModeList& modes,
21 const display::DisplayMode* mode) { 17 const display::DisplayMode* mode) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 125
130 *out = base::MakeUnique<display::DisplaySnapshotMojo>( 126 *out = base::MakeUnique<display::DisplaySnapshotMojo>(
131 data.display_id(), origin, physical_size, type, 127 data.display_id(), origin, physical_size, type,
132 data.is_aspect_preserving_scaling(), data.has_overscan(), 128 data.is_aspect_preserving_scaling(), data.has_overscan(),
133 data.has_color_correction_matrix(), display_name, file_path, 129 data.has_color_correction_matrix(), display_name, file_path,
134 data.product_id(), std::move(modes), std::move(edid), current_mode, 130 data.product_id(), std::move(modes), std::move(edid), current_mode,
135 native_mode, maximum_cursor_size); 131 native_mode, maximum_cursor_size);
136 return true; 132 return true;
137 } 133 }
138 134
139 } // namespace mojo 135 } // namespace mojo
OLDNEW
« no previous file with comments | « ui/display/mojo/display_snapshot_mojo_struct_traits.h ('k') | ui/display/mojo/display_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698