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

Unified Diff: ui/display/chromeos/update_display_configuration_task.h

Issue 1456623002: Add support for virtual displays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test (removing need for friend on DisplayConfigurator) Created 5 years, 1 month 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
Index: ui/display/chromeos/update_display_configuration_task.h
diff --git a/ui/display/chromeos/update_display_configuration_task.h b/ui/display/chromeos/update_display_configuration_task.h
index 7b8272e750411b2f65531bba52998a4f635c5778..cd7075253021116c752792d9a63653b81367f77e 100644
--- a/ui/display/chromeos/update_display_configuration_task.h
+++ b/ui/display/chromeos/update_display_configuration_task.h
@@ -35,6 +35,10 @@ class DISPLAY_EXPORT UpdateDisplayConfigurationTask {
const ResponseCallback& callback);
~UpdateDisplayConfigurationTask();
+ void set_virtual_display_snapshots(std::vector<DisplaySnapshot*> snapshots) {
+ virtual_display_snapshots_ = snapshots;
+ }
oshima 2015/11/24 22:19:27 please document ownership
robert.bradford 2015/11/26 16:29:40 Done. And the comment with the actual vector decla
+
void Run();
private:
@@ -92,6 +96,9 @@ class DISPLAY_EXPORT UpdateDisplayConfigurationTask {
// List of updated displays.
std::vector<DisplaySnapshot*> cached_displays_;
+ // Unowned vector of virtual displays to be added when doing the task.
+ std::vector<DisplaySnapshot*> virtual_display_snapshots_;
+
gfx::Size framebuffer_size_;
scoped_ptr<ConfigureDisplaysTask> configure_task_;

Powered by Google App Engine
This is Rietveld 408576698