OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ | |
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ | |
7 | |
8 #include "ui/display/types/display_snapshot.h" | |
9 | |
10 #include "base/macros.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "ui/display/types/display_mode.h" | |
13 | |
14 namespace ui { | |
15 | |
16 // This class represents a virtual display to be enabled on demand. The display | |
17 // is constructed for the desired pixel resolution. | |
18 class DisplaySnapshotVirtual : public DisplaySnapshot { | |
19 public: | |
20 // |display_id| is the numerical identifier for the virtual display, | |
21 // |display_size| is the pixel dimensions for the display. | |
22 DisplaySnapshotVirtual(int64_t display_id, gfx::Size display_size); | |
oshima
2015/11/24 22:19:27
const gfx::Size &
robert.bradford
2015/11/26 16:29:40
Done.
| |
23 ~DisplaySnapshotVirtual() override; | |
24 | |
25 // DisplaySnapshot overrides. | |
26 std::string ToString() const override; | |
27 | |
28 // Update the identifer to |display_id|. This is used by DisplayConfigurator | |
29 // to update the virtual display's id after the physical displays are | |
30 // enumerated. | |
31 void set_display_id(int64_t display_id) { display_id_ = display_id; } | |
oshima
2015/11/24 22:19:27
where this is used?
robert.bradford
2015/11/26 16:29:40
Left over from the pre-DisplayConfigurator split o
| |
32 | |
33 private: | |
34 scoped_ptr<DisplayMode> mode_; | |
35 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotVirtual); | |
36 }; | |
37 | |
38 } // namespace ui | |
39 | |
40 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_SNAPSHOT_VIRTUAL_H_ | |
OLD | NEW |