summaryrefslogtreecommitdiffstats
path: root/components/app_modal/javascript_dialog_manager.h
diff options
context:
space:
mode:
authoroshima <oshima@chromium.org>2014-11-18 15:30:42 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-18 23:31:23 +0000
commitf6539842bf88bd2858183936277f9d3a43ac9093 (patch)
treec2131e03e2155d8f47c56b7e6b9043e5ca8cdad5 /components/app_modal/javascript_dialog_manager.h
parenteb1d65c29544af7ee74e9aba30ccfa2a0103c093 (diff)
downloadchromium_src-f6539842bf88bd2858183936277f9d3a43ac9093.zip
chromium_src-f6539842bf88bd2858183936277f9d3a43ac9093.tar.gz
chromium_src-f6539842bf88bd2858183936277f9d3a43ac9093.tar.bz2
Rename app_modal_dialogs dir to app_modal
BUG=410499 TBR=benwells@chromium.org, jochen@chromium.org, agl@chromium.org Review URL: https://codereview.chromium.org/735473002 Cr-Commit-Position: refs/heads/master@{#304697}
Diffstat (limited to 'components/app_modal/javascript_dialog_manager.h')
-rw-r--r--components/app_modal/javascript_dialog_manager.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/components/app_modal/javascript_dialog_manager.h b/components/app_modal/javascript_dialog_manager.h
new file mode 100644
index 0000000..88aa78c
--- /dev/null
+++ b/components/app_modal/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_JAVASCRIPT_DIALOG_MANAGER_H_
+#define COMPONENTS_APP_MODAL_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_JAVASCRIPT_DIALOG_MANAGER_H_