OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_WINDOW_WINDOW_WIN_H_ | 5 #ifndef VIEWS_WINDOW_WINDOW_WIN_H_ |
6 #define VIEWS_WINDOW_WINDOW_WIN_H_ | 6 #define VIEWS_WINDOW_WINDOW_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/widget/widget_win.h" | 9 #include "views/widget/widget_win.h" |
10 #include "views/window/window.h" | 10 #include "views/window/window.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // Overridden from Window: | 58 // Overridden from Window: |
59 virtual gfx::Rect GetBounds() const; | 59 virtual gfx::Rect GetBounds() const; |
60 virtual gfx::Rect GetNormalBounds() const; | 60 virtual gfx::Rect GetNormalBounds() const; |
61 virtual void SetBounds(const gfx::Rect& bounds, | 61 virtual void SetBounds(const gfx::Rect& bounds, |
62 gfx::NativeWindow other_window); | 62 gfx::NativeWindow other_window); |
63 virtual void Show(); | 63 virtual void Show(); |
64 virtual void HideWindow(); | 64 virtual void HideWindow(); |
65 virtual void PushForceHidden(); | 65 virtual void PushForceHidden(); |
66 virtual void PopForceHidden(); | 66 virtual void PopForceHidden(); |
67 virtual void Activate(); | 67 virtual void Activate(); |
| 68 virtual void Deactivate(); |
68 virtual void Close(); | 69 virtual void Close(); |
69 virtual void Maximize(); | 70 virtual void Maximize(); |
70 virtual void Minimize(); | 71 virtual void Minimize(); |
71 virtual void Restore(); | 72 virtual void Restore(); |
72 virtual bool IsActive() const; | 73 virtual bool IsActive() const; |
73 virtual bool IsVisible() const; | 74 virtual bool IsVisible() const; |
74 virtual bool IsMaximized() const; | 75 virtual bool IsMaximized() const; |
75 virtual bool IsMinimized() const; | 76 virtual bool IsMinimized() const; |
76 virtual void SetFullscreen(bool fullscreen); | 77 virtual void SetFullscreen(bool fullscreen); |
77 virtual bool IsFullscreen() const; | 78 virtual bool IsFullscreen() const; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 private: | 150 private: |
150 // Information saved before going into fullscreen mode, used to restore the | 151 // Information saved before going into fullscreen mode, used to restore the |
151 // window afterwards. | 152 // window afterwards. |
152 struct SavedWindowInfo { | 153 struct SavedWindowInfo { |
153 bool maximized; | 154 bool maximized; |
154 LONG style; | 155 LONG style; |
155 LONG ex_style; | 156 LONG ex_style; |
156 RECT window_rect; | 157 RECT window_rect; |
157 }; | 158 }; |
158 | 159 |
159 // Set the window as modal (by disabling all the other windows). | 160 // Sets the window as modal (by disabling all the other windows). |
160 void BecomeModal(); | 161 void BecomeModal(); |
161 | 162 |
162 // Sets-up the focus manager with the view that should have focus when the | 163 // Sets-up the focus manager with the view that should have focus when the |
163 // window is shown the first time. If NULL is returned, the focus goes to the | 164 // window is shown the first time. If NULL is returned, the focus goes to the |
164 // button if there is one, otherwise the to the Cancel button. | 165 // button if there is one, otherwise the to the Cancel button. |
165 void SetInitialFocus(); | 166 void SetInitialFocus(); |
166 | 167 |
167 // Place and size the window when it is created. |create_bounds| are the | 168 // Place and size the window when it is created. |create_bounds| are the |
168 // bounds used when the window was created. | 169 // bounds used when the window was created. |
169 void SetInitialBounds(const gfx::Rect& create_bounds); | 170 void SetInitialBounds(const gfx::Rect& create_bounds); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // The window styles before we modified them for the drag frame appearance. | 304 // The window styles before we modified them for the drag frame appearance. |
304 DWORD drag_frame_saved_window_style_; | 305 DWORD drag_frame_saved_window_style_; |
305 DWORD drag_frame_saved_window_ex_style_; | 306 DWORD drag_frame_saved_window_ex_style_; |
306 | 307 |
307 DISALLOW_COPY_AND_ASSIGN(WindowWin); | 308 DISALLOW_COPY_AND_ASSIGN(WindowWin); |
308 }; | 309 }; |
309 | 310 |
310 } // namespace views | 311 } // namespace views |
311 | 312 |
312 #endif // VIEWS_WINDOW_WINDOW_WIN_H_ | 313 #endif // VIEWS_WINDOW_WINDOW_WIN_H_ |
OLD | NEW |