blob: e41ff48c876117f78df6d992e66372ccd0ad3516 [file] [log] [blame]
[email protected]269f86d2011-12-07 02:43:471// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]160ad3d2010-09-28 15:40:202// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
oshimaf65398422014-11-18 23:30:425#ifndef COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
6#define COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
[email protected]160ad3d2010-09-28 15:40:207
[email protected]08397d52011-02-05 01:53:388#include "ui/gfx/native_widget_types.h"
[email protected]160ad3d2010-09-28 15:40:209
oshima0929be2a2014-11-19 22:21:0310namespace app_modal {
11
[email protected]160ad3d2010-09-28 15:40:2012class JavaScriptAppModalDialog;
13
14class NativeAppModalDialog {
15 public:
[email protected]269f86d2011-12-07 02:43:4716 // Returns the buttons to be shown. See ui::DialogButton for which buttons can
17 // be returned.
[email protected]160ad3d2010-09-28 15:40:2018 virtual int GetAppModalDialogButtons() const = 0;
19
20 // Shows the dialog.
21 virtual void ShowAppModalDialog() = 0;
22
23 // Activates the dialog.
24 virtual void ActivateAppModalDialog() = 0;
25
26 // Closes the dialog.
27 virtual void CloseAppModalDialog() = 0;
28
29 // Accepts or cancels the dialog.
30 virtual void AcceptAppModalDialog() = 0;
31 virtual void CancelAppModalDialog() = 0;
[email protected]160ad3d2010-09-28 15:40:2032};
33
oshima0929be2a2014-11-19 22:21:0334} // namespace app_modal
35
oshimaf65398422014-11-18 23:30:4236#endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_