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

Unified Diff: ash/display/projecting_observer_chromeos.cc

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 9 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 | « ash/display/projecting_observer_chromeos.h ('k') | ash/display/projecting_observer_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/projecting_observer_chromeos.cc
diff --git a/ash/display/projecting_observer_chromeos.cc b/ash/display/projecting_observer_chromeos.cc
index f56b23cfa43ba6304203546d01c5766b31474c11..8183d0ae4f0f0a3f7864d04a3d22e1fefc9429cd 100644
--- a/ash/display/projecting_observer_chromeos.cc
+++ b/ash/display/projecting_observer_chromeos.cc
@@ -6,6 +6,7 @@
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/power_manager_client.h"
+#include "ui/display/chromeos/display_snapshot.h"
namespace ash {
@@ -19,12 +20,12 @@ ProjectingObserver::ProjectingObserver()
ProjectingObserver::~ProjectingObserver() {}
void ProjectingObserver::OnDisplayModeChanged(
- const std::vector<ui::OutputConfigurator::OutputSnapshot>& outputs) {
+ const ui::OutputConfigurator::DisplayStateList& outputs) {
has_internal_output_ = false;
output_count_ = outputs.size();
for (size_t i = 0; i < outputs.size(); ++i) {
- if (outputs[i].type == ui::OUTPUT_TYPE_INTERNAL) {
+ if (outputs[i].display->type() == ui::OUTPUT_TYPE_INTERNAL) {
has_internal_output_ = true;
break;
}
« no previous file with comments | « ash/display/projecting_observer_chromeos.h ('k') | ash/display/projecting_observer_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698