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

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: Created 6 years, 10 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
Index: ash/display/projecting_observer_chromeos.cc
diff --git a/ash/display/projecting_observer_chromeos.cc b/ash/display/projecting_observer_chromeos.cc
index 716ea91f9582d712f6f64485df1c57bf9ecb4979..7fde8485d421ab24ec766397b9fdfa4f90445a6b 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 {
@@ -18,13 +19,13 @@ ProjectingObserver::ProjectingObserver()
ProjectingObserver::~ProjectingObserver() {}
-void ProjectingObserver::OnDisplayModeChanged(
- const std::vector<chromeos::OutputConfigurator::OutputSnapshot>& outputs) {
+void ProjectingObserver::OnDisplayModeChanged(const std::vector<
+ chromeos::OutputConfigurator::InternalDisplayState>& 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;
}

Powered by Google App Engine
This is Rietveld 408576698