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

Unified Diff: ash/display/screen_position_controller.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/multi_display_manager_unittest.cc ('k') | ash/extended_desktop_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_position_controller.cc
diff --git a/ash/display/screen_position_controller.cc b/ash/display/screen_position_controller.cc
index 80091efd60a35172e2727984852a7d6f383e2705..93794ac7a145dac26c3ff0c427b8596d105d9baf 100644
--- a/ash/display/screen_position_controller.cc
+++ b/ash/display/screen_position_controller.cc
@@ -56,7 +56,7 @@ void ScreenPositionController::ConvertPointToScreen(
gfx::Point* point) {
const aura::RootWindow* root = window->GetRootWindow();
aura::Window::ConvertPointToWindow(window, root, point);
- if (DisplayController::IsVirtualScreenCoordinatesEnabled()) {
+ if (DisplayController::IsExtendedDesktopEnabled()) {
const gfx::Point display_origin =
gfx::Screen::GetDisplayNearestWindow(
const_cast<aura::RootWindow*>(root)).bounds().origin();
@@ -68,7 +68,7 @@ void ScreenPositionController::ConvertPointFromScreen(
const aura::Window* window,
gfx::Point* point) {
const aura::RootWindow* root = window->GetRootWindow();
- if (DisplayController::IsVirtualScreenCoordinatesEnabled()) {
+ if (DisplayController::IsExtendedDesktopEnabled()) {
const gfx::Point display_origin =
gfx::Screen::GetDisplayNearestWindow(
const_cast<aura::RootWindow*>(root)).bounds().origin();
@@ -80,7 +80,7 @@ void ScreenPositionController::ConvertPointFromScreen(
void ScreenPositionController::SetBounds(
aura::Window* window,
const gfx::Rect& bounds) {
- if (!DisplayController::IsVirtualScreenCoordinatesEnabled() ||
+ if (!DisplayController::IsExtendedDesktopEnabled() ||
!window->parent()->GetProperty(internal::kUsesScreenCoordinatesKey)) {
window->SetBounds(bounds);
return;
« no previous file with comments | « ash/display/multi_display_manager_unittest.cc ('k') | ash/extended_desktop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698