| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "views/widget/widget_win.h" | 8 #include "views/widget/widget_win.h" |
| 9 #include "views/window/window.h" | 9 #include "views/window/window.h" |
| 10 | 10 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // coords. |flags| are flags that would be passed with a WM_L/M/RBUTTON* | 194 // coords. |flags| are flags that would be passed with a WM_L/M/RBUTTON* |
| 195 // message and relate to things like which button was pressed. These are | 195 // message and relate to things like which button was pressed. These are |
| 196 // combined with flags relating to the current key state. | 196 // combined with flags relating to the current key state. |
| 197 void ProcessNCMousePress(const CPoint& point, int flags); | 197 void ProcessNCMousePress(const CPoint& point, int flags); |
| 198 | 198 |
| 199 // Calls the default WM_NCACTIVATE handler with the specified activation | 199 // Calls the default WM_NCACTIVATE handler with the specified activation |
| 200 // value, safely wrapping the call in a ScopedRedrawLock to prevent frame | 200 // value, safely wrapping the call in a ScopedRedrawLock to prevent frame |
| 201 // flicker. | 201 // flicker. |
| 202 LRESULT CallDefaultNCActivateHandler(BOOL active); | 202 LRESULT CallDefaultNCActivateHandler(BOOL active); |
| 203 | 203 |
| 204 // Returns the normal bounds of the window in screen coordinates and |
| 205 // whether the window is maximized. The arguments can be NULL. |
| 206 void GetWindowBoundsAndMaximizedState(gfx::Rect* bounds, |
| 207 bool* maximized) const; |
| 208 |
| 204 // Static resource initialization. | 209 // Static resource initialization. |
| 205 static void InitClass(); | 210 static void InitClass(); |
| 206 enum ResizeCursor { | 211 enum ResizeCursor { |
| 207 RC_NORMAL = 0, RC_VERTICAL, RC_HORIZONTAL, RC_NESW, RC_NWSE | 212 RC_NORMAL = 0, RC_VERTICAL, RC_HORIZONTAL, RC_NESW, RC_NWSE |
| 208 }; | 213 }; |
| 209 static HCURSOR resize_cursors_[6]; | 214 static HCURSOR resize_cursors_[6]; |
| 210 | 215 |
| 211 // Our window delegate (see Init method for documentation). | 216 // Our window delegate (see Init method for documentation). |
| 212 WindowDelegate* window_delegate_; | 217 WindowDelegate* window_delegate_; |
| 213 | 218 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // used to catch updates to the rect and work area and react accordingly. | 291 // used to catch updates to the rect and work area and react accordingly. |
| 287 HMONITOR last_monitor_; | 292 HMONITOR last_monitor_; |
| 288 gfx::Rect last_monitor_rect_, last_work_area_; | 293 gfx::Rect last_monitor_rect_, last_work_area_; |
| 289 | 294 |
| 290 DISALLOW_COPY_AND_ASSIGN(WindowWin); | 295 DISALLOW_COPY_AND_ASSIGN(WindowWin); |
| 291 }; | 296 }; |
| 292 | 297 |
| 293 } // namespace views | 298 } // namespace views |
| 294 | 299 |
| 295 #endif // VIEWS_WINDOW_WINDOW_WIN_H_ | 300 #endif // VIEWS_WINDOW_WINDOW_WIN_H_ |
| OLD | NEW |