Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 #ifndef UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_CC_ | |
| 6 #define UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_CC_ | |
| 7 | |
| 8 #include "ui/display/mojo/display_snapshot_mojo.h" | |
| 9 | |
| 10 #include "ui/display/types/display_constants.h" | |
|
kylechar
2017/02/09 15:05:53
You use DisplayConnectionType in the header, move
thanhph1
2017/02/10 19:54:32
Done.
| |
| 11 | |
| 12 namespace display { | |
| 13 | |
| 14 DisplaySnapshotMojo::DisplaySnapshotMojo() | |
| 15 : DisplaySnapshot( | |
| 16 0, | |
| 17 gfx::Point(), | |
| 18 gfx::Size(), | |
| 19 DisplayConnectionType::DISPLAY_CONNECTION_TYPE_NONE, | |
| 20 false, // is_aspect_preserving_scaling | |
| 21 false, // has_overscan | |
| 22 false, // has_color_correction_zmatrix | |
| 23 "", // display_name | |
| 24 base::FilePath(), | |
| 25 std::vector<std::unique_ptr<const DisplayMode>>(0), // modes | |
| 26 std::vector<uint8_t>(0), // edid | |
| 27 nullptr, // current_mode | |
| 28 nullptr // native_mode | |
| 29 ) { | |
| 30 product_id_ = 0; | |
| 31 } | |
| 32 | |
| 33 DisplaySnapshotMojo::DisplaySnapshotMojo(int64_t display_id, | |
| 34 const gfx::Point& origin, | |
| 35 const gfx::Size& physical_size, | |
| 36 DisplayConnectionType type, | |
| 37 bool is_aspect_preserving_scaling, | |
| 38 bool has_overscan, | |
| 39 bool has_color_correction_matrix, | |
| 40 std::string display_name, | |
| 41 const base::FilePath& sys_path, | |
| 42 int64_t product_id, | |
| 43 DisplayModeList modes, | |
| 44 const std::vector<uint8_t>& edid, | |
| 45 const DisplayMode* current_mode, | |
| 46 const DisplayMode* native_mode) | |
| 47 : DisplaySnapshot(display_id, | |
| 48 origin, | |
| 49 physical_size, | |
| 50 type, | |
| 51 is_aspect_preserving_scaling, | |
| 52 has_overscan, | |
| 53 has_color_correction_matrix, | |
| 54 display_name, | |
| 55 sys_path, | |
| 56 std::move(modes), | |
| 57 edid, | |
| 58 current_mode, | |
| 59 native_mode) { | |
| 60 product_id_ = product_id; | |
| 61 } | |
| 62 | |
| 63 DisplaySnapshotMojo::~DisplaySnapshotMojo() = default; | |
| 64 | |
| 65 std::string DisplaySnapshotMojo::ToString() const { | |
| 66 return "DisplaySnapshotMojo"; | |
|
kylechar
2017/02/09 15:05:54
This isn't super useful.
thanhph1
2017/02/10 19:54:32
I put return "".
| |
| 67 } | |
| 68 | |
| 69 } // namespace display | |
| 70 | |
| 71 #endif // UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_CC_ | |
| OLD | NEW |