Mailbox support for texture layers.
[chromium-blink-merge.git] / ui / base / dialogs / base_shell_dialog.h
bloba4b954f2672e3be51f5238a463e52cb9490bc5c0
1 // Copyright (c) 2012 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_BASE_DIALOGS_BASE_SHELL_DIALOG_H_
6 #define UI_BASE_DIALOGS_BASE_SHELL_DIALOG_H_
8 #include "ui/base/ui_export.h"
9 #include "ui/gfx/native_widget_types.h"
11 namespace ui {
13 // A base class for shell dialogs.
14 class UI_EXPORT BaseShellDialog {
15 public:
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;
24 protected:
25 virtual ~BaseShellDialog();
28 } // namespace ui
30 #endif // UI_BASE_DIALOGS_BASE_SHELL_DIALOG_H_