| 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_DISPLAY_SNAPSHOT_MOJO_H_ |
| 6 #define UI_DISPLAY_DISPLAY_SNAPSHOT_MOJO_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "ui/display/display_export.h" |
| 12 #include "ui/display/types/display_snapshot.h" |
| 13 |
| 14 namespace display { |
| 15 |
| 16 // DisplaySnapshot implementation that can be used with Mojo IPC. |
| 17 class DISPLAY_EXPORT DisplaySnapshotMojo : public DisplaySnapshot { |
| 18 public: |
| 19 DisplaySnapshotMojo(int64_t display_id, |
| 20 const gfx::Point& origin, |
| 21 const gfx::Size& physical_size, |
| 22 DisplayConnectionType type, |
| 23 bool is_aspect_preserving_scaling, |
| 24 bool has_overscan, |
| 25 bool has_color_correction_matrix, |
| 26 std::string display_name, |
| 27 const base::FilePath& sys_path, |
| 28 int64_t product_id, |
| 29 DisplayModeList modes, |
| 30 const std::vector<uint8_t>& edid, |
| 31 const DisplayMode* current_mode, |
| 32 const DisplayMode* native_mode, |
| 33 const gfx::Size& maximum_cursor_size); |
| 34 ~DisplaySnapshotMojo() override; |
| 35 std::unique_ptr<DisplaySnapshotMojo> Clone() const; |
| 36 |
| 37 // DisplaySnapshot: |
| 38 std::string ToString() const override; |
| 39 |
| 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotMojo); |
| 42 }; |
| 43 |
| 44 } // namespace display |
| 45 |
| 46 #endif // UI_DISPLAY_DISPLAY_SNAPSHOT_MOJO_H_ |
| OLD | NEW |