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

Side by Side Diff: ui/display/display_snapshot_mojo.cc

Issue 2646213002: Write mojom and StructTraits for DisplaySnapshot. (Closed)
Patch Set: Create more unit tests. Refactor/Enhance code readility/format. Created 3 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/display/display_snapshot_mojo.h"
6
7 #include "ui/display/types/display_constants.h"
8
9 namespace display {
10
11 DisplaySnapshotMojo::DisplaySnapshotMojo(int64_t display_id,
12 const gfx::Point& origin,
13 const gfx::Size& physical_size,
14 DisplayConnectionType type,
15 bool is_aspect_preserving_scaling,
16 bool has_overscan,
17 bool has_color_correction_matrix,
18 std::string display_name,
19 const base::FilePath& sys_path,
20 int64_t product_id,
21 DisplayModeList modes,
22 const std::vector<uint8_t>& edid,
23 const DisplayMode* current_mode,
24 const DisplayMode* native_mode,
25 const gfx::Size& maximum_cursor_size)
26 : DisplaySnapshot(display_id,
27 origin,
28 physical_size,
29 type,
30 is_aspect_preserving_scaling,
31 has_overscan,
32 has_color_correction_matrix,
33 display_name,
34 sys_path,
35 std::move(modes),
36 edid,
37 current_mode,
38 native_mode) {
39 product_id_ = product_id;
40 maximum_cursor_size_ = maximum_cursor_size;
41 }
42
43 DisplaySnapshotMojo::~DisplaySnapshotMojo() = default;
44
45 // TODO(thanhph): What should ToString() output? Maybe for debugging purposes.
kylechar 2017/02/14 21:35:28 The description of a TODO should be an action to d
thanhph1 2017/02/15 15:37:55 Done.
46 std::string DisplaySnapshotMojo::ToString() const {
47 return "";
48 }
49
50 } // namespace display
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698