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

Side by Side Diff: content/browser/renderer_host/input/web_input_event_builders_mac.h

Issue 2373733002: Send pointerleave and pointerenter events for styluses on Mac (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/web_input_event_builders_mac.mm » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/platform/WebGestureEvent.h" 9 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
10 #include "third_party/WebKit/public/platform/WebInputEvent.h" 10 #include "third_party/WebKit/public/platform/WebInputEvent.h"
11 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" 11 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
12 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" 12 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h"
13 13
14 @class NSEvent; 14 @class NSEvent;
15 @class NSView; 15 @class NSView;
16 16
17 namespace content { 17 namespace content {
18 18
19 class CONTENT_EXPORT WebKeyboardEventBuilder { 19 class CONTENT_EXPORT WebKeyboardEventBuilder {
20 public: 20 public:
21 static blink::WebKeyboardEvent Build(NSEvent* event); 21 static blink::WebKeyboardEvent Build(NSEvent* event);
22 }; 22 };
23 23
24 class CONTENT_EXPORT WebMouseEventBuilder { 24 class CONTENT_EXPORT WebMouseEventBuilder {
25 public: 25 public:
26 static blink::WebMouseEvent Build(NSEvent* event, NSView* view); 26 static blink::WebMouseEvent Build(
27 NSEvent* event,
28 NSView* view,
29 blink::WebPointerProperties::PointerType pointerType =
30 blink::WebPointerProperties::PointerType::Mouse);
27 }; 31 };
28 32
29 class CONTENT_EXPORT WebMouseWheelEventBuilder { 33 class CONTENT_EXPORT WebMouseWheelEventBuilder {
30 public: 34 public:
31 static blink::WebMouseWheelEvent Build(NSEvent* event, 35 static blink::WebMouseWheelEvent Build(NSEvent* event,
32 NSView* view); 36 NSView* view);
33 }; 37 };
34 38
35 class CONTENT_EXPORT WebGestureEventBuilder { 39 class CONTENT_EXPORT WebGestureEventBuilder {
36 public: 40 public:
37 static blink::WebGestureEvent Build(NSEvent*, NSView*); 41 static blink::WebGestureEvent Build(NSEvent*, NSView*);
38 }; 42 };
39 43
40 } // namespace content 44 } // namespace content
41 45
42 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_ 46 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/web_input_event_builders_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698