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

Side by Side Diff: views/focus/focus_util_win.cc

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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/controls/table/native_table_gtk.h ('k') | views/view.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "views/focus/focus_util_win.h" 5 #include "views/focus/focus_util_win.h"
6 6
7 #include <windowsx.h> 7 #include <windowsx.h>
8 8
9 #include "app/view_prop.h"
10 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "ui/base/view_prop.h"
11 #include "ui/base/win/hwnd_util.h" 11 #include "ui/base/win/hwnd_util.h"
12 12
13 using app::ViewProp; 13 using ui::ViewProp;
14 14
15 namespace views { 15 namespace views {
16 16
17 // Property used to indicate the HWND supports having mouse wheel messages 17 // Property used to indicate the HWND supports having mouse wheel messages
18 // rerouted to it. 18 // rerouted to it.
19 static const char* const kHWNDSupportMouseWheelRerouting = 19 static const char* const kHWNDSupportMouseWheelRerouting =
20 "__HWND_MW_REROUTE_OK"; 20 "__HWND_MW_REROUTE_OK";
21 21
22 static bool WindowSupportsRerouteMouseWheel(HWND window) { 22 static bool WindowSupportsRerouteMouseWheel(HWND window) {
23 while (GetWindowLong(window, GWL_STYLE) & WS_CHILD) { 23 while (GetWindowLong(window, GWL_STYLE) & WS_CHILD) {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 // If redirection is disallowed, try the parent. 113 // If redirection is disallowed, try the parent.
114 window_under_wheel = GetAncestor(window_under_wheel, GA_PARENT); 114 window_under_wheel = GetAncestor(window_under_wheel, GA_PARENT);
115 } 115 }
116 // If we traversed back to the starting point, we should process 116 // If we traversed back to the starting point, we should process
117 // this message normally; return false. 117 // this message normally; return false.
118 return false; 118 return false;
119 } 119 }
120 120
121 } // namespace views 121 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/table/native_table_gtk.h ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698