summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/public/WebSpeechInputResult.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/public/WebSpeechInputResult.h')
-rw-r--r--Source/WebKit/chromium/public/WebSpeechInputResult.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WebKit/chromium/public/WebSpeechInputResult.h b/Source/WebKit/chromium/public/WebSpeechInputResult.h
index a316fd230..82eb74aaa 100644
--- a/Source/WebKit/chromium/public/WebSpeechInputResult.h
+++ b/Source/WebKit/chromium/public/WebSpeechInputResult.h
@@ -42,9 +42,14 @@ namespace WebKit {
class WebSpeechInputResult {
public:
WebSpeechInputResult() { }
+ WebSpeechInputResult(const WebSpeechInputResult& other) { assign(other); }
~WebSpeechInputResult() { reset(); }
- WEBKIT_EXPORT void set(const WebString& utterance, double confidence);
+ // FIXME: Remove this when Chromium has been updated.
+ void set(const WebString& utterance, double confidence) { assign(utterance, confidence); }
+
+ WEBKIT_EXPORT void assign(const WebString& utterance, double confidence);
+ WEBKIT_EXPORT void assign(const WebSpeechInputResult& other);
WEBKIT_EXPORT void reset();
#if WEBKIT_IMPLEMENTATION