summaryrefslogtreecommitdiffstats
path: root/components/app_modal/native_app_modal_dialog.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/native_app_modal_dialog.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/native_app_modal_dialog.h')
-rw-r--r--components/app_modal/native_app_modal_dialog.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/components/app_modal/native_app_modal_dialog.h b/components/app_modal/native_app_modal_dialog.h
new file mode 100644
index 0000000..192619a
--- /dev/null
+++ b/components/app_modal/native_app_modal_dialog.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 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_NATIVE_APP_MODAL_DIALOG_H_
+#define COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
+
+#include "ui/gfx/native_widget_types.h"
+
+class JavaScriptAppModalDialog;
+
+class NativeAppModalDialog {
+ public:
+ // Returns the buttons to be shown. See ui::DialogButton for which buttons can
+ // be returned.
+ virtual int GetAppModalDialogButtons() const = 0;
+
+ // Shows the dialog.
+ virtual void ShowAppModalDialog() = 0;
+
+ // Activates the dialog.
+ virtual void ActivateAppModalDialog() = 0;
+
+ // Closes the dialog.
+ virtual void CloseAppModalDialog() = 0;
+
+ // Accepts or cancels the dialog.
+ virtual void AcceptAppModalDialog() = 0;
+ virtual void CancelAppModalDialog() = 0;
+};
+
+#endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_