| 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; | |
| 17 | |
| 18 namespace ui { | 16 namespace ui { |
| 19 | 17 |
| 20 // Provides an interface to perform actions on windows, and query window | 18 // Provides an interface to perform actions on windows, and query window |
| 21 // state. | 19 // state. |
| 22 class UI_BASE_EXPORT BaseWindow { | 20 class UI_BASE_EXPORT BaseWindow { |
| 23 public: | 21 public: |
| 24 // Returns true if the window is currently the active/focused window. | 22 // Returns true if the window is currently the active/focused window. |
| 25 virtual bool IsActive() const = 0; | 23 virtual bool IsActive() const = 0; |
| 26 | 24 |
| 27 // Returns true if the window is maximized (aka zoomed). | 25 // Returns true if the window is maximized (aka zoomed). |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual bool IsAlwaysOnTop() const = 0; | 88 virtual bool IsAlwaysOnTop() const = 0; |
| 91 | 89 |
| 92 // If set to true, the window will stay on top of other windows which do not | 90 // If set to true, the window will stay on top of other windows which do not |
| 93 // have this flag enabled. | 91 // have this flag enabled. |
| 94 virtual void SetAlwaysOnTop(bool always_on_top) = 0; | 92 virtual void SetAlwaysOnTop(bool always_on_top) = 0; |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 } // namespace ui | 95 } // namespace ui |
| 98 | 96 |
| 99 #endif // UI_BASE_BASE_WINDOW_H_ | 97 #endif // UI_BASE_BASE_WINDOW_H_ |
| OLD | NEW |