| Index: ash/tooltips/tooltip_controller.cc
|
| diff --git a/ash/tooltips/tooltip_controller.cc b/ash/tooltips/tooltip_controller.cc
|
| index 23b30a5751b98cb7cf34d74e77ec947a8c572ed4..64ca6f0b2bb59928e85875595f6f2e5904432736 100644
|
| --- a/ash/tooltips/tooltip_controller.cc
|
| +++ b/ash/tooltips/tooltip_controller.cc
|
| @@ -67,7 +67,7 @@ int GetMaxWidth(int x, int y) {
|
| // TODO(varunjain): implementation duplicated in tooltip_manager_aura. Figure
|
| // out a way to merge.
|
| gfx::Rect monitor_bounds =
|
| - gfx::Screen::GetMonitorNearestPoint(gfx::Point(x, y)).bounds();
|
| + gfx::Screen::GetDisplayNearestPoint(gfx::Point(x, y)).bounds();
|
| return (monitor_bounds.width() + 1) / 2;
|
| }
|
|
|
| @@ -156,7 +156,7 @@ class TooltipController::Tooltip {
|
|
|
| tooltip_rect.Offset(kCursorOffsetX, kCursorOffsetY);
|
| gfx::Rect monitor_bounds =
|
| - gfx::Screen::GetMonitorNearestPoint(tooltip_rect.origin()).bounds();
|
| + gfx::Screen::GetDisplayNearestPoint(tooltip_rect.origin()).bounds();
|
|
|
| // If tooltip is out of bounds on the x axis, we simply shift it
|
| // horizontally by the offset.
|
|
|