OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_BASE_SHELL_DIALOG_H_ | 5 #ifndef UI_BASE_DIALOGS_BASE_SHELL_DIALOG_H_ |
6 #define CHROME_BROWSER_UI_BASE_SHELL_DIALOG_H_ | 6 #define UI_BASE_DIALOGS_BASE_SHELL_DIALOG_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
| 11 namespace ui { |
| 12 |
11 // A base class for shell dialogs. | 13 // A base class for shell dialogs. |
12 class BaseShellDialog { | 14 class BaseShellDialog { |
13 public: | 15 public: |
14 // Returns true if a shell dialog box is currently being shown modally | 16 // Returns true if a shell dialog box is currently being shown modally |
15 // to the specified owner. | 17 // to the specified owner. |
16 virtual bool IsRunning(gfx::NativeWindow owning_window) const = 0; | 18 virtual bool IsRunning(gfx::NativeWindow owning_window) const = 0; |
17 | 19 |
18 // Notifies the dialog box that the listener has been destroyed and it should | 20 // Notifies the dialog box that the listener has been destroyed and it should |
19 // no longer be sent notifications. | 21 // no longer be sent notifications. |
20 virtual void ListenerDestroyed() = 0; | 22 virtual void ListenerDestroyed() = 0; |
21 | 23 |
22 protected: | 24 protected: |
23 virtual ~BaseShellDialog() {} | 25 virtual ~BaseShellDialog() {} |
24 }; | 26 }; |
25 | 27 |
26 #endif // CHROME_BROWSER_UI_BASE_SHELL_DIALOG_H_ | 28 } // namespace |
| 29 |
| 30 #endif // UI_BASE_DIALOGS_BASE_SHELL_DIALOG_H_ |
OLD | NEW |