- add sources.
[platform/framework/web/crosswalk.git] / src / ui / shell_dialogs / base_shell_dialog.h
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.
4
5 #ifndef UI_SHELL_DIALOGS_BASE_SHELL_DIALOG_H_
6 #define UI_SHELL_DIALOGS_BASE_SHELL_DIALOG_H_
7
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/shell_dialogs/shell_dialogs_export.h"
10
11 namespace ui {
12
13 // A base class for shell dialogs.
14 class SHELL_DIALOGS_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;
19
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;
23
24  protected:
25   virtual ~BaseShellDialog();
26 };
27
28 }  // namespace ui
29
30 #endif  // UI_SHELL_DIALOGS_BASE_SHELL_DIALOG_H_
31