OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 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_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 10 |
| 11 #ifdef __OBJC__ |
| 12 @class NSEvent; |
| 13 @class NSView; |
| 14 #else |
| 15 class NSEvent; |
| 16 class NSView; |
| 17 #endif |
| 18 |
| 19 namespace content { |
| 20 |
| 21 class CONTENT_EXPORT WebKeyboardEventBuilder { |
| 22 public: |
| 23 static blink::WebKeyboardEvent Build(NSEvent*); |
| 24 static bool isSystemKeyEvent(const blink::WebKeyboardEvent&); |
| 25 }; |
| 26 |
| 27 class CONTENT_EXPORT WebMouseEventBuilder { |
| 28 public: |
| 29 static blink::WebMouseEvent Build(NSEvent*, NSView*); |
| 30 }; |
| 31 |
| 32 class CONTENT_EXPORT WebMouseWheelEventBuilder { |
| 33 public: |
| 34 static blink::WebMouseWheelEvent Build(NSEvent*, |
| 35 NSView*, |
| 36 bool canRubberbandLeft, |
| 37 bool canRubberbandRight); |
| 38 }; |
| 39 |
| 40 class CONTENT_EXPORT WebGestureEventBuilder { |
| 41 public: |
| 42 static blink::WebGestureEvent Build(NSEvent*, NSView*); |
| 43 }; |
| 44 |
| 45 } // namespace content |
| 46 |
| 47 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_ |
OLD | NEW |