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 // TODO(kylechar): Add a builder. |
| 26 |
| 27 FakeDisplaySnapshot(int64_t display_id, |
| 28 const gfx::Size& display_size, |
| 29 ui::DisplayConnectionType type, |
| 30 std::string name); |
| 31 ~FakeDisplaySnapshot() override; |
| 32 |
| 33 // DisplaySnapshot: |
| 34 std::string ToString() const override; |
| 35 |
| 36 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(FakeDisplaySnapshot); |
| 38 }; |
| 39 |
| 40 } // namespace display |
| 41 |
| 42 #endif // UI_DISPLAY_FAKE_DISPLAY_SNAPSHOT_H_ |
OLD | NEW |