Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: views/window/window_win.h

Issue 6880201: Scrap WNDCLASSEX.hCursor, update GetCursorForPoint, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nix WindowWin cursors; only SetCuror on client events; add RootView::UpdateCursor Win arrow default. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« views/view.h ('K') | « views/widget/widget_win.cc ('k') | views/window/window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698