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

Unified Diff: ui/display/ios/screen_ios.mm

Issue 2751833004: Reland "Add display::GetDisplayNearestView" (Closed)
Patch Set: Created 3 years, 9 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 | « ui/display/BUILD.gn ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/ios/screen_ios.mm
diff --git a/ui/display/ios/screen_ios.mm b/ui/display/ios/screen_ios.mm
index 23efa97dfd30513b11ed28e1d98c1dd97c0b1458..cb3c47b282b5be461cf18419385ce94325250ba8 100644
--- a/ui/display/ios/screen_ios.mm
+++ b/ui/display/ios/screen_ios.mm
@@ -51,6 +51,11 @@ class ScreenIos : public ScreenBase {
} // namespace
+// static
+gfx::NativeWindow Screen::GetWindowForView(gfx::NativeView view) {
+ return [view window];
+}
+
Screen* CreateNativeScreen() {
return new ScreenIos;
}
« no previous file with comments | « ui/display/BUILD.gn ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698