Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / components / app_modal / native_app_modal_dialog.h
blobe41ff48c876117f78df6d992e66372ccd0ad3516
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 COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
6 #define COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
8 #include "ui/gfx/native_widget_types.h"
10 namespace app_modal {
12 class JavaScriptAppModalDialog;
14 class NativeAppModalDialog {
15 public:
16 // Returns the buttons to be shown. See ui::DialogButton for which buttons can
17 // be returned.
18 virtual int GetAppModalDialogButtons() const = 0;
20 // Shows the dialog.
21 virtual void ShowAppModalDialog() = 0;
23 // Activates the dialog.
24 virtual void ActivateAppModalDialog() = 0;
26 // Closes the dialog.
27 virtual void CloseAppModalDialog() = 0;
29 // Accepts or cancels the dialog.
30 virtual void AcceptAppModalDialog() = 0;
31 virtual void CancelAppModalDialog() = 0;
34 } // namespace app_modal
36 #endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_