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

Unified Diff: ash/display/multi_display_manager.cc

Issue 10790090: Enable Virtual Screen Coordinates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 8 years, 5 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_controller_unittest.cc ('k') | ash/display/multi_display_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/multi_display_manager.cc
diff --git a/ash/display/multi_display_manager.cc b/ash/display/multi_display_manager.cc
index 5098e0a8ad3df8f4a725c96761c86f11c712a603..becb5f46a6b252441250ab4e92bca1ebff26e9bb 100644
--- a/ash/display/multi_display_manager.cc
+++ b/ash/display/multi_display_manager.cc
@@ -154,9 +154,8 @@ const gfx::Display& MultiDisplayManager::GetDisplayNearestWindow(
const gfx::Display& MultiDisplayManager::GetDisplayNearestPoint(
const gfx::Point& point) const {
- if (!internal::DisplayController::IsVirtualScreenCoordinatesEnabled())
+ if (!DisplayController::IsExtendedDesktopEnabled())
return displays_[0];
-
for (std::vector<gfx::Display>::const_iterator iter = displays_.begin();
iter != displays_.end(); ++iter) {
const gfx::Display& display = *iter;
@@ -170,7 +169,7 @@ const gfx::Display& MultiDisplayManager::GetDisplayNearestPoint(
const gfx::Display& MultiDisplayManager::GetDisplayMatching(
const gfx::Rect& rect) const {
- if (!internal::DisplayController::IsVirtualScreenCoordinatesEnabled())
+ if (!DisplayController::IsExtendedDesktopEnabled())
return displays_[0];
if (rect.IsEmpty())
return GetDisplayNearestPoint(rect.origin());
@@ -276,7 +275,7 @@ gfx::Display& MultiDisplayManager::FindDisplayForRootWindow(
void MultiDisplayManager::AddDisplayFromSpec(const std::string& spec) {
gfx::Display display = CreateDisplayFromSpec(spec);
- if (internal::DisplayController::IsVirtualScreenCoordinatesEnabled()) {
+ if (DisplayController::IsExtendedDesktopEnabled()) {
const gfx::Insets insets = display.GetWorkAreaInsets();
const gfx::Rect& native_bounds = display.bounds_in_pixel();
display.set_bounds(
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | ash/display/multi_display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698