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

Unified Diff: chrome/browser/ui/native_web_contents_modal_dialog.h

Issue 12221055: Use a uniform opaque type to represent web contents modal dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: chrome/browser/ui/native_web_contents_modal_dialog.h
diff --git a/chrome/browser/ui/native_web_contents_modal_dialog.h b/chrome/browser/ui/native_web_contents_modal_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c5865bb85c4eff367712a7425ae3b4bb9b66802
--- /dev/null
+++ b/chrome/browser/ui/native_web_contents_modal_dialog.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_
+#define CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_
+
+#include "ui/gfx/native_widget_types.h"
+
+#if defined(OS_MACOSX)
+// Use a specific type since none of the gfx::Native* types are suitable for
+// representing the web contents modal dialog under Cocoa.
+@protocol ConstrainedWindowSheet;
sail 2013/02/07 00:46:08 I don't think this would compile if it was include
Mike Wittman 2013/02/11 22:20:30 I've updated the ifdefs based on the code in image
+typedef id<ConstrainedWindowSheet> NativeWebContentsModalDialog;
+#else
+typedef gfx::NativeWindow NativeWebContentsModalDialog;
+#endif
+
+#endif // CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_
« no previous file with comments | « chrome/browser/ui/gtk/constrained_window_gtk.cc ('k') | chrome/browser/ui/native_web_contents_modal_dialog_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698