⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268762 in webkit


Ignore:
Timestamp:
Oct 20, 2020, 2:54:36 PM (6 years ago)
Author:
sihui_liu@apple.com
Message:

Add stubs for SpeechRecognition
https://bugs.webkit.org/show_bug.cgi?id=217780
<rdar://problem/70350727>

Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

  • web-platform-tests/speech-api/SpeechRecognition-basics.https-expected.txt:
  • web-platform-tests/speech-api/idlharness.window-expected.txt:

Source/WebCore:

Add bindings code and a feature flag for SpeechRecognition.
Spec: https://wicg.github.io/speech-api/#speechreco-section.

This patch includes all interfaces of SpeechRecognition, except SpeechGrammar and SpeechGrammarList. We have not
decided what grammar format and types we are going to support, or how we are going to support it if it is not
defined in exisiting speech recognition service. So let's add those interfaces after we figure this out.

No new tests. Rebaseline existins tests.

  • CMakeLists.txt:
  • DerivedSources-input.xcfilelist:
  • DerivedSources-output.xcfilelist:
  • DerivedSources.make:
  • Modules/speech/SpeechRecognition.cpp: Added.

(WebCore::SpeechRecognition::create):
(WebCore::SpeechRecognition::SpeechRecognition):
(WebCore::SpeechRecognition::suspend):
(WebCore::SpeechRecognition::startRecognition):
(WebCore::SpeechRecognition::stopRecognition):
(WebCore::SpeechRecognition::abortRecognition):
(WebCore::SpeechRecognition::activeDOMObjectName const):

  • Modules/speech/SpeechRecognition.h: Added.

(WebCore::SpeechRecognition::lang const):
(WebCore::SpeechRecognition::setLang):
(WebCore::SpeechRecognition::continuous const):
(WebCore::SpeechRecognition::setContinuous):
(WebCore::SpeechRecognition::interimResults const):
(WebCore::SpeechRecognition::setInterimResults):
(WebCore::SpeechRecognition::maxAlternatives const):
(WebCore::SpeechRecognition::setMaxAlternatives):

  • Modules/speech/SpeechRecognition.idl: Added.
  • Modules/speech/SpeechRecognitionAlternative.cpp: Added.

(WebCore::SpeechRecognitionAlternative::create):
(WebCore::SpeechRecognitionAlternative::SpeechRecognitionAlternative):

  • Modules/speech/SpeechRecognitionAlternative.h: Added.
  • Modules/speech/SpeechRecognitionAlternative.idl: Added.
  • Modules/speech/SpeechRecognitionErrorCode.h: Added.
  • Modules/speech/SpeechRecognitionErrorCode.idl: Added.
  • Modules/speech/SpeechRecognitionErrorEvent.cpp: Added.

(WebCore::SpeechRecognitionErrorEvent::create):
(WebCore::SpeechRecognitionErrorEvent::SpeechRecognitionErrorEvent):
(WebCore::SpeechRecognitionErrorEvent::eventInterface const):

  • Modules/speech/SpeechRecognitionErrorEvent.h: Added.
  • Modules/speech/SpeechRecognitionErrorEvent.idl: Added.
  • Modules/speech/SpeechRecognitionEvent.cpp: Added.

(WebCore::SpeechRecognitionEvent::create):
(WebCore::SpeechRecognitionEvent::SpeechRecognitionEvent):
(WebCore::SpeechRecognitionEvent::eventInterface const):

  • Modules/speech/SpeechRecognitionEvent.h: Added.
  • Modules/speech/SpeechRecognitionEvent.idl: Added.
  • Modules/speech/SpeechRecognitionResult.cpp: Added.

(WebCore::SpeechRecognitionResult::create):
(WebCore::SpeechRecognitionResult::SpeechRecognitionResult):
(WebCore::SpeechRecognitionResult::item const):

  • Modules/speech/SpeechRecognitionResult.h: Added.
  • Modules/speech/SpeechRecognitionResult.idl: Added.
  • Modules/speech/SpeechRecognitionResultList.cpp: Added.

(WebCore::SpeechRecognitionResultList::create):
(WebCore::SpeechRecognitionResultList::item const):
(WebCore::SpeechRecognitionResultList::add):
(WebCore::SpeechRecognitionResultList::SpeechRecognitionResultList):

  • Modules/speech/SpeechRecognitionResultList.h: Added.
  • Modules/speech/SpeechRecognitionResultList.idl: Added.
  • Sources.txt:
  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/WebCoreBuiltinNames.h:
  • dom/EventNames.in:
  • dom/EventTargetFactory.in:

Source/WebKitLegacy/mac:

  • WebView/WebPreferenceKeysPrivate.h:
  • WebView/WebPreferences.mm:

(-[WebPreferences _speechRecognitionEnabled]):
(-[WebPreferences _setSpeechRecognitionEnabled:]):

  • WebView/WebPreferencesPrivate.h:

Source/WTF:

  • Scripts/Preferences/WebPreferencesExperimental.yaml:
  • wtf/PlatformEnable.h:

Tools:

  • DumpRenderTree/mac/DumpRenderTree.mm:

(enableExperimentalFeatures):

LayoutTests:

  • platform/mac/TestExpectations:
Location:
trunk
Files:
20 added
24 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r268760 r268762  
     12020-10-20  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Add stubs for SpeechRecognition
     4        https://bugs.webkit.org/show_bug.cgi?id=217780
     5        <rdar://problem/70350727>
     6
     7        Reviewed by Youenn Fablet.
     8
     9        * platform/mac/TestExpectations:
     10
    1112020-10-20  Ross Kirsling  <ross.kirsling@sony.com>
    212
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r268741 r268762  
     12020-10-20  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Add stubs for SpeechRecognition
     4        https://bugs.webkit.org/show_bug.cgi?id=217780
     5        <rdar://problem/70350727>
     6
     7        Reviewed by Youenn Fablet.
     8
     9        * web-platform-tests/speech-api/SpeechRecognition-basics.https-expected.txt:
     10        * web-platform-tests/speech-api/idlharness.window-expected.txt:
     11
    1122020-10-20  Antti Koivisto  <antti@apple.com>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/SpeechRecognition-basics.https-expected.txt

    r268713 r268762  
    11
    2 FAIL SpeechRecognition basics Can't find variable: SpeechRecognition
     2FAIL SpeechRecognition basics undefined is not an object (evaluating 'reco.grammars.length')
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/speech-api/idlharness.window-expected.txt

    r268713 r268762  
    1212PASS Window includes WindowSessionStorage: member names are unique
    1313PASS Window includes WindowLocalStorage: member names are unique
    14 FAIL SpeechRecognition interface: existence and properties of interface object assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    15 FAIL SpeechRecognition interface object length assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    16 FAIL SpeechRecognition interface object name assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    17 FAIL SpeechRecognition interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    18 FAIL SpeechRecognition interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    19 FAIL SpeechRecognition interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    20 FAIL SpeechRecognition interface: attribute grammars assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    21 FAIL SpeechRecognition interface: attribute lang assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    22 FAIL SpeechRecognition interface: attribute continuous assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    23 FAIL SpeechRecognition interface: attribute interimResults assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    24 FAIL SpeechRecognition interface: attribute maxAlternatives assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    25 FAIL SpeechRecognition interface: operation start() assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    26 FAIL SpeechRecognition interface: operation stop() assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    27 FAIL SpeechRecognition interface: operation abort() assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    28 FAIL SpeechRecognition interface: attribute onaudiostart assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    29 FAIL SpeechRecognition interface: attribute onsoundstart assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    30 FAIL SpeechRecognition interface: attribute onspeechstart assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    31 FAIL SpeechRecognition interface: attribute onspeechend assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    32 FAIL SpeechRecognition interface: attribute onsoundend assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    33 FAIL SpeechRecognition interface: attribute onaudioend assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    34 FAIL SpeechRecognition interface: attribute onresult assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    35 FAIL SpeechRecognition interface: attribute onnomatch assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    36 FAIL SpeechRecognition interface: attribute onerror assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    37 FAIL SpeechRecognition interface: attribute onstart assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    38 FAIL SpeechRecognition interface: attribute onend assert_own_property: self does not have own property "SpeechRecognition" expected property "SpeechRecognition" missing
    39 FAIL SpeechRecognition must be primary interface of new SpeechRecognition() assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    40 FAIL Stringification of new SpeechRecognition() assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    41 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "grammars" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    42 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "lang" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    43 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "continuous" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    44 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "interimResults" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    45 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "maxAlternatives" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    46 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "start()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    47 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "stop()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    48 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "abort()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    49 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onaudiostart" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    50 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onsoundstart" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    51 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onspeechstart" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    52 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onspeechend" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    53 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onsoundend" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    54 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onaudioend" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    55 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onresult" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    56 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onnomatch" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    57 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onerror" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    58 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onstart" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    59 FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "onend" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: SpeechRecognition"
    60 FAIL SpeechRecognitionErrorEvent interface: existence and properties of interface object assert_own_property: self does not have own property "SpeechRecognitionErrorEvent" expected property "SpeechRecognitionErrorEvent" missing
    61 FAIL SpeechRecognitionErrorEvent interface object length assert_own_property: self does not have own property "SpeechRecognitionErrorEvent" expected property "SpeechRecognitionErrorEvent" missing
    62 FAIL SpeechRecognitionErrorEvent interface object name assert_own_property: self does not have own property "SpeechRecognitionErrorEvent" expected property "SpeechRecognitionErrorEvent" missing
    63 FAIL SpeechRecognitionErrorEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SpeechRecognitionErrorEvent" expected property "SpeechRecognitionErrorEvent" missing
    64 FAIL SpeechRecognitionErrorEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SpeechRecognitionErrorEvent" expected property "SpeechRecognitionErrorEvent" missing
    65 FAIL SpeechRecognitionErrorEvent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "SpeechRecognitionErrorEvent" expected property "SpeechRecognitionErrorEvent" missing
    66 FAIL SpeechRecognitionErrorEvent interface: attribute error assert_own_property: self does not have own property "SpeechRecognitionErrorEvent" expected property "SpeechRecognitionErrorEvent" missing
    67 FAIL SpeechRecognitionErrorEvent interface: attribute message assert_own_property: self does not have own property "SpeechRecognitionErrorEvent" expected property "SpeechRecognitionErrorEvent" missing
    68 FAIL SpeechRecognitionAlternative interface: existence and properties of interface object assert_own_property: self does not have own property "SpeechRecognitionAlternative" expected property "SpeechRecognitionAlternative" missing
    69 FAIL SpeechRecognitionAlternative interface object length assert_own_property: self does not have own property "SpeechRecognitionAlternative" expected property "SpeechRecognitionAlternative" missing
    70 FAIL SpeechRecognitionAlternative interface object name assert_own_property: self does not have own property "SpeechRecognitionAlternative" expected property "SpeechRecognitionAlternative" missing
    71 FAIL SpeechRecognitionAlternative interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SpeechRecognitionAlternative" expected property "SpeechRecognitionAlternative" missing
    72 FAIL SpeechRecognitionAlternative interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SpeechRecognitionAlternative" expected property "SpeechRecognitionAlternative" missing
    73 FAIL SpeechRecognitionAlternative interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "SpeechRecognitionAlternative" expected property "SpeechRecognitionAlternative" missing
    74 FAIL SpeechRecognitionAlternative interface: attribute transcript assert_own_property: self does not have own property "SpeechRecognitionAlternative" expected property "SpeechRecognitionAlternative" missing
    75 FAIL SpeechRecognitionAlternative interface: attribute confidence assert_own_property: self does not have own property "SpeechRecognitionAlternative" expected property "SpeechRecognitionAlternative" missing
    76 FAIL SpeechRecognitionResult interface: existence and properties of interface object assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    77 FAIL SpeechRecognitionResult interface object length assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    78 FAIL SpeechRecognitionResult interface object name assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    79 FAIL SpeechRecognitionResult interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    80 FAIL SpeechRecognitionResult interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    81 FAIL SpeechRecognitionResult interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    82 FAIL SpeechRecognitionResult interface: attribute length assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    83 FAIL SpeechRecognitionResult interface: operation item(unsigned long) assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    84 FAIL SpeechRecognitionResult interface: attribute isFinal assert_own_property: self does not have own property "SpeechRecognitionResult" expected property "SpeechRecognitionResult" missing
    85 FAIL SpeechRecognitionResultList interface: existence and properties of interface object assert_own_property: self does not have own property "SpeechRecognitionResultList" expected property "SpeechRecognitionResultList" missing
    86 FAIL SpeechRecognitionResultList interface object length assert_own_property: self does not have own property "SpeechRecognitionResultList" expected property "SpeechRecognitionResultList" missing
    87 FAIL SpeechRecognitionResultList interface object name assert_own_property: self does not have own property "SpeechRecognitionResultList" expected property "SpeechRecognitionResultList" missing
    88 FAIL SpeechRecognitionResultList interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SpeechRecognitionResultList" expected property "SpeechRecognitionResultList" missing
    89 FAIL SpeechRecognitionResultList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SpeechRecognitionResultList" expected property "SpeechRecognitionResultList" missing
    90 FAIL SpeechRecognitionResultList interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "SpeechRecognitionResultList" expected property "SpeechRecognitionResultList" missing
    91 FAIL SpeechRecognitionResultList interface: attribute length assert_own_property: self does not have own property "SpeechRecognitionResultList" expected property "SpeechRecognitionResultList" missing
    92 FAIL SpeechRecognitionResultList interface: operation item(unsigned long) assert_own_property: self does not have own property "SpeechRecognitionResultList" expected property "SpeechRecognitionResultList" missing
    93 FAIL SpeechRecognitionEvent interface: existence and properties of interface object assert_own_property: self does not have own property "SpeechRecognitionEvent" expected property "SpeechRecognitionEvent" missing
    94 FAIL SpeechRecognitionEvent interface object length assert_own_property: self does not have own property "SpeechRecognitionEvent" expected property "SpeechRecognitionEvent" missing
    95 FAIL SpeechRecognitionEvent interface object name assert_own_property: self does not have own property "SpeechRecognitionEvent" expected property "SpeechRecognitionEvent" missing
    96 FAIL SpeechRecognitionEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SpeechRecognitionEvent" expected property "SpeechRecognitionEvent" missing
    97 FAIL SpeechRecognitionEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SpeechRecognitionEvent" expected property "SpeechRecognitionEvent" missing
    98 FAIL SpeechRecognitionEvent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "SpeechRecognitionEvent" expected property "SpeechRecognitionEvent" missing
    99 FAIL SpeechRecognitionEvent interface: attribute resultIndex assert_own_property: self does not have own property "SpeechRecognitionEvent" expected property "SpeechRecognitionEvent" missing
    100 FAIL SpeechRecognitionEvent interface: attribute results assert_own_property: self does not have own property "SpeechRecognitionEvent" expected property "SpeechRecognitionEvent" missing
     14PASS SpeechRecognition interface: existence and properties of interface object
     15PASS SpeechRecognition interface object length
     16PASS SpeechRecognition interface object name
     17PASS SpeechRecognition interface: existence and properties of interface prototype object
     18PASS SpeechRecognition interface: existence and properties of interface prototype object's "constructor" property
     19PASS SpeechRecognition interface: existence and properties of interface prototype object's @@unscopables property
     20FAIL SpeechRecognition interface: attribute grammars assert_true: The prototype object must have a property "grammars" expected true got false
     21PASS SpeechRecognition interface: attribute lang
     22PASS SpeechRecognition interface: attribute continuous
     23PASS SpeechRecognition interface: attribute interimResults
     24PASS SpeechRecognition interface: attribute maxAlternatives
     25PASS SpeechRecognition interface: operation start()
     26PASS SpeechRecognition interface: operation stop()
     27PASS SpeechRecognition interface: operation abort()
     28PASS SpeechRecognition interface: attribute onaudiostart
     29PASS SpeechRecognition interface: attribute onsoundstart
     30PASS SpeechRecognition interface: attribute onspeechstart
     31PASS SpeechRecognition interface: attribute onspeechend
     32PASS SpeechRecognition interface: attribute onsoundend
     33PASS SpeechRecognition interface: attribute onaudioend
     34PASS SpeechRecognition interface: attribute onresult
     35PASS SpeechRecognition interface: attribute onnomatch
     36PASS SpeechRecognition interface: attribute onerror
     37PASS SpeechRecognition interface: attribute onstart
     38PASS SpeechRecognition interface: attribute onend
     39PASS SpeechRecognition must be primary interface of new SpeechRecognition()
     40PASS Stringification of new SpeechRecognition()
     41FAIL SpeechRecognition interface: new SpeechRecognition() must inherit property "grammars" with the proper type assert_inherits: property "grammars" not found in prototype chain
     42PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "lang" with the proper type
     43PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "continuous" with the proper type
     44PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "interimResults" with the proper type
     45PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "maxAlternatives" with the proper type
     46PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "start()" with the proper type
     47PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "stop()" with the proper type
     48PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "abort()" with the proper type
     49PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onaudiostart" with the proper type
     50PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onsoundstart" with the proper type
     51PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onspeechstart" with the proper type
     52PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onspeechend" with the proper type
     53PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onsoundend" with the proper type
     54PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onaudioend" with the proper type
     55PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onresult" with the proper type
     56PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onnomatch" with the proper type
     57PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onerror" with the proper type
     58PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onstart" with the proper type
     59PASS SpeechRecognition interface: new SpeechRecognition() must inherit property "onend" with the proper type
     60PASS SpeechRecognitionErrorEvent interface: existence and properties of interface object
     61PASS SpeechRecognitionErrorEvent interface object length
     62PASS SpeechRecognitionErrorEvent interface object name
     63PASS SpeechRecognitionErrorEvent interface: existence and properties of interface prototype object
     64PASS SpeechRecognitionErrorEvent interface: existence and properties of interface prototype object's "constructor" property
     65PASS SpeechRecognitionErrorEvent interface: existence and properties of interface prototype object's @@unscopables property
     66PASS SpeechRecognitionErrorEvent interface: attribute error
     67PASS SpeechRecognitionErrorEvent interface: attribute message
     68PASS SpeechRecognitionAlternative interface: existence and properties of interface object
     69PASS SpeechRecognitionAlternative interface object length
     70PASS SpeechRecognitionAlternative interface object name
     71PASS SpeechRecognitionAlternative interface: existence and properties of interface prototype object
     72PASS SpeechRecognitionAlternative interface: existence and properties of interface prototype object's "constructor" property
     73PASS SpeechRecognitionAlternative interface: existence and properties of interface prototype object's @@unscopables property
     74PASS SpeechRecognitionAlternative interface: attribute transcript
     75PASS SpeechRecognitionAlternative interface: attribute confidence
     76PASS SpeechRecognitionResult interface: existence and properties of interface object
     77PASS SpeechRecognitionResult interface object length
     78PASS SpeechRecognitionResult interface object name
     79PASS SpeechRecognitionResult interface: existence and properties of interface prototype object
     80PASS SpeechRecognitionResult interface: existence and properties of interface prototype object's "constructor" property
     81PASS SpeechRecognitionResult interface: existence and properties of interface prototype object's @@unscopables property
     82PASS SpeechRecognitionResult interface: attribute length
     83PASS SpeechRecognitionResult interface: operation item(unsigned long)
     84PASS SpeechRecognitionResult interface: attribute isFinal
     85PASS SpeechRecognitionResultList interface: existence and properties of interface object
     86PASS SpeechRecognitionResultList interface object length
     87PASS SpeechRecognitionResultList interface object name
     88PASS SpeechRecognitionResultList interface: existence and properties of interface prototype object
     89PASS SpeechRecognitionResultList interface: existence and properties of interface prototype object's "constructor" property
     90PASS SpeechRecognitionResultList interface: existence and properties of interface prototype object's @@unscopables property
     91PASS SpeechRecognitionResultList interface: attribute length
     92PASS SpeechRecognitionResultList interface: operation item(unsigned long)
     93PASS SpeechRecognitionEvent interface: existence and properties of interface object
     94PASS SpeechRecognitionEvent interface object length
     95PASS SpeechRecognitionEvent interface object name
     96PASS SpeechRecognitionEvent interface: existence and properties of interface prototype object
     97PASS SpeechRecognitionEvent interface: existence and properties of interface prototype object's "constructor" property
     98PASS SpeechRecognitionEvent interface: existence and properties of interface prototype object's @@unscopables property
     99PASS SpeechRecognitionEvent interface: attribute resultIndex
     100PASS SpeechRecognitionEvent interface: attribute results
    101101FAIL SpeechGrammar interface: existence and properties of interface object assert_own_property: self does not have own property "SpeechGrammar" expected property "SpeechGrammar" missing
    102102FAIL SpeechGrammar interface object length assert_own_property: self does not have own property "SpeechGrammar" expected property "SpeechGrammar" missing
  • trunk/LayoutTests/platform/mac/TestExpectations

    r268746 r268762  
    4444pointerevents/mouse [ Pass ]
    4545imported/w3c/web-platform-tests/pointerevents [ Pass ]
     46
     47imported/w3c/web-platform-tests/speech-api [ Pass ]
    4648
    4749#//////////////////////////////////////////////////////////////////////////////////////////
  • trunk/Source/WTF/ChangeLog

    r268735 r268762  
     12020-10-20  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Add stubs for SpeechRecognition
     4        https://bugs.webkit.org/show_bug.cgi?id=217780
     5        <rdar://problem/70350727>
     6
     7        Reviewed by Youenn Fablet.
     8
     9        * Scripts/Preferences/WebPreferencesExperimental.yaml:
     10        * wtf/PlatformEnable.h:
     11
    1122020-10-15  Jer Noble  <jer.noble@apple.com>
    213
  • trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml

    r268735 r268762  
    742742      default: true
    743743
     744SpeechRecognitionEnabled:
     745  type: bool
     746  humanReadableName: "SpeechRecognition API"
     747  humanReadableDescription: "Enable SpeechRecognition of WebSpeech API"
     748  defaultValue:
     749    WebKitLegacy:
     750      default: false
     751    WebKit:
     752      default: false
     753    WebCore:
     754      default: false
     755
    744756# FIXME: This is enabled when ENABLE(EXPERIMENTAL_FEATURES) is true in WebKit2. Perhaps we should consider using that for WebKitLegacy as well.
    745757SpringTimingFunctionEnabled:
  • trunk/Source/WTF/wtf/PlatformEnable.h

    r268599 r268762  
    447447
    448448#if !defined(ENABLE_SPEECH_SYNTHESIS)
     449#define ENABLE_SPEECH_SYNTHESIS 1
     450#endif
     451
     452#if !defined(ENABLE_SPEECH_SYNTHESIS)
    449453#define ENABLE_SPEECH_SYNTHESIS 0
    450454#endif
  • trunk/Source/WebCore/CMakeLists.txt

    r268745 r268762  
    449449    Modules/remoteplayback/RemotePlaybackAvailabilityCallback.idl
    450450
     451    Modules/speech/SpeechRecognition.idl
     452    Modules/speech/SpeechRecognitionAlternative.idl
     453    Modules/speech/SpeechRecognitionErrorCode.idl
     454    Modules/speech/SpeechRecognitionErrorEvent.idl
     455    Modules/speech/SpeechRecognitionEvent.idl
     456    Modules/speech/SpeechRecognitionResult.idl
     457    Modules/speech/SpeechRecognitionResultList.idl
     458
    451459    Modules/speech/DOMWindow+SpeechSynthesis.idl
    452460    Modules/speech/SpeechSynthesis.idl
  • trunk/Source/WebCore/ChangeLog

    r268757 r268762  
     12020-10-20  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Add stubs for SpeechRecognition
     4        https://bugs.webkit.org/show_bug.cgi?id=217780
     5        <rdar://problem/70350727>
     6
     7        Reviewed by Youenn Fablet.
     8
     9        Add bindings code and a feature flag for SpeechRecognition.
     10        Spec: https://wicg.github.io/speech-api/#speechreco-section.
     11
     12        This patch includes all interfaces of SpeechRecognition, except SpeechGrammar and SpeechGrammarList. We have not
     13        decided what grammar format and types we are going to support, or how we are going to support it if it is not
     14        defined in exisiting speech recognition service. So let's add those interfaces after we figure this out.
     15
     16        No new tests. Rebaseline existins tests.
     17
     18        * CMakeLists.txt:
     19        * DerivedSources-input.xcfilelist:
     20        * DerivedSources-output.xcfilelist:
     21        * DerivedSources.make:
     22        * Modules/speech/SpeechRecognition.cpp: Added.
     23        (WebCore::SpeechRecognition::create):
     24        (WebCore::SpeechRecognition::SpeechRecognition):
     25        (WebCore::SpeechRecognition::suspend):
     26        (WebCore::SpeechRecognition::startRecognition):
     27        (WebCore::SpeechRecognition::stopRecognition):
     28        (WebCore::SpeechRecognition::abortRecognition):
     29        (WebCore::SpeechRecognition::activeDOMObjectName const):
     30        * Modules/speech/SpeechRecognition.h: Added.
     31        (WebCore::SpeechRecognition::lang const):
     32        (WebCore::SpeechRecognition::setLang):
     33        (WebCore::SpeechRecognition::continuous const):
     34        (WebCore::SpeechRecognition::setContinuous):
     35        (WebCore::SpeechRecognition::interimResults const):
     36        (WebCore::SpeechRecognition::setInterimResults):
     37        (WebCore::SpeechRecognition::maxAlternatives const):
     38        (WebCore::SpeechRecognition::setMaxAlternatives):
     39        * Modules/speech/SpeechRecognition.idl: Added.
     40        * Modules/speech/SpeechRecognitionAlternative.cpp: Added.
     41        (WebCore::SpeechRecognitionAlternative::create):
     42        (WebCore::SpeechRecognitionAlternative::SpeechRecognitionAlternative):
     43        * Modules/speech/SpeechRecognitionAlternative.h: Added.
     44        * Modules/speech/SpeechRecognitionAlternative.idl: Added.
     45        * Modules/speech/SpeechRecognitionErrorCode.h: Added.
     46        * Modules/speech/SpeechRecognitionErrorCode.idl: Added.
     47        * Modules/speech/SpeechRecognitionErrorEvent.cpp: Added.
     48        (WebCore::SpeechRecognitionErrorEvent::create):
     49        (WebCore::SpeechRecognitionErrorEvent::SpeechRecognitionErrorEvent):
     50        (WebCore::SpeechRecognitionErrorEvent::eventInterface const):
     51        * Modules/speech/SpeechRecognitionErrorEvent.h: Added.
     52        * Modules/speech/SpeechRecognitionErrorEvent.idl: Added.
     53        * Modules/speech/SpeechRecognitionEvent.cpp: Added.
     54        (WebCore::SpeechRecognitionEvent::create):
     55        (WebCore::SpeechRecognitionEvent::SpeechRecognitionEvent):
     56        (WebCore::SpeechRecognitionEvent::eventInterface const):
     57        * Modules/speech/SpeechRecognitionEvent.h: Added.
     58        * Modules/speech/SpeechRecognitionEvent.idl: Added.
     59        * Modules/speech/SpeechRecognitionResult.cpp: Added.
     60        (WebCore::SpeechRecognitionResult::create):
     61        (WebCore::SpeechRecognitionResult::SpeechRecognitionResult):
     62        (WebCore::SpeechRecognitionResult::item const):
     63        * Modules/speech/SpeechRecognitionResult.h: Added.
     64        * Modules/speech/SpeechRecognitionResult.idl: Added.
     65        * Modules/speech/SpeechRecognitionResultList.cpp: Added.
     66        (WebCore::SpeechRecognitionResultList::create):
     67        (WebCore::SpeechRecognitionResultList::item const):
     68        (WebCore::SpeechRecognitionResultList::add):
     69        (WebCore::SpeechRecognitionResultList::SpeechRecognitionResultList):
     70        * Modules/speech/SpeechRecognitionResultList.h: Added.
     71        * Modules/speech/SpeechRecognitionResultList.idl: Added.
     72        * Sources.txt:
     73        * WebCore.xcodeproj/project.pbxproj:
     74        * bindings/js/WebCoreBuiltinNames.h:
     75        * dom/EventNames.in:
     76        * dom/EventTargetFactory.in:
     77
    1782020-10-20  Don Olmstead  <don.olmstead@sony.com>
    279
  • trunk/Source/WebCore/DerivedSources-input.xcfilelist

    r268745 r268762  
    290290$(PROJECT_DIR)/Modules/remoteplayback/RemotePlayback.idl
    291291$(PROJECT_DIR)/Modules/remoteplayback/RemotePlaybackAvailabilityCallback.idl
     292$(PROJECT_DIR)/Modules/speech/SpeechRecognition.idl
     293$(PROJECT_DIR)/Modules/speech/SpeechRecognitionAlternative.idl
     294$(PROJECT_DIR)/Modules/speech/SpeechRecognitionErrorCode.idl
     295$(PROJECT_DIR)/Modules/speech/SpeechRecognitionErrorEvent.idl
     296$(PROJECT_DIR)/Modules/speech/SpeechRecognitionEvent.idl
     297$(PROJECT_DIR)/Modules/speech/SpeechRecognitionResult.idl
     298$(PROJECT_DIR)/Modules/speech/SpeechRecognitionResultList.idl
    292299$(PROJECT_DIR)/Modules/speech/DOMWindow+SpeechSynthesis.idl
    293300$(PROJECT_DIR)/Modules/speech/SpeechSynthesis.idl
  • trunk/Source/WebCore/DerivedSources-output.xcfilelist

    r268745 r268762  
    21332133$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSourceBufferList.cpp
    21342134$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSourceBufferList.h
     2135$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognition.cpp
     2136$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognition.h
     2137$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionAlternative.cpp
     2138$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionAlternative.h
     2139$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionErrorCode.cpp
     2140$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionErrorCode.h
     2141$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionErrorEvent.cpp
     2142$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionErrorEvent.h
     2143$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionEvent.cpp
     2144$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionEvent.h
     2145$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionResult.cpp
     2146$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionResult.h
     2147$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionResultList.cpp
     2148$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechRecognitionResultList.h
    21352149$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechSynthesis.cpp
    21362150$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSpeechSynthesis.h
  • trunk/Source/WebCore/DerivedSources.make

    r268745 r268762  
    317317    $(WebCore)/Modules/speech/SpeechSynthesisUtterance.idl \
    318318    $(WebCore)/Modules/speech/SpeechSynthesisVoice.idl \
     319        $(WebCore)/Modules/speech/SpeechRecognition.idl \
     320        $(WebCore)/Modules/speech/SpeechRecognitionAlternative.idl \
     321        $(WebCore)/Modules/speech/SpeechRecognitionErrorCode.idl \
     322        $(WebCore)/Modules/speech/SpeechRecognitionErrorEvent.idl \
     323        $(WebCore)/Modules/speech/SpeechRecognitionEvent.idl \
     324        $(WebCore)/Modules/speech/SpeechRecognitionResult.idl \
     325        $(WebCore)/Modules/speech/SpeechRecognitionResultList.idl \
    319326    $(WebCore)/Modules/streams/ByteLengthQueuingStrategy.idl \
    320327    $(WebCore)/Modules/streams/CountQueuingStrategy.idl \
  • trunk/Source/WebCore/Sources.txt

    r268735 r268762  
    185185Modules/pictureinpicture/PictureInPictureWindow.cpp
    186186Modules/remoteplayback/RemotePlayback.cpp
     187Modules/speech/SpeechRecognition.cpp
     188Modules/speech/SpeechRecognitionAlternative.cpp
     189Modules/speech/SpeechRecognitionErrorEvent.cpp
     190Modules/speech/SpeechRecognitionEvent.cpp
     191Modules/speech/SpeechRecognitionResult.cpp
     192Modules/speech/SpeechRecognitionResultList.cpp
    187193Modules/speech/DOMWindowSpeechSynthesis.cpp
    188194Modules/speech/SpeechSynthesis.cpp
     
    35013507JSSourceBuffer.cpp
    35023508JSSourceBufferList.cpp
     3509JSSpeechRecognition.cpp
     3510JSSpeechRecognitionAlternative.cpp
     3511JSSpeechRecognitionErrorCode.cpp
     3512JSSpeechRecognitionErrorEvent.cpp
     3513JSSpeechRecognitionEvent.cpp
     3514JSSpeechRecognitionResult.cpp
     3515JSSpeechRecognitionResultList.cpp
    35033516JSSpeechSynthesis.cpp
    35043517JSSpeechSynthesisEvent.cpp
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r268745 r268762  
    27312731                93442C9E0D2B335C00338FF9 /* HTMLTableRowsCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 93442C9D0D2B335C00338FF9 /* HTMLTableRowsCollection.h */; };
    27322732                934907E4125BBBC8007F23A0 /* GraphicsContextCG.h in Headers */ = {isa = PBXBuildFile; fileRef = 934907E3125BBBC8007F23A0 /* GraphicsContextCG.h */; settings = {ATTRIBUTES = (Private, ); }; };
     2733                934950CD253943610099F171 /* SpeechRecognition.h in Headers */ = {isa = PBXBuildFile; fileRef = 934950B1253943480099F171 /* SpeechRecognition.h */; };
     2734                934950CE253943650099F171 /* SpeechRecognitionAlternative.h in Headers */ = {isa = PBXBuildFile; fileRef = 934950BC2539434E0099F171 /* SpeechRecognitionAlternative.h */; };
     2735                934950D02539436C0099F171 /* SpeechRecognitionErrorCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 934950AF253943470099F171 /* SpeechRecognitionErrorCode.h */; };
     2736                934950D1253943700099F171 /* SpeechRecognitionErrorEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 934950C3253943520099F171 /* SpeechRecognitionErrorEvent.h */; };
     2737                934950D2253943730099F171 /* SpeechRecognitionEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 934950C9253943550099F171 /* SpeechRecognitionEvent.h */; };
     2738                934950D42539437C0099F171 /* SpeechRecognitionResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 934950C1253943510099F171 /* SpeechRecognitionResult.h */; };
     2739                934950D6253943810099F171 /* SpeechRecognitionResultList.h in Headers */ = {isa = PBXBuildFile; fileRef = 934950C4253943520099F171 /* SpeechRecognitionResultList.h */; };
    27332740                934CC10A0EDB223900A658F2 /* ScriptSourceCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 934CC1090EDB223900A658F2 /* ScriptSourceCode.h */; };
    27342741                934F713A0D5A6F1000018D69 /* AuthenticationChallengeBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 934F71390D5A6F1000018D69 /* AuthenticationChallengeBase.h */; settings = {ATTRIBUTES = (Private, ); }; };
     
    1124811255                93442C9F0D2B336000338FF9 /* HTMLTableRowsCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLTableRowsCollection.cpp; sourceTree = "<group>"; };
    1124911256                934907E3125BBBC8007F23A0 /* GraphicsContextCG.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GraphicsContextCG.h; sourceTree = "<group>"; };
     11257                934950AD253943460099F171 /* SpeechRecognition.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SpeechRecognition.idl; sourceTree = "<group>"; };
     11258                934950AF253943470099F171 /* SpeechRecognitionErrorCode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SpeechRecognitionErrorCode.h; sourceTree = "<group>"; };
     11259                934950B1253943480099F171 /* SpeechRecognition.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SpeechRecognition.h; sourceTree = "<group>"; };
     11260                934950B4253943490099F171 /* SpeechRecognitionEvent.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SpeechRecognitionEvent.idl; sourceTree = "<group>"; };
     11261                934950B72539434B0099F171 /* SpeechRecognitionAlternative.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SpeechRecognitionAlternative.cpp; sourceTree = "<group>"; };
     11262                934950B82539434C0099F171 /* SpeechRecognitionErrorCode.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SpeechRecognitionErrorCode.idl; sourceTree = "<group>"; };
     11263                934950B92539434D0099F171 /* SpeechRecognitionResult.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SpeechRecognitionResult.idl; sourceTree = "<group>"; };
     11264                934950BA2539434D0099F171 /* SpeechRecognitionErrorEvent.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SpeechRecognitionErrorEvent.idl; sourceTree = "<group>"; };
     11265                934950BB2539434E0099F171 /* SpeechRecognitionAlternative.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SpeechRecognitionAlternative.idl; sourceTree = "<group>"; };
     11266                934950BC2539434E0099F171 /* SpeechRecognitionAlternative.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SpeechRecognitionAlternative.h; sourceTree = "<group>"; };
     11267                934950BD2539434F0099F171 /* SpeechRecognitionResultList.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SpeechRecognitionResultList.cpp; sourceTree = "<group>"; };
     11268                934950BF253943500099F171 /* SpeechRecognitionResult.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SpeechRecognitionResult.cpp; sourceTree = "<group>"; };
     11269                934950C0253943500099F171 /* SpeechRecognitionEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SpeechRecognitionEvent.cpp; sourceTree = "<group>"; };
     11270                934950C1253943510099F171 /* SpeechRecognitionResult.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SpeechRecognitionResult.h; sourceTree = "<group>"; };
     11271                934950C3253943520099F171 /* SpeechRecognitionErrorEvent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SpeechRecognitionErrorEvent.h; sourceTree = "<group>"; };
     11272                934950C4253943520099F171 /* SpeechRecognitionResultList.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SpeechRecognitionResultList.h; sourceTree = "<group>"; };
     11273                934950C5253943530099F171 /* SpeechRecognitionResultList.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SpeechRecognitionResultList.idl; sourceTree = "<group>"; };
     11274                934950C7253943540099F171 /* SpeechRecognition.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SpeechRecognition.cpp; sourceTree = "<group>"; };
     11275                934950C8253943540099F171 /* SpeechRecognitionErrorEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SpeechRecognitionErrorEvent.cpp; sourceTree = "<group>"; };
     11276                934950C9253943550099F171 /* SpeechRecognitionEvent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SpeechRecognitionEvent.h; sourceTree = "<group>"; };
    1125011277                934CC1090EDB223900A658F2 /* ScriptSourceCode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptSourceCode.h; sourceTree = "<group>"; };
    1125111278                934F71370D5A6EFF00018D69 /* AuthenticationChallengeBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AuthenticationChallengeBase.cpp; sourceTree = "<group>"; };
     
    2538725414                                AA2A5AB816A485D500975A25 /* DOMWindowSpeechSynthesis.cpp */,
    2538825415                                AA2A5AB916A485D500975A25 /* DOMWindowSpeechSynthesis.h */,
     25416                                934950C7253943540099F171 /* SpeechRecognition.cpp */,
     25417                                934950B1253943480099F171 /* SpeechRecognition.h */,
     25418                                934950AD253943460099F171 /* SpeechRecognition.idl */,
     25419                                934950B72539434B0099F171 /* SpeechRecognitionAlternative.cpp */,
     25420                                934950BC2539434E0099F171 /* SpeechRecognitionAlternative.h */,
     25421                                934950BB2539434E0099F171 /* SpeechRecognitionAlternative.idl */,
     25422                                934950AF253943470099F171 /* SpeechRecognitionErrorCode.h */,
     25423                                934950B82539434C0099F171 /* SpeechRecognitionErrorCode.idl */,
     25424                                934950C8253943540099F171 /* SpeechRecognitionErrorEvent.cpp */,
     25425                                934950C3253943520099F171 /* SpeechRecognitionErrorEvent.h */,
     25426                                934950BA2539434D0099F171 /* SpeechRecognitionErrorEvent.idl */,
     25427                                934950C0253943500099F171 /* SpeechRecognitionEvent.cpp */,
     25428                                934950C9253943550099F171 /* SpeechRecognitionEvent.h */,
     25429                                934950B4253943490099F171 /* SpeechRecognitionEvent.idl */,
     25430                                934950BF253943500099F171 /* SpeechRecognitionResult.cpp */,
     25431                                934950C1253943510099F171 /* SpeechRecognitionResult.h */,
     25432                                934950B92539434D0099F171 /* SpeechRecognitionResult.idl */,
     25433                                934950BD2539434F0099F171 /* SpeechRecognitionResultList.cpp */,
     25434                                934950C4253943520099F171 /* SpeechRecognitionResultList.h */,
     25435                                934950C5253943530099F171 /* SpeechRecognitionResultList.idl */,
    2538925436                                AA2A5ABD16A485D500975A25 /* SpeechSynthesis.cpp */,
    2539025437                                AA2A5ABE16A485D500975A25 /* SpeechSynthesis.h */,
     
    3411834165                                D01A27AE10C9BFD800026A42 /* SpaceSplitString.h in Headers */,
    3411934166                                626CDE0F1140424C001E5A68 /* SpatialNavigation.h in Headers */,
     34167                                934950CD253943610099F171 /* SpeechRecognition.h in Headers */,
     34168                                934950CE253943650099F171 /* SpeechRecognitionAlternative.h in Headers */,
     34169                                934950D02539436C0099F171 /* SpeechRecognitionErrorCode.h in Headers */,
     34170                                934950D1253943700099F171 /* SpeechRecognitionErrorEvent.h in Headers */,
     34171                                934950D2253943730099F171 /* SpeechRecognitionEvent.h in Headers */,
     34172                                934950D42539437C0099F171 /* SpeechRecognitionResult.h in Headers */,
     34173                                934950D6253943810099F171 /* SpeechRecognitionResultList.h in Headers */,
    3412034174                                AA2A5AD416A4861100975A25 /* SpeechSynthesis.h in Headers */,
    3412134175                                C14938072234551A000CD707 /* SpeechSynthesisClient.h in Headers */,
  • trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h

    r268648 r268762  
    239239    macro(ServiceWorkerRegistration) \
    240240    macro(ShadowRoot) \
     241    macro(SpeechRecognition) \
     242    macro(SpeechRecognitionAlternative) \
     243    macro(SpeechRecognitionErrorEvent) \
     244    macro(SpeechRecognitionEvent) \
     245    macro(SpeechRecognitionResult) \
     246    macro(SpeechRecognitionResultList) \
    241247    macro(StaticRange) \
    242248    macro(StereoPannerNode) \
  • trunk/Source/WebCore/dom/EventNames.in

    r262695 r268762  
    6363RTCPeerConnectionIceEvent conditional=WEB_RTC
    6464RTCTrackEvent conditional=WEB_RTC
     65SpeechRecognitionErrorEvent
     66SpeechRecognitionEvent
    6567SpeechSynthesisEvent conditional=SPEECH_SYNTHESIS
    6668WebGLContextEvent conditional=WEBGL
  • trunk/Source/WebCore/dom/EventTargetFactory.in

    r267885 r268762  
    4545SourceBuffer conditional=MEDIA_SOURCE
    4646SourceBufferList conditional=MEDIA_SOURCE
     47SpeechRecognition
    4748SpeechSynthesisUtterance conditional=SPEECH_SYNTHESIS
    4849TextTrack conditional=VIDEO
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r268719 r268762  
     12020-10-20  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Add stubs for SpeechRecognition
     4        https://bugs.webkit.org/show_bug.cgi?id=217780
     5        <rdar://problem/70350727>
     6
     7        Reviewed by Youenn Fablet.
     8
     9        * WebView/WebPreferenceKeysPrivate.h:
     10        * WebView/WebPreferences.mm:
     11        (-[WebPreferences _speechRecognitionEnabled]):
     12        (-[WebPreferences _setSpeechRecognitionEnabled:]):
     13        * WebView/WebPreferencesPrivate.h:
     14
    1152020-10-20  Sam Weinig  <weinig@apple.com>
    216
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h

    r267988 r268762  
    290290#define WebKitCSSIndividualTransformPropertiesEnabledPreferenceKey @"WebKitCSSIndividualTransformPropertiesEnabled"
    291291#define WebKitContactPickerAPIEnabledPreferenceKey @"WebKitContactPickerAPIEnabled"
     292#define WebKitSpeechRecognitionEnabledPreferenceKey @"WebKitSpeechRecognitionEnabled"
    292293
    293294// The preference keys below this point are deprecated and have no effect. They should
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm

    r268652 r268762  
    33763376}
    33773377
     3378- (BOOL)_speechRecognitionEnabled
     3379{
     3380    return [self _boolValueForKey:WebKitSpeechRecognitionEnabledPreferenceKey];
     3381}
     3382
     3383- (void)_setSpeechRecognitionEnabled:(BOOL)flag
     3384{
     3385    [self _setBoolValue:flag forKey:WebKitSpeechRecognitionEnabledPreferenceKey];
     3386}
     3387
    33783388@end
    33793389
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h

    r268646 r268762  
    349349@property (nonatomic) BOOL CSSIndividualTransformPropertiesEnabled;
    350350@property (nonatomic) BOOL contactPickerAPIEnabled;
     351@property (nonatomic, setter=_setSpeechRecognitionEnabled:) BOOL _speechRecognitionEnabled;
    351352@end
    352353
  • trunk/Tools/ChangeLog

    r268761 r268762  
     12020-10-20  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Add stubs for SpeechRecognition
     4        https://bugs.webkit.org/show_bug.cgi?id=217780
     5        <rdar://problem/70350727>
     6
     7        Reviewed by Youenn Fablet.
     8
     9        * DumpRenderTree/mac/DumpRenderTree.mm:
     10        (enableExperimentalFeatures):
     11
    1122020-10-20  Jonathan Bedard  <jbedard@apple.com>
    213
  • trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm

    r268735 r268762  
    843843    [preferences setCSSOMViewSmoothScrollingEnabled:YES];
    844844    [preferences setAudioWorkletEnabled:YES];
     845    [preferences _setSpeechRecognitionEnabled:YES];
    845846
    846847    for (WebFeature* feature in [WebPreferences _experimentalFeatures]) {
Note: See TracChangeset for help on using the changeset viewer.