Add abhijeet.k@samsung.com to AUTHORS list.
[chromium-blink-merge.git] / components / app_modal / native_app_modal_dialog.h
blob26025cd25c7f35ba67a221989c96768c44be4873
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 virtual ~NativeAppModalDialog() {}
18 // Returns the buttons to be shown. See ui::DialogButton for which buttons can
19 // be returned.
20 virtual int GetAppModalDialogButtons() const = 0;
22 // Shows the dialog.
23 virtual void ShowAppModalDialog() = 0;
25 // Activates the dialog.
26 virtual void ActivateAppModalDialog() = 0;
28 // Closes the dialog.
29 virtual void CloseAppModalDialog() = 0;
31 // Accepts or cancels the dialog.
32 virtual void AcceptAppModalDialog() = 0;
33 virtual void CancelAppModalDialog() = 0;
35 // Should return true when the dialog is being shown.
36 virtual bool IsShowing() const = 0;
39 } // namespace app_modal
41 #endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_