| Index: ui/views/widget/tooltip_manager_aura.cc
|
| diff --git a/ui/views/widget/tooltip_manager_aura.cc b/ui/views/widget/tooltip_manager_aura.cc
|
| index 0636daea18a4d948f1762f299e5c9065b1f57fb9..2b76750a2963b3d9e8803902ca8e8698f89a51ef 100644
|
| --- a/ui/views/widget/tooltip_manager_aura.cc
|
| +++ b/ui/views/widget/tooltip_manager_aura.cc
|
| @@ -28,9 +28,10 @@ gfx::Font TooltipManager::GetDefaultFont() {
|
| }
|
|
|
| // static
|
| -int TooltipManager::GetMaxWidth(int x, int y) {
|
| +int TooltipManager::GetMaxWidth(int x, int y, gfx::NativeView context) {
|
| gfx::Rect monitor_bounds =
|
| - gfx::Screen::GetDisplayNearestPoint(gfx::Point(x, y)).bounds();
|
| + gfx::Screen::GetScreenFor(context)->GetDisplayNearestPoint(
|
| + gfx::Point(x, y)).bounds();
|
| return (monitor_bounds.width() + 1) / 2;
|
| }
|
|
|
|
|