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

Unified Diff: components/web_modal/native_web_contents_modal_dialog.h

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 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 | « components/web_modal/DEPS ('k') | components/web_modal/native_web_contents_modal_dialog_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_modal/native_web_contents_modal_dialog.h
diff --git a/chrome/browser/ui/native_web_contents_modal_dialog.h b/components/web_modal/native_web_contents_modal_dialog.h
similarity index 65%
rename from chrome/browser/ui/native_web_contents_modal_dialog.h
rename to components/web_modal/native_web_contents_modal_dialog.h
index 3fb6445609022ba7c6de828edc44de6a745d30cf..266e073ab9c0bfd6dcb57cdfce9071dd579458ac 100644
--- a/chrome/browser/ui/native_web_contents_modal_dialog.h
+++ b/components/web_modal/native_web_contents_modal_dialog.h
@@ -2,11 +2,13 @@
// 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_
+#ifndef COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_
+#define COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_
#include "ui/gfx/native_widget_types.h"
+namespace web_modal {
+
#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.
@@ -15,4 +17,6 @@ typedef void* NativeWebContentsModalDialog;
typedef gfx::NativeView NativeWebContentsModalDialog;
#endif
-#endif // CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_
+} // namespace web_modal
+
+#endif // COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_
« no previous file with comments | « components/web_modal/DEPS ('k') | components/web_modal/native_web_contents_modal_dialog_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698