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

Unified Diff: ash/display/display_manager.cc

Issue 1361763003: Ignore UI scaling when internal display isn't active (in docked mode, for example) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « ash/display/display_manager.h ('k') | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.cc
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc
index 2ac027e3506305ea5a7f0c5e6f68fba0a0e37d60..045f3a9500aeec67bac889f70e188d1a1caf498e 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -870,6 +870,13 @@ size_t DisplayManager::GetNumDisplays() const {
return active_display_list_.size();
}
+bool DisplayManager::IsActiveDisplayId(int64 display_id) const {
+ return std::find_if(active_display_list_.begin(), active_display_list_.end(),
+ [display_id](const gfx::Display& display) {
+ return display.id() == display_id;
+ }) != active_display_list_.end();
+}
+
bool DisplayManager::IsInMirrorMode() const {
return mirroring_display_id_ != gfx::Display::kInvalidDisplayID;
}
« no previous file with comments | « ash/display/display_manager.h ('k') | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698