Chromium Code Reviews| Index: ui/display/mojo/display_snapshot_mojo.h |
| diff --git a/ui/display/mojo/display_snapshot_mojo.h b/ui/display/mojo/display_snapshot_mojo.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..73a61cc24cade05c83572c1dc6c6730d26ff5232 |
| --- /dev/null |
| +++ b/ui/display/mojo/display_snapshot_mojo.h |
| @@ -0,0 +1,40 @@ |
| +// 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_H_ |
| +#define UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_H_ |
| + |
| +#include "ui/display/display_export.h" |
|
kylechar
2017/02/09 15:05:54
Missing include for macros.
thanhph1
2017/02/10 19:54:32
Done.
|
| +#include "ui/display/types/display_snapshot.h" |
| + |
| +namespace display { |
| + |
| +// This class is used to create DisplaySnapshot IPC struct traits. |
| +class DISPLAY_EXPORT DisplaySnapshotMojo : public DisplaySnapshot { |
| + public: |
| + 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); |
| + ~DisplaySnapshotMojo() override; |
| + std::string ToString() const override; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotMojo); |
| +}; |
| + |
| +} // namespace display |
| + |
| +#endif // UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_H_ |