Index: ui/android/display_android_manager.cc |
diff --git a/ui/android/display_android_manager.cc b/ui/android/display_android_manager.cc |
index 5e467c6877ae9cb6aa2f4e523739d5a2cfc9bb42..af0bae94a854886b42e981cab32cfe70f70e5c69 100644 |
--- a/ui/android/display_android_manager.cc |
+++ b/ui/android/display_android_manager.cc |
@@ -42,8 +42,7 @@ DisplayAndroidManager::~DisplayAndroidManager() {} |
// Screen interface. |
Display DisplayAndroidManager::GetDisplayNearestWindow( |
- gfx::NativeView view) const { |
- ui::WindowAndroid* window = view ? view->GetWindowAndroid() : nullptr; |
+ gfx::NativeWindow window) const { |
if (window) { |
DisplayList::Displays::const_iterator it = |
display_list().FindDisplayById(window->display_id()); |
@@ -54,6 +53,11 @@ Display DisplayAndroidManager::GetDisplayNearestWindow( |
return GetPrimaryDisplay(); |
} |
+Display DisplayAndroidManager::GetDisplayNearestView( |
+ gfx::NativeView view) const { |
+ return GetDisplayNearestWindow(view ? view->GetWindowAndroid() : nullptr); |
+} |
+ |
// There is no notion of relative display positions on Android. |
Display DisplayAndroidManager::GetDisplayNearestPoint( |
const gfx::Point& point) const { |