Changeset 151680 in webkit


Ignore:
Timestamp:
Jun 18, 2013 4:23:37 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[WebSpeech] Speech Recognition requires convertValue support in JSDictionary
https://bugs.webkit.org/show_bug.cgi?id=117731

Patch by Praveen R Jadhav <praveen.j@samsung.com> on 2013-06-18
Reviewed by Christophe Dumez.

Build fails after enabling ENABLE_SCRIPTED_SPEECH feature. This patch
resolves the issue.

No new tests. No change in behaviour.

  • bindings/js/JSDictionary.cpp:

(WebCore::JSDictionary::convertValue):

  • bindings/js/JSDictionary.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r151677 r151680  
     12013-06-18  Praveen R Jadhav  <praveen.j@samsung.com>
     2
     3        [WebSpeech] Speech Recognition requires convertValue support in JSDictionary
     4        https://bugs.webkit.org/show_bug.cgi?id=117731
     5
     6        Reviewed by Christophe Dumez.
     7
     8        Build fails after enabling ENABLE_SCRIPTED_SPEECH feature. This patch
     9        resolves the issue.
     10
     11        No new tests. No change in behaviour.
     12
     13        * bindings/js/JSDictionary.cpp:
     14        (WebCore::JSDictionary::convertValue):
     15        * bindings/js/JSDictionary.h:
     16
    1172013-06-18  Mary Wu  <mary.wu@torchmobile.com.cn>
    218
  • trunk/Source/WebCore/bindings/js/JSDictionary.cpp

    r148696 r151680  
    5353#endif
    5454
     55#if ENABLE(SCRIPTED_SPEECH)
     56#include "JSSpeechRecognitionResultList.h"
     57#endif
     58
    5559using namespace JSC;
    5660
     
    250254#endif
    251255
     256#if ENABLE(SCRIPTED_SPEECH)
     257void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<SpeechRecognitionResultList>& result)
     258{
     259    result = toSpeechRecognitionResultList(value);
     260}
     261#endif
     262
    252263bool JSDictionary::getWithUndefinedOrNullCheck(const String& propertyName, String& result) const
    253264{
  • trunk/Source/WebCore/bindings/js/JSDictionary.h

    r148696 r151680  
    5050class TrackBase;
    5151class VoidCallback;
     52
     53#if ENABLE(SCRIPTED_SPEECH)
     54class SpeechRecognitionResultList;
     55#endif
    5256
    5357class JSDictionary {
     
    128132    static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<VoidCallback>& result);
    129133#endif
     134#if ENABLE(SCRIPTED_SPEECH)
     135    static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<SpeechRecognitionResultList>&);
     136#endif
    130137
    131138    JSC::ExecState* m_exec;
Note: See TracChangeset for help on using the changeset viewer.