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

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

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: WindowForView Created 3 years, 10 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 | « no previous file | ui/display/mac/screen_mac.mm » ('j') | ui/display/screen.h » ('J')
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..5986ef13b5d7a0140acba8b64963e5f0db251e06 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::WindowForView(gfx::NativeView view) {
+ return [view window];
+}
+
Screen* CreateNativeScreen() {
return new ScreenIos;
}
« no previous file with comments | « no previous file | ui/display/mac/screen_mac.mm » ('j') | ui/display/screen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698