OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef VIEWS_WINDOW_WINDOW_H_ | 5 #ifndef VIEWS_WINDOW_WINDOW_H_ |
6 #define VIEWS_WINDOW_WINDOW_H_ | 6 #define VIEWS_WINDOW_WINDOW_H_ |
7 | 7 |
8 #include "base/gfx/native_widget_types.h" | 8 #include "base/gfx/native_widget_types.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 gfx::NativeWindow other_window) = 0; | 66 gfx::NativeWindow other_window) = 0; |
67 | 67 |
68 // Makes the window visible. | 68 // Makes the window visible. |
69 virtual void Show() = 0; | 69 virtual void Show() = 0; |
70 | 70 |
71 // Hides the window. This does not delete the window, it just hides it. This | 71 // Hides the window. This does not delete the window, it just hides it. This |
72 // always hides the window, it is separate from the stack maintained by | 72 // always hides the window, it is separate from the stack maintained by |
73 // Push/PopForceHidden. | 73 // Push/PopForceHidden. |
74 virtual void HideWindow() = 0; | 74 virtual void HideWindow() = 0; |
75 | 75 |
| 76 #if defined(OS_WIN) |
76 // Hides the window if it hasn't already been force-hidden. The force hidden | 77 // Hides the window if it hasn't already been force-hidden. The force hidden |
77 // count is tracked, so calling multiple times is allowed, you just have to | 78 // count is tracked, so calling multiple times is allowed, you just have to |
78 // be sure to call PopForceHidden the same number of times. | 79 // be sure to call PopForceHidden the same number of times. |
79 virtual void PushForceHidden() = 0; | 80 virtual void PushForceHidden() = 0; |
80 | 81 |
81 // Decrements the force hidden count, showing the window if we have reached | 82 // Decrements the force hidden count, showing the window if we have reached |
82 // the top of the stack. See PushForceHidden. | 83 // the top of the stack. See PushForceHidden. |
83 virtual void PopForceHidden() = 0; | 84 virtual void PopForceHidden() = 0; |
| 85 #endif |
84 | 86 |
85 // Activate the window, assuming it already exists and is visible. | 87 // Activate the window, assuming it already exists and is visible. |
86 virtual void Activate() = 0; | 88 virtual void Activate() = 0; |
87 | 89 |
88 // Closes the window, ultimately destroying it. This isn't immediate (it | 90 // Closes the window, ultimately destroying it. This isn't immediate (it |
89 // occurs after a return to the message loop. Implementors must also make sure | 91 // occurs after a return to the message loop. Implementors must also make sure |
90 // that invoking Close multiple times doesn't cause bad things to happen, | 92 // that invoking Close multiple times doesn't cause bad things to happen, |
91 // since it can happen. | 93 // since it can happen. |
92 virtual void Close() = 0; | 94 virtual void Close() = 0; |
93 | 95 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // Whether we should be using a native frame. | 157 // Whether we should be using a native frame. |
156 virtual bool ShouldUseNativeFrame() const = 0; | 158 virtual bool ShouldUseNativeFrame() const = 0; |
157 | 159 |
158 // Tell the window that something caused the frame type to change. | 160 // Tell the window that something caused the frame type to change. |
159 virtual void FrameTypeChanged() = 0; | 161 virtual void FrameTypeChanged() = 0; |
160 }; | 162 }; |
161 | 163 |
162 } // namespace views | 164 } // namespace views |
163 | 165 |
164 #endif // #ifndef VIEWS_WINDOW_WINDOW_H_ | 166 #endif // #ifndef VIEWS_WINDOW_WINDOW_H_ |
OLD | NEW |