| OLD | NEW |
| 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/web/WebInputEvent.h" | 9 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 10 | 10 |
| 11 @class NSEvent; | 11 @class NSEvent; |
| 12 @class NSView; | 12 @class NSView; |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class CONTENT_EXPORT WebKeyboardEventBuilder { | 16 class CONTENT_EXPORT WebKeyboardEventBuilder { |
| 17 public: | 17 public: |
| 18 static blink::WebKeyboardEvent Build(NSEvent* event); | 18 static blink::WebKeyboardEvent Build(NSEvent* event); |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 class CONTENT_EXPORT WebMouseEventBuilder { | 21 class CONTENT_EXPORT WebMouseEventBuilder { |
| 22 public: | 22 public: |
| 23 static blink::WebMouseEvent Build(NSEvent* event, NSView* view); | 23 static blink::WebMouseEvent Build( |
| 24 NSEvent* event, |
| 25 NSView* view, |
| 26 blink::WebPointerProperties::PointerType pointerType = |
| 27 blink::WebPointerProperties::PointerType::Mouse); |
| 24 }; | 28 }; |
| 25 | 29 |
| 26 class CONTENT_EXPORT WebMouseWheelEventBuilder { | 30 class CONTENT_EXPORT WebMouseWheelEventBuilder { |
| 27 public: | 31 public: |
| 28 static blink::WebMouseWheelEvent Build(NSEvent* event, | 32 static blink::WebMouseWheelEvent Build(NSEvent* event, |
| 29 NSView* view); | 33 NSView* view); |
| 30 }; | 34 }; |
| 31 | 35 |
| 32 class CONTENT_EXPORT WebGestureEventBuilder { | 36 class CONTENT_EXPORT WebGestureEventBuilder { |
| 33 public: | 37 public: |
| 34 static blink::WebGestureEvent Build(NSEvent*, NSView*); | 38 static blink::WebGestureEvent Build(NSEvent*, NSView*); |
| 35 }; | 39 }; |
| 36 | 40 |
| 37 } // namespace content | 41 } // namespace content |
| 38 | 42 |
| 39 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_ | 43 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_ |
| OLD | NEW |