1 // Copyright (c) 2013 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 UI_SHELL_DIALOGS_BASE_SHELL_DIALOG_H_
6 #define UI_SHELL_DIALOGS_BASE_SHELL_DIALOG_H_
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/shell_dialogs/shell_dialogs_export.h"
13 // A base class for shell dialogs.
14 class SHELL_DIALOGS_EXPORT BaseShellDialog
{
16 // Returns true if a shell dialog box is currently being shown modally
17 // to the specified owner.
18 virtual bool IsRunning(gfx::NativeWindow owning_window
) const = 0;
20 // Notifies the dialog box that the listener has been destroyed and it should
21 // no longer be sent notifications.
22 virtual void ListenerDestroyed() = 0;
25 virtual ~BaseShellDialog();
30 #endif // UI_SHELL_DIALOGS_BASE_SHELL_DIALOG_H_