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

Unified 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: Move keypad fix out to separate CL 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/web_input_event_builders_mac.h
diff --git a/content/browser/renderer_host/input/web_input_event_builders_mac.h b/content/browser/renderer_host/input/web_input_event_builders_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc7f98725b9d551e94cf8b3358a5a723c1267c1e
--- /dev/null
+++ b/content/browser/renderer_host/input/web_input_event_builders_mac.h
@@ -0,0 +1,46 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_
+
+#include "content/common/content_export.h"
+#include "third_party/WebKit/public/web/WebInputEvent.h"
+
+#ifdef __OBJC__
+@class NSEvent;
+@class NSView;
+#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.
+class NSEvent;
+class NSView;
+#endif
+
+namespace content {
+
+class CONTENT_EXPORT WebKeyboardEventBuilder {
+ public:
+ 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.
+};
+
+class CONTENT_EXPORT WebMouseEventBuilder {
+ public:
+ static blink::WebMouseEvent Build(NSEvent*, NSView*);
+};
+
+class CONTENT_EXPORT WebMouseWheelEventBuilder {
+ public:
+ static blink::WebMouseWheelEvent Build(NSEvent*,
+ NSView*,
+ 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.
+ bool canRubberbandRight);
+};
+
+class CONTENT_EXPORT WebGestureEventBuilder {
+ public:
+ static blink::WebGestureEvent Build(NSEvent*, NSView*);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698