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_H_ | |
| 6 #define UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "ui/display/display_export.h" | |
| 10 #include "ui/display/types/display_snapshot.h" | |
| 11 | |
| 12 namespace display { | |
| 13 | |
| 14 // This class is used to create DisplaySnapshot IPC struct traits. | |
| 15 class DISPLAY_EXPORT DisplaySnapshotMojo : public DisplaySnapshot { | |
| 16 public: | |
| 17 DisplaySnapshotMojo(int64_t display_id, | |
| 18 const gfx::Point& origin, | |
| 19 const gfx::Size& physical_size, | |
| 20 DisplayConnectionType type, | |
| 21 bool is_aspect_preserving_scaling, | |
| 22 bool has_overscan, | |
| 23 bool has_color_correction_matrix, | |
| 24 std::string display_name, | |
| 25 const base::FilePath& sys_path, | |
| 26 int64_t product_id, | |
| 27 DisplayModeList modes, | |
| 28 const std::vector<uint8_t>& edid, | |
| 29 const DisplayMode* current_mode, | |
| 30 bool current_mode_exist, | |
| 31 const DisplayMode* native_mode, | |
| 32 bool native_mode_exist, | |
| 33 const gfx::Size& maximum_cursor_size); | |
| 34 ~DisplaySnapshotMojo() override; | |
| 35 std::string ToString() const override; | |
| 36 const bool& current_mode_exist() const { return current_mode_exist_; } | |
|
kylechar
2017/02/13 22:01:23
These two methods shouldn't be necessary, see comm
thanhph1
2017/02/14 20:20:52
Removed!
| |
| 37 const bool& native_mode_exist() const { return native_mode_exist_; } | |
| 38 | |
| 39 private: | |
| 40 bool current_mode_exist_; | |
|
kylechar
2017/02/13 22:01:23
Ditto for these members, this is just current_mode
thanhph1
2017/02/14 20:20:52
Removed!
| |
| 41 bool native_mode_exist_; | |
| 42 | |
| 43 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotMojo); | |
| 44 }; | |
| 45 | |
| 46 } // namespace display | |
| 47 | |
| 48 #endif // UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_H_ | |
| OLD | NEW |