Changeset 64269 in webkit
- Timestamp:
- Jul 29, 2010 4:27:54 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r64267 r64269 1 2010-07-29 Satish Sampath <satish@chromium.org> 2 3 Reviewed by Steve Block. 4 5 Runtime feature switch for speech input. 6 https://bugs.webkit.org/show_bug.cgi?id=43146 7 8 Add a runtime feature switch that decides whether speech input attributes are available or not. 9 Defaults to true. 10 11 * bindings/generic/RuntimeEnabledFeatures.cpp: 12 * bindings/generic/RuntimeEnabledFeatures.h: 13 (WebCore::RuntimeEnabledFeatures::setSpeechInputEnabled): 14 (WebCore::RuntimeEnabledFeatures::speechInputEnabled): 15 (WebCore::RuntimeEnabledFeatures::speechEnabled): 16 * html/HTMLInputElement.idl: 17 1 18 2010-07-27 Alexander Pavlov <apavlov@chromium.org> 2 19 -
trunk/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r63810 r64269 49 49 bool RuntimeEnabledFeatures::isTouchEnabled = true; 50 50 bool RuntimeEnabledFeatures::isDeviceOrientationEnabled = true; 51 bool RuntimeEnabledFeatures::isSpeechInputEnabled = true; 51 52 52 53 #if ENABLE(VIDEO) -
trunk/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r64201 r64269 120 120 static bool ondeviceorientationEnabled() { return isDeviceOrientationEnabled; } 121 121 122 static void setSpeechInputEnabled(bool isEnabled) { isSpeechInputEnabled = isEnabled; } 123 static bool speechInputEnabled() { return isSpeechInputEnabled; } 124 static bool speechEnabled() { return isSpeechInputEnabled; } 125 122 126 private: 123 127 // Never instantiate. … … 134 138 static bool isTouchEnabled; 135 139 static bool isDeviceOrientationEnabled; 140 static bool isSpeechInputEnabled; 136 141 }; 137 142 -
trunk/WebCore/html/HTMLInputElement.idl
r63594 r64269 101 101 102 102 #if defined(ENABLE_INPUT_SPEECH) && ENABLE_INPUT_SPEECH 103 attribute [Reflect ] boolean speech;103 attribute [Reflect, EnabledAtRuntime] boolean speech; 104 104 #endif 105 105 }; -
trunk/WebKit/chromium/ChangeLog
r64265 r64269 1 2010-07-29 Satish Sampath <satish@chromium.org> 2 3 Reviewed by Steve Block. 4 5 Runtime feature switch for speech input 6 https://bugs.webkit.org/show_bug.cgi?id=43146 7 8 Add a runtime feature switch that decides whether speech input attributes are available or not. 9 Defaults to true. 10 11 * public/WebRuntimeFeatures.h: 12 * src/SpeechInputClientImpl.cpp: 13 (WebKit::SpeechInputClientImpl::SpeechInputClientImpl): 14 * src/WebRuntimeFeatures.cpp: 15 (WebKit::WebRuntimeFeatures::enableSpeechInput): 16 (WebKit::WebRuntimeFeatures::isSpeechInputEnabled): 17 1 18 2010-07-28 Kavita Kanetkar <kkanetkar@chromium.org> 2 19 -
trunk/WebKit/chromium/public/WebRuntimeFeatures.h
r63810 r64269 81 81 WEBKIT_API static bool isDeviceOrientationEnabled(); 82 82 83 WEBKIT_API static void enableSpeechInput(bool); 84 WEBKIT_API static bool isSpeechInputEnabled(); 85 83 86 private: 84 87 WebRuntimeFeatures(); -
trunk/WebKit/chromium/src/SpeechInputClientImpl.cpp
r64111 r64269 46 46 , m_listener(0) 47 47 { 48 ASSERT(m_controller); 48 // FIXME: Right now WebViewClient gives a null pointer, and with the 49 // runtime flag for speech input feature set to true by default this will 50 // always assert. Enable this assert once the WebViewClient starts to 51 // give a valid pointer. 52 // ASSERT(m_controller); 49 53 } 50 54 -
trunk/WebKit/chromium/src/WebRuntimeFeatures.cpp
r63810 r64269 237 237 } 238 238 239 void WebRuntimeFeatures::enableSpeechInput(bool enable) 240 { 241 RuntimeEnabledFeatures::setSpeechInputEnabled(enable); 242 } 243 244 bool WebRuntimeFeatures::isSpeechInputEnabled() 245 { 246 return RuntimeEnabledFeatures::speechInputEnabled(); 247 } 248 239 249 } // namespace WebKit
Note: See TracChangeset
for help on using the changeset viewer.