Changeset 100833 in webkit
- Timestamp:
- Nov 18, 2011 6:03:15 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 10 added
- 18 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/gamepad (added)
-
LayoutTests/gamepad/gamepad-api-expected.txt (added)
-
LayoutTests/gamepad/gamepad-api.html (added)
-
LayoutTests/gamepad/gamepad-test.js (added)
-
LayoutTests/platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/efl/Skipped (modified) (1 diff)
-
LayoutTests/platform/gtk/Skipped (modified) (1 diff)
-
LayoutTests/platform/mac/Skipped (modified) (1 diff)
-
LayoutTests/platform/qt/Skipped (modified) (1 diff)
-
LayoutTests/platform/win/Skipped (modified) (1 diff)
-
LayoutTests/platform/wincairo/Skipped (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/WebCore.gypi (modified) (2 diffs)
-
Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h (modified) (1 diff)
-
Source/WebCore/page/Gamepad.cpp (added)
-
Source/WebCore/page/Gamepad.h (added)
-
Source/WebCore/page/Gamepad.idl (added)
-
Source/WebCore/page/GamepadList.cpp (added)
-
Source/WebCore/page/GamepadList.h (added)
-
Source/WebCore/page/GamepadList.idl (added)
-
Source/WebCore/page/Navigator.cpp (modified) (2 diffs)
-
Source/WebCore/page/Navigator.h (modified) (2 diffs)
-
Source/WebCore/page/Navigator.idl (modified) (1 diff)
-
Source/WebKit/chromium/ChangeLog (modified) (1 diff)
-
Source/WebKit/chromium/src/WebRuntimeFeatures.cpp (modified) (2 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/DumpRenderTree/chromium/TestShell.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r100832 r100833 1 2011-11-18 Scott Graham <scottmg@chromium.org> 2 3 IDL changes for gamepad support 4 https://bugs.webkit.org/show_bug.cgi?id=71753 5 6 Reviewed by Adam Barth. 7 8 Add basic api existence test. 9 10 * gamepad/gamepad-api-expected.txt: Added. 11 * gamepad/gamepad-api.html: Added. 12 * gamepad/gamepad-test.js: Added. 13 (logConsole): 14 (testExpected): 15 (reportExpected): 16 (waitForEventAndEnd): 17 (waitForEvent._eventCallback): 18 (waitForEvent): 19 (waitForEventAndTest._eventCallback): 20 (waitForEventAndTest): 21 (waitForEventTestAndEnd): 22 (endTest): 23 (logResult): 24 (consoleWrite): 25 * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt: 26 * platform/efl/Skipped: 27 * platform/gtk/Skipped: 28 * platform/mac/Skipped: 29 * platform/qt/Skipped: 30 * platform/win/Skipped: 31 * platform/wincairo/Skipped: 32 1 33 2011-11-18 Sheriff Bot <webkit.review.bot@gmail.com> 2 34 -
trunk/LayoutTests/platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt
r92315 r100833 18 18 navigator.vendor is OK 19 19 navigator.vendorSub is OK 20 navigator.webkitGamepads is OK 20 21 navigator.appCodeName is OK 21 22 navigator.appName is OK … … 35 36 navigator.vendor is OK 36 37 navigator.vendorSub is OK 38 navigator.webkitGamepads is OK 37 39 -
trunk/LayoutTests/platform/efl/Skipped
r100338 r100833 1910 1910 fast/forms/week 1911 1911 1912 # ENABLE_GAMEPAD not enabled. 1913 gamepad/ 1914 1912 1915 # MutationObservers are net yet enabled. http://webkit.org/b/68729 1913 1916 fast/mutation -
trunk/LayoutTests/platform/gtk/Skipped
r100817 r100833 258 258 fast/forms/time 259 259 fast/forms/week 260 261 # ENABLE_GAMEPAD not enabled. 262 gamepad/ 260 263 261 264 # Speech input is not yet enabled. -
trunk/LayoutTests/platform/mac/Skipped
r100688 r100833 215 215 fast/forms/week 216 216 217 # ENABLE_GAMEPAD not enabled. 218 gamepad/ 219 217 220 # Speech input is not yet enabled. 218 221 fast/speech -
trunk/LayoutTests/platform/qt/Skipped
r100763 r100833 89 89 fast/forms/time 90 90 fast/forms/week 91 92 # ENABLE_GAMEPAD not enabled. 93 gamepad/ 91 94 92 95 # ENABLE(INPUT_SPEECH) is disabled. -
trunk/LayoutTests/platform/win/Skipped
r100381 r100833 1123 1123 fast/forms/week 1124 1124 1125 # ENABLE_GAMEPAD not enabled. 1126 gamepad/ 1127 1125 1128 # Speech input is not yet enabled. 1126 1129 fast/speech -
trunk/LayoutTests/platform/wincairo/Skipped
r100338 r100833 1640 1640 fast/forms/week 1641 1641 1642 # ENABLE_GAMEPAD not enabled. 1643 gamepad/ 1644 1642 1645 # Speech input is not yet enabled. 1643 1646 fast/speech -
trunk/Source/WebCore/ChangeLog
r100832 r100833 1 2011-11-18 Scott Graham <scottmg@chromium.org> 2 3 IDL changes for gamepad support 4 https://bugs.webkit.org/show_bug.cgi?id=71753 5 6 Reviewed by Adam Barth. 7 8 IDL changes and associated plumbing to expose list of gamepad objects 9 on navigator object (per current spec). Full patch is 10 https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence 11 test until more plumbing in future patches. 12 13 Test: gamepad/gamepad-api.html 14 15 * WebCore.gypi: 16 * bindings/generic/RuntimeEnabledFeatures.h: 17 (WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled): 18 (WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled): 19 * page/Gamepad.cpp: Added. 20 (WebCore::Gamepad::Gamepad): 21 (WebCore::Gamepad::axes): 22 (WebCore::Gamepad::buttons): 23 (WebCore::Gamepad::~Gamepad): 24 * page/Gamepad.h: Added. 25 * page/Gamepad.idl: Added. 26 * page/GamepadList.cpp: Added. 27 (WebCore::GamepadList::~GamepadList): 28 (WebCore::GamepadList::set): 29 (WebCore::GamepadList::length): 30 (WebCore::GamepadList::item): 31 * page/GamepadList.h: Added. 32 (WebCore::GamepadList::create): 33 (WebCore::GamepadList::GamepadList): 34 * page/GamepadList.idl: Added. 35 * page/Navigator.cpp: 36 (WebCore::Navigator::webkitGamepads): 37 * page/Navigator.h: 38 * page/Navigator.idl: 39 1 40 2011-11-18 Sheriff Bot <webkit.review.bot@gmail.com> 2 41 -
trunk/Source/WebCore/WebCore.gypi
r100737 r100833 1403 1403 'page/DOMWindow.idl', 1404 1404 'page/EventSource.idl', 1405 'page/Gamepad.idl', 1406 'page/GamepadList.idl', 1405 1407 'page/Geolocation.idl', 1406 1408 'page/Geoposition.idl', … … 2950 2952 'page/FrameTree.cpp', 2951 2953 'page/FrameView.cpp', 2954 'page/Gamepad.cpp', 2955 'page/Gamepad.h', 2956 'page/GamepadList.cpp', 2957 'page/GamepadList.h', 2952 2958 'page/Geolocation.cpp', 2953 2959 'page/GeolocationController.cpp', -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r100366 r100833 173 173 174 174 #if ENABLE(GAMEPAD) 175 static void set GamepadsEnabled(bool isEnabled) { isGamepadEnabled = isEnabled; }176 static bool gamepadsEnabled() { return isGamepadEnabled; }175 static void setWebkitGamepadsEnabled(bool isEnabled) { isGamepadEnabled = isEnabled; } 176 static bool webkitGamepadsEnabled() { return isGamepadEnabled; } 177 177 #endif 178 178 -
trunk/Source/WebCore/page/Navigator.cpp
r100555 r100833 33 33 #include "FrameLoader.h" 34 34 #include "FrameLoaderClient.h" 35 #include "GamepadList.h" 35 36 #include "Geolocation.h" 36 37 #include "PointerLock.h" … … 305 306 #endif 306 307 308 #if ENABLE(GAMEPAD) 309 GamepadList* Navigator::webkitGamepads() 310 { 311 // Stubbed until platform/ changes landed. 312 return 0; 313 } 314 #endif 315 307 316 } // namespace WebCore -
trunk/Source/WebCore/page/Navigator.h
r100328 r100833 32 32 class DOMPluginArray; 33 33 class Frame; 34 class GamepadList; 34 35 class Geolocation; 35 36 class PointerLock; … … 75 76 #endif 76 77 78 #if ENABLE(GAMEPAD) 79 GamepadList* webkitGamepads(); 80 #endif 81 77 82 private: 78 83 Navigator(Frame*); -
trunk/Source/WebCore/page/Navigator.idl
r100328 r100833 62 62 raises(DOMException); 63 63 #endif 64 65 readonly attribute [Conditional=GAMEPAD, EnabledAtRuntime] GamepadList webkitGamepads; 64 66 }; 65 67 -
trunk/Source/WebKit/chromium/ChangeLog
r100828 r100833 1 2011-11-18 Scott Graham <scottmg@chromium.org> 2 3 IDL changes for gamepad support 4 https://bugs.webkit.org/show_bug.cgi?id=71753 5 6 Reviewed by Adam Barth. 7 8 Update to use vendor-prefixed enable. 9 10 * src/WebRuntimeFeatures.cpp: 11 (WebKit::WebRuntimeFeatures::enableGamepad): 12 (WebKit::WebRuntimeFeatures::isGamepadEnabled): 13 1 14 2011-11-18 Daniel Cheng <dcheng@chromium.org> 2 15 -
trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
r100306 r100833 418 418 { 419 419 #if ENABLE(GAMEPAD) 420 RuntimeEnabledFeatures::set GamepadsEnabled(enable);420 RuntimeEnabledFeatures::setWebkitGamepadsEnabled(enable); 421 421 #else 422 422 UNUSED_PARAM(enable); … … 427 427 { 428 428 #if ENABLE(GAMEPAD) 429 return RuntimeEnabledFeatures:: gamepadsEnabled();429 return RuntimeEnabledFeatures::webkitGamepadsEnabled(); 430 430 #else 431 431 return false; -
trunk/Tools/ChangeLog
r100821 r100833 1 2011-11-18 Scott Graham <scottmg@chromium.org> 2 3 IDL changes for gamepad support 4 https://bugs.webkit.org/show_bug.cgi?id=71753 5 6 Reviewed by Adam Barth. 7 8 Runtime enable gamepad in chromium test shell. 9 10 * DumpRenderTree/chromium/TestShell.cpp: 11 (TestShell::TestShell): 12 1 13 2011-10-27 Darin Fisher <darin@chromium.org> 2 14 -
trunk/Tools/DumpRenderTree/chromium/TestShell.cpp
r100533 r100833 123 123 WebRuntimeFeatures::enableWebAudio(true); 124 124 WebRuntimeFeatures::enableVideoTrack(true); 125 WebRuntimeFeatures::enableGamepad(true); 125 126 126 127 m_webPermissions = adoptPtr(new WebPermissions(this));
Note: See TracChangeset
for help on using the changeset viewer.