Summary: | [Chromium] Add Pointer Lock test hooks and mock implementation to DumpRenderTree | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Vincent Scheib <scheib> | ||||||||||
Component: | New Bugs | Assignee: | Vincent Scheib <scheib> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | dglazkov, tkent, webkit.review.bot | ||||||||||
Priority: | P2 | ||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Bug Depends on: | 76410 | ||||||||||||
Bug Blocks: | 75762 | ||||||||||||
Attachments: |
|
Description
Vincent Scheib
2012-01-16 17:03:35 PST
Created attachment 122695 [details]
Patch
Note: This change will not compile until the change that adds the WebKit/chromium API lands: https://bugs.webkit.org/show_bug.cgi?id=76410 Comment on attachment 122695 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122695&action=review We had better enclose the code with #if ENABLE(POINTER_LOCK). > Tools/DumpRenderTree/chromium/LayoutTestController.cpp:2178 > +void LayoutTestController::didLosePointerLock(const CppArgumentList& arguments, CppVariant* result) The arguments 'arguments' and 'result' are not used. We had better omit them. void LayoutTestController::didLosePointerLock(const CppArgumentList&, CppVariant*) > Tools/DumpRenderTree/chromium/LayoutTestController.cpp:2184 > +void LayoutTestController::setPointerLockWillFailAsynchronously(const CppArgumentList& arguments, CppVariant* result) ditto. > Tools/DumpRenderTree/chromium/LayoutTestController.cpp:2190 > +void LayoutTestController::setPointerLockWillFailSynchronously(const CppArgumentList& arguments, CppVariant* result) ditto. > Tools/DumpRenderTree/chromium/WebViewHost.h:395 > + enum { > + POINTER_LOCK_WILL_SUCCEED, > + POINTER_LOCK_WILL_FAIL_ASYNC, > + POINTER_LOCK_WILL_FAIL_SYNC Enum names should be PointerLockWillSucceed, PointerLockWillFailAsync, PointerLockWillFailSync See "12. Enum members should user InterCaps with an initial capital letter." in http://www.webkit.org/coding/coding-style.html Created attachment 122803 [details]
Implemented all tkent items
Comment on attachment 122803 [details] Implemented all tkent items Attachment 122803 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11268304 Comment on attachment 122803 [details] Implemented all tkent items View in context: https://bugs.webkit.org/attachment.cgi?id=122803&action=review > Tools/DumpRenderTree/chromium/WebViewHost.h:402 > + enum { > + PointerLockWillSucceed, > + PointerLockWillFailAsync, > + PointerLockWillFailSync Need 4-spaces Indentation Created attachment 123755 [details]
Patch
The API patch this depends on has landed. Looking for a final review of this, thanks. Comment on attachment 123755 [details] Patch Attachment 123755 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11264006 New failing tests: media/audio-garbage-collect.html Created attachment 123773 [details]
Rerun EWS
Comment on attachment 123755 [details] Patch Clearing flags on attachment: 123755 Committed r105789: <http://trac.webkit.org/changeset/105789> All reviewed patches have been landed. Closing bug. |