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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 2022843002: Identity the mouse pointer type from low-level events for Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <IOSurface/IOSurface.h> 9 #include <IOSurface/IOSurface.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 BOOL suppressNextEscapeKeyUp_; 176 BOOL suppressNextEscapeKeyUp_;
177 177
178 // The set of key codes from key down events that we haven't seen the matching 178 // The set of key codes from key down events that we haven't seen the matching
179 // key up events yet. 179 // key up events yet.
180 // Used for filtering out non-matching NSKeyUp events. 180 // Used for filtering out non-matching NSKeyUp events.
181 std::set<unsigned short> keyDownCodes_; 181 std::set<unsigned short> keyDownCodes_;
182 182
183 // The filter used to guide touch events towards a horizontal or vertical 183 // The filter used to guide touch events towards a horizontal or vertical
184 // orientation. 184 // orientation.
185 content::MouseWheelRailsFilterMac mouseWheelFilter_; 185 content::MouseWheelRailsFilterMac mouseWheelFilter_;
186
187 // This is used to indicate if the pointing device enters or leaves the
188 // proximity of its tablet.
189 BOOL stylusEnteringProximity_;
tdresser 2016/05/31 13:05:34 Should this be stylusWithinProximity? With this p
lanwei 2016/05/31 14:33:35 You are right, I should add some checks to the mou
186 } 190 }
187 191
188 @property(nonatomic, readonly) NSRange selectedRange; 192 @property(nonatomic, readonly) NSRange selectedRange;
189 @property(nonatomic, readonly) BOOL suppressNextEscapeKeyUp; 193 @property(nonatomic, readonly) BOOL suppressNextEscapeKeyUp;
190 194
191 - (void)setCanBeKeyView:(BOOL)can; 195 - (void)setCanBeKeyView:(BOOL)can;
192 - (void)setCloseOnDeactivate:(BOOL)b; 196 - (void)setCloseOnDeactivate:(BOOL)b;
193 - (void)setOpaque:(BOOL)opaque; 197 - (void)setOpaque:(BOOL)opaque;
194 // True for always-on-top special windows (e.g. Balloons and Panels). 198 // True for always-on-top special windows (e.g. Balloons and Panels).
195 - (BOOL)acceptsMouseEventsWhenInactive; 199 - (BOOL)acceptsMouseEventsWhenInactive;
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 624
621 // Factory used to safely scope delayed calls to ShutdownHost(). 625 // Factory used to safely scope delayed calls to ShutdownHost().
622 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 626 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
623 627
624 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 628 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
625 }; 629 };
626 630
627 } // namespace content 631 } // namespace content
628 632
629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 633 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698