| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ | 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ |
| 6 #define UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ | 6 #define UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "ui/display/manager/display_manager_export.h" | 13 #include "ui/display/manager/display_manager_export.h" |
| 14 #include "ui/display/types/display_mode.h" | 14 #include "ui/display/types/display_mode.h" |
| 15 #include "ui/display/types/display_snapshot.h" | 15 #include "ui/display/types/display_snapshot.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace display { |
| 18 | 18 |
| 19 // This class represents a virtual display to be enabled on demand. The display | 19 // This class represents a virtual display to be enabled on demand. The display |
| 20 // is constructed for the desired pixel resolution. | 20 // is constructed for the desired pixel resolution. |
| 21 class DISPLAY_MANAGER_EXPORT DisplaySnapshotVirtual : public DisplaySnapshot { | 21 class DISPLAY_MANAGER_EXPORT DisplaySnapshotVirtual : public DisplaySnapshot { |
| 22 public: | 22 public: |
| 23 // |display_id| is the numerical identifier for the virtual display, | 23 // |display_id| is the numerical identifier for the virtual display, |
| 24 // |display_size| is the pixel dimensions for the display. | 24 // |display_size| is the pixel dimensions for the display. |
| 25 DisplaySnapshotVirtual(int64_t display_id, const gfx::Size& display_size); | 25 DisplaySnapshotVirtual(int64_t display_id, const gfx::Size& display_size); |
| 26 ~DisplaySnapshotVirtual() override; | 26 ~DisplaySnapshotVirtual() override; |
| 27 | 27 |
| 28 // DisplaySnapshot overrides. | 28 // DisplaySnapshot overrides. |
| 29 std::string ToString() const override; | 29 std::string ToString() const override; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 std::unique_ptr<DisplayMode> mode_; | 32 std::unique_ptr<DisplayMode> mode_; |
| 33 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotVirtual); | 33 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotVirtual); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } // namespace ui | 36 } // namespace display |
| 37 | 37 |
| 38 #endif // UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ | 38 #endif // UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ |
| OLD | NEW |