[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / ui / shell_dialogs / base_shell_dialog.h
bloba684aa43a4112ccfe582b26940b53f2c76406939
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"
11 namespace ui {
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;
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_SHELL_DIALOGS_BASE_SHELL_DIALOG_H_