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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/fake_display_snapshot.h
diff --git a/ui/display/fake_display_snapshot.h b/ui/display/fake_display_snapshot.h
new file mode 100644
index 0000000000000000000000000000000000000000..f1ed1d6daa43ba1c0be3dda070543a4d1a60629f
--- /dev/null
+++ b/ui/display/fake_display_snapshot.h
@@ -0,0 +1,42 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_DISPLAY_FAKE_DISPLAY_SNAPSHOT_H_
+#define UI_DISPLAY_FAKE_DISPLAY_SNAPSHOT_H_
+
+#include <stdint.h>
+
+#include <memory>
+#include <string>
+
+#include "base/macros.h"
+#include "ui/display/display_export.h"
+#include "ui/display/types/display_mode.h"
+#include "ui/display/types/display_snapshot.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace display {
+
+// A display snapshot that doesn't correspond to a physical display, used when
+// running off device.
+class FakeDisplaySnapshot : public ui::DisplaySnapshot {
+ public:
+ // TODO(kylechar): Add a builder.
+
+ FakeDisplaySnapshot(int64_t display_id,
+ const gfx::Size& display_size,
+ ui::DisplayConnectionType type,
+ std::string name);
+ ~FakeDisplaySnapshot() override;
+
+ // DisplaySnapshot:
+ std::string ToString() const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FakeDisplaySnapshot);
+};
+
+} // namespace display
+
+#endif // UI_DISPLAY_FAKE_DISPLAY_SNAPSHOT_H_
« 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