NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / ui / app_modal_dialogs / native_app_modal_dialog.h
blob6fe82f8d98109bce3ace2cc16670950da232c99e
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
8 #include "ui/gfx/native_widget_types.h"
10 class JavaScriptAppModalDialog;
12 class NativeAppModalDialog {
13 public:
14 // Returns the buttons to be shown. See ui::DialogButton for which buttons can
15 // be returned.
16 virtual int GetAppModalDialogButtons() const = 0;
18 // Shows the dialog.
19 virtual void ShowAppModalDialog() = 0;
21 // Activates the dialog.
22 virtual void ActivateAppModalDialog() = 0;
24 // Closes the dialog.
25 virtual void CloseAppModalDialog() = 0;
27 // Accepts or cancels the dialog.
28 virtual void AcceptAppModalDialog() = 0;
29 virtual void CancelAppModalDialog() = 0;
31 // Creates an app modal dialog for a JavaScript prompt.
32 static NativeAppModalDialog* CreateNativeJavaScriptPrompt(
33 JavaScriptAppModalDialog* dialog,
34 gfx::NativeWindow parent_window);
37 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_