[email protected] | 269f86d | 2011-12-07 02:43:47 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | 160ad3d | 2010-09-28 15:40:20 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
oshima | f6539842 | 2014-11-18 23:30:42 | [diff] [blame] | 5 | #ifndef COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ |
6 | #define COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ | ||||
[email protected] | 160ad3d | 2010-09-28 15:40:20 | [diff] [blame] | 7 | |
[email protected] | 08397d5 | 2011-02-05 01:53:38 | [diff] [blame] | 8 | #include "ui/gfx/native_widget_types.h" |
[email protected] | 160ad3d | 2010-09-28 15:40:20 | [diff] [blame] | 9 | |
oshima | 0929be2a | 2014-11-19 22:21:03 | [diff] [blame] | 10 | namespace app_modal { |
11 | |||||
[email protected] | 160ad3d | 2010-09-28 15:40:20 | [diff] [blame] | 12 | |
13 | class NativeAppModalDialog { | ||||
14 | public: | ||||
jochen | 55ff350 | 2014-12-18 20:52:57 | [diff] [blame] | 15 | virtual ~NativeAppModalDialog() {} |
16 | |||||
[email protected] | 269f86d | 2011-12-07 02:43:47 | [diff] [blame] | 17 | // Returns the buttons to be shown. See ui::DialogButton for which buttons can |
18 | // be returned. | ||||
[email protected] | 160ad3d | 2010-09-28 15:40:20 | [diff] [blame] | 19 | virtual int GetAppModalDialogButtons() const = 0; |
20 | |||||
21 | // Shows the dialog. | ||||
22 | virtual void ShowAppModalDialog() = 0; | ||||
23 | |||||
24 | // Activates the dialog. | ||||
25 | virtual void ActivateAppModalDialog() = 0; | ||||
26 | |||||
27 | // Closes the dialog. | ||||
28 | virtual void CloseAppModalDialog() = 0; | ||||
29 | |||||
30 | // Accepts or cancels the dialog. | ||||
31 | virtual void AcceptAppModalDialog() = 0; | ||||
32 | virtual void CancelAppModalDialog() = 0; | ||||
jochen | 55ff350 | 2014-12-18 20:52:57 | [diff] [blame] | 33 | |
34 | // Should return true when the dialog is being shown. | ||||
35 | virtual bool IsShowing() const = 0; | ||||
[email protected] | 160ad3d | 2010-09-28 15:40:20 | [diff] [blame] | 36 | }; |
37 | |||||
oshima | 0929be2a | 2014-11-19 22:21:03 | [diff] [blame] | 38 | } // namespace app_modal |
39 | |||||
oshima | f6539842 | 2014-11-18 23:30:42 | [diff] [blame] | 40 | #endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ |