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

Unified Diff: components/app_modal_dialogs/javascript_dialog_manager.h

Issue 666533007: Move JavaScriptDialogManager, JavascriptAppModalDialogViews to components/app_modal_dialogs (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 1 month 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/app_modal_dialogs/javascript_dialog_manager.h
diff --git a/components/app_modal_dialogs/javascript_dialog_manager.h b/components/app_modal_dialogs/javascript_dialog_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..cadf945804cf996e055e30b0e371178084945aef
--- /dev/null
+++ b/components/app_modal_dialogs/javascript_dialog_manager.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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 COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_
+#define COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace content {
+class JavaScriptDialogManager;
+}
+
+class JavaScriptDialogExtensionsClient;
+class JavaScriptNativeDialogFactory;
+
+// Returns a JavaScriptDialogManager that creates real dialogs.
+// It returns a Singleton instance of JavaScriptDialogManager,
+// which should not be deleted.
+content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance();
+
+// Sets the JavaScriptNativeDialogFactory used to create platform specific
+// dialog window implementation.
+void SetJavaScriptNativeDialogFactory(
+ scoped_ptr<JavaScriptNativeDialogFactory> factory);
+
+// JavaScript dialog may be opened by an extensions/app, thus needs
+// access to extensions functionality. This sets a client interface to
+// access //extensions.
+void SetJavaScriptDialogExtensionsClient(
+ scoped_ptr<JavaScriptDialogExtensionsClient> client);
+
+#endif // COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698