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 | |
Alexei Svitkine (slow)
2015/09/14 18:54:03
Hmm, this file isn't being included in any non-Obj
dtapuska
2015/09/14 19:26:46
No this isn't possible the implementation mm file
Alexei Svitkine (slow)
2015/09/14 19:32:56
My point is to only have:
@class NSEvent;
@class
dtapuska
2015/09/14 19:40:07
Done.
| |
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*); | |
Alexei Svitkine (slow)
2015/09/14 18:54:03
Nit: In Chromium code, keep the param names in the
dtapuska
2015/09/14 19:26:46
Done.
| |
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, | |
Alexei Svitkine (slow)
2015/09/14 18:54:03
Nit: can_rubberband_left same for the next param.
dtapuska
2015/09/14 19:26:46
Done.
| |
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 |