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

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

Issue 2324163002: Add FakeDisplayDelegate for off device usage. (Closed)
Patch Set: Fix windows compile problems. 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
« no previous file with comments | « ui/display/fake_display_delegate.cc ('k') | ui/display/fake_display_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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_
OLDNEW
« no previous file with comments | « ui/display/fake_display_delegate.cc ('k') | ui/display/fake_display_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698