Changeset 81618 in webkit
- Timestamp:
- Mar 21, 2011 4:19:13 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r81610 r81618 1 2011-03-21 Robert Kroeger <rjkroege@chromium.org> 2 3 Reviewed by Antonio Gomes. 4 5 Flag to enable/disable a GestureReocognizer framework 6 7 https://bugs.webkit.org/show_bug.cgi?id=49345 8 9 * wtf/Platform.h: 10 1 11 2011-03-21 Adam Barth <abarth@webkit.org> 2 12 -
trunk/Source/JavaScriptCore/wtf/Platform.h
r81379 r81618 963 963 #endif 964 964 965 #if !defined(ENABLE_GESTURE_RECOGNIZER) 966 #define ENABLE_GESTURE_RECOGNIZER 0 967 #endif 968 965 969 #if !defined(ENABLE_NOTIFICATIONS) 966 970 #define ENABLE_NOTIFICATIONS 0 -
trunk/Source/WebCore/ChangeLog
r81613 r81618 1 2011-03-21 Robert Kroeger <rjkroege@chromium.org> 2 3 Reviewed by Antonio Gomes. 4 5 Add Support to WebCore to optionally call a platform-specific gesture recognizer 6 https://bugs.webkit.org/show_bug.cgi?id=49345 7 8 Added an ability for the EventHandler to invoke an optional platform 9 specific gesture recognizer. 10 11 No tests added because the change should be functionally invisible. 12 13 * WebCore.gypi: 14 * page/EventHandler.cpp: 15 (WebCore::EventHandler::EventHandler): 16 (WebCore::EventHandler::handleTouchEvent): 17 * page/EventHandler.h: 18 * platform/PlatformGestureRecognizer.cpp: Added. 19 (WebCore::PlatformGestureRecognizer::PlatformGestureRecognizer): 20 (WebCore::PlatformGestureRecognizer::~PlatformGestureRecognizer): 21 (WebCore::PlatformGestureRecognizer::create): 22 * platform/PlatformGestureRecognizer.h: Added. 23 1 24 2011-03-21 Dean Jackson <dino@apple.com> 2 25 -
trunk/Source/WebCore/WebCore.gypi
r81540 r81618 953 953 'platform/NotImplemented.h', 954 954 'platform/PlatformGestureEvent.h', 955 'platform/PlatformGestureRecognizer.cpp', 956 'platform/PlatformGestureRecognizer.h', 955 957 'platform/PlatformKeyboardEvent.h', 956 958 'platform/PlatformMenuDescription.h', -
trunk/Source/WebCore/page/EventHandler.cpp
r81209 r81618 96 96 #endif 97 97 98 #if ENABLE(ENABLE_GESTURE_RECOGNIZER) 99 #include "PlatformGestureRecognizer.h" 100 #endif 101 98 102 namespace WebCore { 99 103 … … 202 206 #if ENABLE(TOUCH_EVENTS) 203 207 , m_touchPressed(false) 208 #endif 209 #if ENABLE(ENABLE_GESTURE_RECOGNIZER) 210 , m_gestureRecognizer(PlatformGestureRecognizer::create()) 204 211 #endif 205 212 { … … 3102 3109 } 3103 3110 3111 #if ENABLE(ENABLE_GESTURE_RECOGNIZER) 3112 if (m_gestureRecognizer) 3113 m_gestureRecognizer->processTouchEventForGesture(event, this, defaultPrevented); 3114 #endif 3115 3104 3116 return defaultPrevented; 3105 3117 } -
trunk/Source/WebCore/page/EventHandler.h
r80172 r81618 35 35 #include "Timer.h" 36 36 #include <wtf/Forward.h> 37 #include <wtf/OwnPtr.h> 37 38 #include <wtf/RefPtr.h> 38 39 … … 77 78 #endif 78 79 80 #if ENABLE(ENABLE_GESTURE_RECOGNIZER) 81 class PlatformGestureRecognizer; 82 #endif 83 79 84 #if ENABLE(DRAG_SUPPORT) 80 85 extern const int LinkDragHysteresis; … … 451 456 bool m_touchPressed; 452 457 #endif 458 #if ENABLE(ENABLE_GESTURE_RECOGNIZER) 459 OwnPtr<PlatformGestureRecognizer> m_gestureRecognizer; 460 #endif 453 461 }; 454 462 -
trunk/Source/WebKit/chromium/ChangeLog
r81614 r81618 1 2011-03-21 Robert Kroeger <rjkroege@chromium.org> 2 3 Reviewed by Antonio Gomes. 4 5 Flag to enable a platform specific GestureReocognizer framework in Chromium. 6 7 https://bugs.webkit.org/show_bug.cgi?id=49345 8 9 * features.gypi: 10 1 11 2011-03-21 Tony Chang <tony@chromium.org> 2 12 -
trunk/Source/WebKit/chromium/features.gypi
r81596 r81618 60 60 'ENABLE_FULLSCREEN_API=1', 61 61 'ENABLE_GEOLOCATION=1', 62 'ENABLE_GESTURE_RECOGNIZER=1', 62 63 'ENABLE_ICONDATABASE=0', 63 64 'ENABLE_INDEXED_DATABASE=1',
Note: See TracChangeset
for help on using the changeset viewer.