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 }; |
| 25 |
| 26 class CONTENT_EXPORT WebMouseEventBuilder { |
| 27 public: |
| 28 static blink::WebMouseEvent Build(NSEvent*, NSView*); |
| 29 }; |
| 30 |
| 31 class CONTENT_EXPORT WebMouseWheelEventBuilder { |
| 32 public: |
| 33 static blink::WebMouseWheelEvent Build(NSEvent*, |
| 34 NSView*, |
| 35 bool canRubberbandLeft, |
| 36 bool canRubberbandRight); |
| 37 }; |
| 38 |
| 39 class CONTENT_EXPORT WebGestureEventBuilder { |
| 40 public: |
| 41 static blink::WebGestureEvent Build(NSEvent*, NSView*); |
| 42 }; |
| 43 |
| 44 } // namespace content |
| 45 |
| 46 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_ |
OLD | NEW |