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

Unified Diff: ui/display/types/fake_display_controller.h

Issue 2340383002: Add FakeDisplaySnapshot builder and related changes. (Closed)
Patch Set: Fixes for comments. 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_snapshot.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/types/fake_display_controller.h
diff --git a/ui/display/types/fake_display_controller.h b/ui/display/types/fake_display_controller.h
index 79284eabfe6c459202c3f08f79430c29c4fd178f..72ece3496477187fa21ed3324d2781edd0ca762a 100644
--- a/ui/display/types/fake_display_controller.h
+++ b/ui/display/types/fake_display_controller.h
@@ -7,12 +7,18 @@
#include <stdint.h>
+#include <memory>
+
#include "ui/display/types/display_types_export.h"
namespace gfx {
class Size;
}
+namespace ui {
+class DisplaySnapshot;
+}
+
namespace display {
// Controls the fake display state. Provided by the NativeDisplayDelegate if
@@ -24,6 +30,10 @@ class DISPLAY_TYPES_EXPORT FakeDisplayController {
// |kInvalidDisplayId| if it fails.
virtual int64_t AddDisplay(const gfx::Size& display_size) = 0;
+ // Adds |display| to the list of displays and returns true if successful. Will
+ // fail if an existing display has the same id as |display|.
+ virtual bool AddDisplay(std::unique_ptr<ui::DisplaySnapshot> display) = 0;
+
// Removes a fake display with specified id, returns true if successful.
virtual bool RemoveDisplay(int64_t display_id) = 0;
« no previous file with comments | « ui/display/fake_display_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698