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

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

Issue 1331013004: [KeyEvent Mac] Move WebInputEventFactory into chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698