Bug 75063

Summary: Start extracting platform specific bits out of PlatformEvents
Product: WebKit Reporter: Sam Weinig <sam>
Component: New BugsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, gustavo.noronha, gustavo, rniwa, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch andersca: review+

Sam Weinig
Reported 2011-12-21 21:34:33 PST
Start extracting platform specific bits out of PlatformEvents
Attachments
Patch (87.34 KB, patch)
2011-12-21 21:35 PST, Sam Weinig
no flags
Patch (87.45 KB, patch)
2011-12-22 13:16 PST, Sam Weinig
no flags
Patch (86.71 KB, patch)
2011-12-22 13:48 PST, Sam Weinig
no flags
Patch (97.47 KB, patch)
2011-12-22 14:37 PST, Sam Weinig
no flags
Patch (97.59 KB, patch)
2011-12-22 14:47 PST, Sam Weinig
no flags
Patch (102.70 KB, patch)
2011-12-22 20:12 PST, Sam Weinig
no flags
Patch (102.72 KB, patch)
2011-12-22 20:35 PST, Sam Weinig
andersca: review+
Sam Weinig
Comment 1 2011-12-21 21:35:03 PST
Sam Weinig
Comment 2 2011-12-21 21:39:02 PST
This initial patch moves all the NSEvent -> PlatformEvent construction into a new factory style construction model. The long term goal is to merge the WebKit2 WebEvents with these cleaned up PlatformEvents.
Sam Weinig
Comment 3 2011-12-22 13:16:23 PST
WebKit Review Bot
Comment 4 2011-12-22 13:46:48 PST
Comment on attachment 120369 [details] Patch Attachment 120369 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11019012
Sam Weinig
Comment 5 2011-12-22 13:48:01 PST
Gustavo Noronha (kov)
Comment 6 2011-12-22 13:58:40 PST
Early Warning System Bot
Comment 7 2011-12-22 14:09:42 PST
WebKit Review Bot
Comment 8 2011-12-22 14:11:51 PST
Comment on attachment 120375 [details] Patch Attachment 120375 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/10939028
Sam Weinig
Comment 9 2011-12-22 14:37:36 PST
WebKit Review Bot
Comment 10 2011-12-22 14:40:12 PST
Attachment 120369 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/mac/PlatformEventFactory.h:31: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 11 2011-12-22 14:47:08 PST
WebKit Review Bot
Comment 12 2011-12-22 14:53:53 PST
Attachment 120385 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/mac/PlatformEventFactory.h:31: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 31 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 13 2011-12-22 14:58:07 PST
WebKit Review Bot
Comment 14 2011-12-22 15:10:22 PST
Comment on attachment 120385 [details] Patch Attachment 120385 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/10939059
Collabora GTK+ EWS bot
Comment 15 2011-12-22 15:20:48 PST
Sam Weinig
Comment 16 2011-12-22 20:12:51 PST
WebKit Review Bot
Comment 17 2011-12-22 20:15:34 PST
Attachment 120428 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/mac/PlatformEventFactory.h:31: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 32 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gustavo Noronha (kov)
Comment 18 2011-12-22 20:29:06 PST
WebKit Review Bot
Comment 19 2011-12-22 20:34:08 PST
Comment on attachment 120428 [details] Patch Attachment 120428 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11019152
Sam Weinig
Comment 20 2011-12-22 20:35:45 PST
Sam Weinig
Comment 21 2011-12-22 20:47:08 PST
I am not sure if I like the 4 factory functions. I might be happier exposing the interfaces for the builder classes so that the header had classes like: class NativePlatformMouseEvent : public PlatformMouseEvent { public: NativePlatformMouseEvent(NSEvent *event, NSView *windowView); }; instead of: static PlatformMouseEvent createPlatformMouseEvent(NSEvent *, NSView *windowView); and call sites were: foo->handleMouseEvent(NativePlatformMouseEvent(cocoaEvent, view)); instead of: foo->handleMouseEvent(PlatformEventFactory::createPlatformMouseEvent(cocoaEvent, view)); Hrm.
Sam Weinig
Comment 22 2011-12-23 19:46:00 PST
Ryosuke Niwa
Comment 23 2011-12-23 21:27:33 PST
This patch appears to have broken fast/events/continuous-platform-wheelevent-in-scrolling-div.html and fast/events/platform-wheelevent-in-scrolling-div.html on Mac: Started failing here: http://build.webkit.org/builders/SnowLeopard%20Intel%20Release%20(Tests)/builds/35834 http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r103643%20(35834)/results.html Didn't fail on the previous build: http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r103641%20(35833)/results.html
Ryosuke Niwa
Comment 24 2011-12-23 21:48:34 PST
Ryosuke Niwa
Comment 25 2011-12-23 22:35:22 PST
Fixed Chromium Mac build in http://trac.webkit.org/changeset/103652.
Note You need to log in before you can comment on or make changes to this bug.