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

Unified Diff: components/web_modal/native_web_contents_modal_dialog.h

Issue 866263008: MacViews: Unify web contents modal dialog types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ValidationMessageBubble
Patch Set: Fix for wittman Created 5 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
Index: components/web_modal/native_web_contents_modal_dialog.h
diff --git a/components/web_modal/native_web_contents_modal_dialog.h b/components/web_modal/native_web_contents_modal_dialog.h
index 4bb956a8ef09010a78bb25d41b177dfa53f72c86..c0dfdb0ee7c2ca3ad12b8ddc9541a4ece2603b66 100644
--- a/components/web_modal/native_web_contents_modal_dialog.h
+++ b/components/web_modal/native_web_contents_modal_dialog.h
@@ -11,21 +11,8 @@ namespace web_modal {
// TODO(gbillock): rename this file
Robert Sesek 2015/03/02 22:15:27 It seems like this entire file could be removed an
Andre 2015/03/02 22:45:38 There are quite a bit of call sites that will need
Mike Wittman 2015/03/02 22:48:31 Replacing types and removing this file in a separa
msw 2015/03/02 23:07:02 Ditto, I think that's a great suggestion.
-#if defined(OS_MACOSX)
-// Use a void* since none of the gfx::Native* types are suitable for
-// representing the web contents modal dialog under Cocoa.
-typedef void* NativeWebContentsModalDialog;
-#else
-typedef gfx::NativeView NativeWebContentsModalDialog;
-#endif
-
-#if defined(OS_MACOSX)
-// Use a void* since none of the gfx::Native* types are suitable for
-// representing a popup window under Cocoa.
-typedef void* NativePopup;
-#else
-typedef gfx::NativeView NativePopup;
-#endif
+typedef gfx::NativeWindow NativeWebContentsModalDialog;
Robert Sesek 2015/03/02 22:15:27 |using| is now preferred.
Andre 2015/03/02 22:45:38 Done.
+typedef gfx::NativeWindow NativePopup;
} // namespace web_modal

Powered by Google App Engine
This is Rietveld 408576698