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

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: Use std::max as suggested by oshima@ Created 5 years 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..c3c9ba2277e055c9fede79e4243b4eaa3c1869a7 100644
--- a/ui/display/chromeos/update_display_configuration_task.h
+++ b/ui/display/chromeos/update_display_configuration_task.h
@@ -35,6 +35,12 @@ class DISPLAY_EXPORT UpdateDisplayConfigurationTask {
const ResponseCallback& callback);
~UpdateDisplayConfigurationTask();
+ // The pointers to the DisplaySnapshots in this vector are owned by
+ // DisplayConfigurator.
+ void set_virtual_display_snapshots(std::vector<DisplaySnapshot*> snapshots) {
+ virtual_display_snapshots_ = snapshots;
+ }
+
void Run();
private:
@@ -92,6 +98,9 @@ class DISPLAY_EXPORT UpdateDisplayConfigurationTask {
// List of updated displays.
std::vector<DisplaySnapshot*> cached_displays_;
+ // Vector of unowned VirtualDisplaySnapshots to be added when doing the task.
+ std::vector<DisplaySnapshot*> virtual_display_snapshots_;
+
gfx::Size framebuffer_size_;
scoped_ptr<ConfigureDisplaysTask> configure_task_;
« no previous file with comments | « ui/display/chromeos/query_content_protection_task.cc ('k') | ui/display/chromeos/update_display_configuration_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698