Chromium Code Reviews| Index: ui/display/display_snapshot_mojo.cc |
| diff --git a/ui/display/display_snapshot_mojo.cc b/ui/display/display_snapshot_mojo.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..be2262c59dc9944b60c1d58061ef0753e4ba0e58 |
| --- /dev/null |
| +++ b/ui/display/display_snapshot_mojo.cc |
| @@ -0,0 +1,50 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "ui/display/display_snapshot_mojo.h" |
| + |
| +#include "ui/display/types/display_constants.h" |
| + |
| +namespace display { |
| + |
| +DisplaySnapshotMojo::DisplaySnapshotMojo(int64_t display_id, |
| + const gfx::Point& origin, |
| + const gfx::Size& physical_size, |
| + DisplayConnectionType type, |
| + bool is_aspect_preserving_scaling, |
| + bool has_overscan, |
| + bool has_color_correction_matrix, |
| + std::string display_name, |
| + const base::FilePath& sys_path, |
| + int64_t product_id, |
| + DisplayModeList modes, |
| + const std::vector<uint8_t>& edid, |
| + const DisplayMode* current_mode, |
| + const DisplayMode* native_mode, |
| + const gfx::Size& maximum_cursor_size) |
| + : DisplaySnapshot(display_id, |
| + origin, |
| + physical_size, |
| + type, |
| + is_aspect_preserving_scaling, |
| + has_overscan, |
| + has_color_correction_matrix, |
| + display_name, |
| + sys_path, |
| + std::move(modes), |
| + edid, |
| + current_mode, |
| + native_mode) { |
| + product_id_ = product_id; |
| + maximum_cursor_size_ = maximum_cursor_size; |
| +} |
| + |
| +DisplaySnapshotMojo::~DisplaySnapshotMojo() = default; |
| + |
| +// 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.
|
| +std::string DisplaySnapshotMojo::ToString() const { |
| + return ""; |
| +} |
| + |
| +} // namespace display |