Index: content/browser/renderer_host/web_input_event_factory_mac.h |
diff --git a/third_party/tcmalloc/chromium/src/base/linuxthreads.h b/content/browser/renderer_host/web_input_event_factory_mac.h |
similarity index 61% |
copy from third_party/tcmalloc/chromium/src/base/linuxthreads.h |
copy to content/browser/renderer_host/web_input_event_factory_mac.h |
index 5c318fed7ec4c47e7bf082e315992e102abcd620..8c7631c485d95dd390e22ac4cc770c4248559a74 100644 |
--- a/third_party/tcmalloc/chromium/src/base/linuxthreads.h |
+++ b/content/browser/renderer_host/web_input_event_factory_mac.h |
@@ -1,5 +1,5 @@ |
-/* Copyright (c) 2005-2007, Google Inc. |
- * All rights reserved. |
+/* |
+ * Copyright (C) 2009 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -26,28 +26,39 @@ |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
- * |
- * --- |
- * Author: Markus Gutschke |
*/ |
-#ifndef _LINUXTHREADS_H |
-#define _LINUXTHREADS_H |
+#ifndef WebInputEventFactory_h |
+#define WebInputEventFactory_h |
-/* Include thread_lister.h to get the interface that we implement for linux. |
- */ |
+#include "../../platform/WebCommon.h" |
-/* We currently only support x86-32 and x86-64 on Linux. Porting to other |
- * related platforms should not be difficult. |
- */ |
-#if (defined(__i386__) || defined(__x86_64__) || defined(__ARM_ARCH_3__) || \ |
- defined(__mips__) || defined(__PPC__)) && defined(__linux) |
+#ifdef __OBJC__ |
+@class NSEvent; |
+@class NSView; |
+#else |
+class NSEvent; |
+class NSView; |
+#endif |
-/* Define the THREADS symbol to make sure that there is exactly one core dumper |
- * built into the library. |
- */ |
-#define THREADS "Linux /proc" |
+namespace WebKit { |
-#endif |
+class WebKeyboardEvent; |
+class WebMouseEvent; |
+class WebMouseWheelEvent; |
+class WebGestureEvent; |
+ |
+class WebInputEventFactory { |
+ public: |
+ WEBKIT_EXPORT static WebKeyboardEvent keyboardEvent(NSEvent*); |
+ WEBKIT_EXPORT static WebKeyboardEvent keyboardEvent(wchar_t character, |
+ int modifiers, |
+ double timeStampSeconds); |
+ WEBKIT_EXPORT static WebMouseEvent mouseEvent(NSEvent*, NSView*); |
+ WEBKIT_EXPORT static WebMouseWheelEvent mouseWheelEvent(NSEvent*, NSView*); |
+ WEBKIT_EXPORT static WebGestureEvent gestureEvent(NSEvent*, NSView*); |
+}; |
-#endif /* _LINUXTHREADS_H */ |
+} // namespace WebKit |
+ |
+#endif |