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

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: Use brace style struct init for WNDCLASSEX |class_ex|, fix comment. Created 9 years, 8 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
« no previous file with comments | « views/widget/widget_win.cc ('k') | views/window/window_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « 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