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..f9521908e1b4b94071345d64a5cdf722da2f204f |
| --- /dev/null |
| +++ b/ui/display/display_snapshot_mojo.cc |
| @@ -0,0 +1,59 @@ |
| +// 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. |
| + |
| +#ifndef UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_CC_ |
| +#define UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_CC_ |
| + |
| +#include "ui/display/mojo/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, |
| + bool current_mode_exist, |
| + const DisplayMode* native_mode, |
| + bool native_mode_exist, |
| + 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; |
| + current_mode_exist_ = current_mode_exist; |
| + native_mode_exist_ = native_mode_exist; |
| +} |
| + |
| +DisplaySnapshotMojo::~DisplaySnapshotMojo() = default; |
| + |
| +// TODO: |
|
kylechar
2017/02/13 22:01:23
This should be in the following format:
TODO(name
thanhph1
2017/02/14 20:20:52
Done.
|
| +std::string DisplaySnapshotMojo::ToString() const { |
| + return ""; |
| +} |
| + |
| +} // namespace display |
| + |
| +#endif // UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_CC_ |