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 UI_BASE_BASE_WINDOW_H_ | 5 #ifndef UI_BASE_BASE_WINDOW_H_ |
6 #define UI_BASE_BASE_WINDOW_H_ | 6 #define UI_BASE_BASE_WINDOW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/base/ui_base_types.h" // WindowShowState | 9 #include "ui/base/ui_base_types.h" // WindowShowState |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
11 | 11 |
12 namespace gfx { | 12 namespace gfx { |
13 class Rect; | 13 class Rect; |
14 } | 14 } |
15 | 15 |
16 class SkRegion; | 16 class SkRegion; |
17 | 17 |
18 namespace ui { | 18 namespace ui { |
19 | 19 |
20 // Provides an interface to perform actions on windows, and query window | 20 // Provides an interface to perform actions on windows, and query window |
21 // state. | 21 // state. |
22 class UI_EXPORT BaseWindow { | 22 class UI_BASE_EXPORT BaseWindow { |
23 public: | 23 public: |
24 // Returns true if the window is currently the active/focused window. | 24 // Returns true if the window is currently the active/focused window. |
25 virtual bool IsActive() const = 0; | 25 virtual bool IsActive() const = 0; |
26 | 26 |
27 // Returns true if the window is maximized (aka zoomed). | 27 // Returns true if the window is maximized (aka zoomed). |
28 virtual bool IsMaximized() const = 0; | 28 virtual bool IsMaximized() const = 0; |
29 | 29 |
30 // Returns true if the window is minimized. | 30 // Returns true if the window is minimized. |
31 virtual bool IsMinimized() const = 0; | 31 virtual bool IsMinimized() const = 0; |
32 | 32 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual bool IsAlwaysOnTop() const = 0; | 90 virtual bool IsAlwaysOnTop() const = 0; |
91 | 91 |
92 // If set to true, the window will stay on top of other windows which do not | 92 // If set to true, the window will stay on top of other windows which do not |
93 // have this flag enabled. | 93 // have this flag enabled. |
94 virtual void SetAlwaysOnTop(bool always_on_top) = 0; | 94 virtual void SetAlwaysOnTop(bool always_on_top) = 0; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace ui | 97 } // namespace ui |
98 | 98 |
99 #endif // UI_BASE_BASE_WINDOW_H_ | 99 #endif // UI_BASE_BASE_WINDOW_H_ |
OLD | NEW |