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

Unified Diff: ui/display/mac/screen_mac.mm

Issue 2721203007: gfx::NativeView <-> NativeWindow in dislpay.h (Closed)
Patch Set: scope 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 | « ui/display/ios/screen_ios.mm ('k') | ui/display/screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/mac/screen_mac.mm
diff --git a/ui/display/mac/screen_mac.mm b/ui/display/mac/screen_mac.mm
index fb25b0cd63699ee699349f036d8243920f8768f6..adddbf9073450f0908572cdbc626f820a56aae64 100644
--- a/ui/display/mac/screen_mac.mm
+++ b/ui/display/mac/screen_mac.mm
@@ -329,6 +329,11 @@ class ScreenMac : public Screen {
} // namespace
+// static
+static gfx::NativeWindow Display::WindowForView(gfx::NativeView view) {
+ return [view window];
+}
+
#if !defined(USE_AURA)
Screen* CreateNativeScreen() {
return new ScreenMac;
« no previous file with comments | « ui/display/ios/screen_ios.mm ('k') | ui/display/screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698