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

Unified Diff: content/browser/renderer_host/web_input_event_factory_mac.h

Issue 19776016: Add files. Does not compile yet! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk links, may not work correctly Created 7 years, 5 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/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

Powered by Google App Engine
This is Rietveld 408576698