OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_FAKE_DISPLAY_SNAPSHOT_H_ |
| 6 #define UI_DISPLAY_FAKE_DISPLAY_SNAPSHOT_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include <memory> |
| 11 #include <string> |
| 12 |
| 13 #include "base/macros.h" |
| 14 #include "ui/display/display_export.h" |
| 15 #include "ui/display/types/display_mode.h" |
| 16 #include "ui/display/types/display_snapshot.h" |
| 17 #include "ui/gfx/geometry/size.h" |
| 18 |
| 19 namespace display { |
| 20 |
| 21 // A display snapshot that doesn't correspond to a physical display, used when |
| 22 // running off device. |
| 23 class FakeDisplaySnapshot : public ui::DisplaySnapshot { |
| 24 public: |
| 25 FakeDisplaySnapshot(int64_t display_id, |
| 26 const gfx::Size& display_size, |
| 27 ui::DisplayConnectionType type); |
| 28 ~FakeDisplaySnapshot() override; |
| 29 |
| 30 // DisplaySnapshot: |
| 31 std::string ToString() const override; |
| 32 |
| 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(FakeDisplaySnapshot); |
| 35 }; |
| 36 |
| 37 } // namespace display |
| 38 |
| 39 #endif // UI_DISPLAY_FAKE_DISPLAY_SNAPSHOT_H_ |
OLD | NEW |