Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: ui/display/fake_display_snapshot.h

Issue 2324163002: Add FakeDisplayDelegate for off device usage. (Closed)
Patch Set: Rebase and remove some debug logging. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698