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