1. 22 Nov, 2011 1 commit
  2. 18 Nov, 2011 1 commit
    • commit-queue@webkit.org's avatar
      IDL changes for gamepad support · 0ef17682
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71753
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-11-18
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      IDL changes and associated plumbing to expose list of gamepad objects
      on navigator object (per current spec). Full patch is
      https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence
      test until more plumbing in future patches.
      
      Test: gamepad/gamepad-api.html
      
      * WebCore.gypi:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled):
      * page/Gamepad.cpp: Added.
      (WebCore::Gamepad::Gamepad):
      (WebCore::Gamepad::axes):
      (WebCore::Gamepad::buttons):
      (WebCore::Gamepad::~Gamepad):
      * page/Gamepad.h: Added.
      * page/Gamepad.idl: Added.
      * page/GamepadList.cpp: Added.
      (WebCore::GamepadList::~GamepadList):
      (WebCore::GamepadList::set):
      (WebCore::GamepadList::length):
      (WebCore::GamepadList::item):
      * page/GamepadList.h: Added.
      (WebCore::GamepadList::create):
      (WebCore::GamepadList::GamepadList):
      * page/GamepadList.idl: Added.
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitGamepads):
      * page/Navigator.h:
      * page/Navigator.idl:
      
      Source/WebKit/chromium:
      
      Update to use vendor-prefixed enable.
      
      * src/WebRuntimeFeatures.cpp:
      (WebKit::WebRuntimeFeatures::enableGamepad):
      (WebKit::WebRuntimeFeatures::isGamepadEnabled):
      
      Tools:
      
      Runtime enable gamepad in chromium test shell.
      
      * DumpRenderTree/chromium/TestShell.cpp:
      (TestShell::TestShell):
      
      LayoutTests:
      
      Add basic api existence test.
      
      * gamepad/gamepad-api-expected.txt: Added.
      * gamepad/gamepad-api.html: Added.
      * gamepad/gamepad-test.js: Added.
      (logConsole):
      (testExpected):
      (reportExpected):
      (waitForEventAndEnd):
      (waitForEvent._eventCallback):
      (waitForEvent):
      (waitForEventAndTest._eventCallback):
      (waitForEventAndTest):
      (waitForEventTestAndEnd):
      (endTest):
      (logResult):
      (consoleWrite):
      * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt:
      * platform/efl/Skipped:
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      * platform/wincairo/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ef17682
  3. 03 Aug, 2011 1 commit
  4. 31 May, 2011 1 commit
    • koz@chromium.org's avatar
      2011-05-30 James Kozianski <koz@chromium.org> · 71edcee9
      koz@chromium.org authored
              Reviewed by Kent Tamura.
      
              [Chromium] Make isValidProtocol() accept protocols with '+'.
              https://bugs.webkit.org/show_bug.cgi?id=61759
      
              * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt: Added.
              * platform/chromium/fast/dom/register-protocol-handler-expected.txt: Added.
      2011-05-30  James Kozianski  <koz@chromium.org>
      
              Reviewed by Kent Tamura.
      
              [Chromium] Make isValidProtocol() accept protocols with '+'.
              https://bugs.webkit.org/show_bug.cgi?id=61759
      
              Also, detect syntax errors before security errors; some syntax errors
              will also trigger a security error, but it's more helpful to the
              programmer to know if they have a syntax error, which are well-defined
              in the spec, rather than a security error, which aren't.
      
              * page/Navigator.cpp:
              (WebCore::Navigator::registerProtocolHandler):
              Detect syntax errors before security errors.
              * platform/KURLGoogle.cpp:
              (WebCore::isSchemeChar):
              Include '+' in the list of valid characters.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71edcee9
  5. 08 Jul, 2010 1 commit
    • dimich@chromium.org's avatar
      WebCore: Remove IDL declarations and stubs for... · 256c1df8
      dimich@chromium.org authored
      WebCore: Remove IDL declarations and stubs for navigator.registerProtocolHandler and navigator.registerContentHandler.
      https://bugs.webkit.org/show_bug.cgi?id=41878
      
      Reviewed by David Levin.
      
      This is practically a rollback of http://trac.webkit.org/changeset/50477.
      
      * page/Chrome.cpp:
      * page/Chrome.h:
      * page/ChromeClient.h:
      * page/Navigator.cpp:
      * page/Navigator.h:
      * page/Navigator.idl:
      
      LayoutTests: Remove IDL declarations and stubs for navigator.registerProtocolHandler and navigator.registerContentHandler
      https://bugs.webkit.org/show_bug.cgi?id=41878
      
      Reviewed by David Levin.
      
      This is practically a rollback of http://trac.webkit.org/changeset/50477.
      
      * fast/dom/Window/window-properties-expected.txt:
      * fast/dom/navigator-detached-no-crash-expected.txt:
      * fast/dom/registerContentHandler-expected.txt: Removed.
      * fast/dom/registerContentHandler.html: Removed.
      * fast/dom/registerProtocolHandler-expected.txt: Removed.
      * fast/dom/registerProtocolHandler.html: Removed.
      * platform/chromium-mac/fast/dom/navigator-detached-no-crash-expected.txt:
      * platform/chromium-win/fast/dom/navigator-detached-no-crash-expected.txt:
      * platform/gtk/fast/dom/Window/window-properties-expected.txt:
      * platform/mac-leopard/fast/dom/navigator-detached-no-crash-expected.txt:
      * platform/qt/fast/dom/Window/window-properties-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      256c1df8
  6. 03 Nov, 2009 1 commit
    • dimich@chromium.org's avatar
      WebCore: Implement window.navigator.registerProtocolHandler in webkit, · 6a13a8a3
      dimich@chromium.org authored
      https://bugs.webkit.org/b/29651
      
      Patch by Bradley Green <brg@chromium.org> on 2009-11-03
      Reviewed by Dmitry Titov.
      
      Also implemented its sister API window.navigator.registerContentHandler.
      
      These methods are as described in the HTML5 specification which can be
      found here,
      http://dev.w3.org/html5/spec/Overview.html#dom-navigator-registerprotocolhandler
      http://dev.w3.org/html5/spec/Overview.html#dom-navigator-registercontenthandler
      
      As specified in the document, the behavior of the browser is determined
      by the current registered handler.  The state of a registered handler
      can change at any time, with the user clearing a registered handler,
      registering a different page as handler, or deferring the hander to the
      OS.  If webkit was to track the state of the currently registered
      handlers, it would need more APIs and complexity to keep in sync with
      user actions reported to webkit from the UA.  For simplicity, the state
      of protocol handlers should be kept isolated from webkit and webkit only
      notifies the UA that a page has made the call.  The UA is then
      responsible for correctly handling the registerProtocolHandler call and
      the redirects which result from registration.
      
      We do however follow the specification in insuring that the reserved
      schemes and mimeTypes are not passed to the UA as custom handler
      registration tests.  We also insure that the "%s" token is present as
      required by the specification.
      
      Updated test expectations for window.clientInformation and navigator
      objects.
      
      Tests: fast/dom/registerContentHandler.html
             fast/dom/registerProtocolHandler.html
      
      * page/Chrome.cpp:
      (WebCore::Chrome::registerProtocolHandler):
      (WebCore::Chrome::registerContentHandler):
      * page/Chrome.h:
      * page/ChromeClient.h:
      (WebCore::ChromeClient::registerProtocolHandler):
      (WebCore::ChromeClient::registerContentHandler):
      * page/Navigator.cpp:
      (WebCore::verifyCustomHandlerURL):
      (WebCore::verifyProtocolHandlerScheme):
      (WebCore::Navigator::registerProtocolHandler):
      (WebCore::verifyProtocolHandlerMimeType):
      (WebCore::Navigator::registerContentHandler):
      * page/Navigator.h:
      * page/Navigator.idl:
      
      LayoutTests: Updating test expectations for implementation of
      window.navigator.registerProtocolHandler and
      window.navigator.registerContentHandler.
      
      Patch by Bradley Green <brg@chromium.org> on 2009-11-03
      Reviewed by Dmitry Titov.
      
      There is a default implimentation for these APIs, hence all platforms
      with the navigator-detached-no-crash-expect and
      window-properties-expected tests needed to be updated.  While
      isolatedWorlds has a window-properties-expected test, it has no window
      object and hence does not need to be updaetd.
      
      We add two fast/dom tests to insure that the proper exceptions are
      thrown when bad syntax or security violations are made by calling the
      methods.
      
      * fast/dom/Window/window-properties-expected.txt:
      * fast/dom/navigator-detached-no-crash-expected.txt:
      * fast/dom/navigator-detached-no-crash.html:
      * fast/dom/registerContentHandler-expected.txt: Added.
      * fast/dom/registerContentHandler.html: Added.
      * fast/dom/registerProtocolHandler-expected.txt: Added.
      * fast/dom/registerProtocolHandler.html: Added.
      * platform/gtk/fast/dom/Window/window-properties-expected.txt:
      * platform/gtk/fast/dom/navigator-detached-no-crash-expected.txt:
      * platform/mac-leopard/fast/dom/navigator-detached-no-crash-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6a13a8a3
  7. 17 Aug, 2009 1 commit
  8. 17 Mar, 2009 1 commit
    • mrowe@apple.com's avatar
      Add platform-specific layout test results to accommodate geolocation. · 8a236fe5
      mrowe@apple.com authored
      Reviewed by Sam Weinig.
      
      * platform/mac-leopard/fast/dom/Window/window-properties-expected.txt: Copied from LayoutTests/fast/dom/Window/window-properties-expected.txt.
      * platform/mac-leopard/fast/dom/navigator-detached-no-crash-expected.txt: Copied from LayoutTests/fast/dom/navigator-detached-no-crash-expected.txt.
      * platform/mac/fast/dom/Window/window-properties-expected.txt: Copied from LayoutTests/fast/dom/Window/window-properties-expected.txt.
      * platform/mac/fast/dom/navigator-detached-no-crash-expected.txt: Copied from LayoutTests/fast/dom/navigator-detached-no-crash-expected.txt.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a236fe5
  9. 19 Feb, 2009 1 commit
  10. 10 Feb, 2009 1 commit