| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/native_window.h" | 10 #include "views/window/native_window.h" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void UpdateAccessibleState(); | 206 void UpdateAccessibleState(); |
| 207 | 207 |
| 208 // Calls the default WM_NCACTIVATE handler with the specified activation | 208 // Calls the default WM_NCACTIVATE handler with the specified activation |
| 209 // value, safely wrapping the call in a ScopedRedrawLock to prevent frame | 209 // value, safely wrapping the call in a ScopedRedrawLock to prevent frame |
| 210 // flicker. | 210 // flicker. |
| 211 LRESULT CallDefaultNCActivateHandler(BOOL active); | 211 LRESULT CallDefaultNCActivateHandler(BOOL active); |
| 212 | 212 |
| 213 // Executes the specified SC_command. | 213 // Executes the specified SC_command. |
| 214 void ExecuteSystemMenuCommand(int command); | 214 void ExecuteSystemMenuCommand(int command); |
| 215 | 215 |
| 216 // Static resource initialization. | |
| 217 static void InitClass(); | |
| 218 enum ResizeCursor { | |
| 219 RC_NORMAL = 0, RC_VERTICAL, RC_HORIZONTAL, RC_NESW, RC_NWSE | |
| 220 }; | |
| 221 static HCURSOR resize_cursors_[6]; | |
| 222 | |
| 223 // A delegate implementation that handles events received here. | 216 // A delegate implementation that handles events received here. |
| 224 internal::NativeWindowDelegate* delegate_; | 217 internal::NativeWindowDelegate* delegate_; |
| 225 | 218 |
| 226 // Whether we should SetFocus() on a newly created window after | 219 // Whether we should SetFocus() on a newly created window after |
| 227 // Init(). Defaults to true. | 220 // Init(). Defaults to true. |
| 228 bool focus_on_creation_; | 221 bool focus_on_creation_; |
| 229 | 222 |
| 230 // Whether all ancestors have been enabled. This is only used if is_modal_ is | 223 // Whether all ancestors have been enabled. This is only used if is_modal_ is |
| 231 // true. | 224 // true. |
| 232 bool restored_enabled_; | 225 bool restored_enabled_; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 269 |
| 277 // True when the window is being moved/sized. | 270 // True when the window is being moved/sized. |
| 278 bool is_in_size_move_; | 271 bool is_in_size_move_; |
| 279 | 272 |
| 280 DISALLOW_COPY_AND_ASSIGN(WindowWin); | 273 DISALLOW_COPY_AND_ASSIGN(WindowWin); |
| 281 }; | 274 }; |
| 282 | 275 |
| 283 } // namespace views | 276 } // namespace views |
| 284 | 277 |
| 285 #endif // VIEWS_WINDOW_WINDOW_WIN_H_ | 278 #endif // VIEWS_WINDOW_WINDOW_WIN_H_ |
| OLD | NEW |