https://bugs.webkit.org/show_bug.cgi?id=77540
Reviewed by Darin Fisher.
Source/WebKit/chromium:
It was suggested in a previous code review
(https://bugs.webkit.org/show_bug.cgi?id=77083#c5)
that this function should be called assign().
* public/WebSpeechInputResult.h:
(WebSpeechInputResult):
(WebKit::WebSpeechInputResult::set):
* src/WebSpeechInputResult.cpp:
(WebKit::WebSpeechInputResult::assign):
Tools:
* DumpRenderTree/chromium/MockWebSpeechInputController.cpp:
(MockWebSpeechInputController::addMockRecognitionResult):
(MockWebSpeechInputController::speechTaskFired):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106475
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-01 Hans Wennborg <hans@chromium.org>
+
+ Rename WebSpeechInputResult::set() to assign()
+ https://bugs.webkit.org/show_bug.cgi?id=77540
+
+ Reviewed by Darin Fisher.
+
+ It was suggested in a previous code review
+ (https://bugs.webkit.org/show_bug.cgi?id=77083#c5)
+ that this function should be called assign().
+
+ * public/WebSpeechInputResult.h:
+ (WebSpeechInputResult):
+ (WebKit::WebSpeechInputResult::set):
+ * src/WebSpeechInputResult.cpp:
+ (WebKit::WebSpeechInputResult::assign):
+
2012-02-01 Kent Tamura <tkent@chromium.org>
[Chromium] Disable WebFrameTest.FindInPage
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();
{
}
-void WebSpeechInputResult::set(const WebString& utterance, double confidence)
+void WebSpeechInputResult::assign(const WebString& utterance, double confidence)
{
m_private = WebCore::SpeechInputResult::create(utterance, confidence);
}
+2012-02-01 Hans Wennborg <hans@chromium.org>
+
+ Rename WebSpeechInputResult::set() to assign()
+ https://bugs.webkit.org/show_bug.cgi?id=77540
+
+ Reviewed by Darin Fisher.
+
+ * DumpRenderTree/chromium/MockWebSpeechInputController.cpp:
+ (MockWebSpeechInputController::addMockRecognitionResult):
+ (MockWebSpeechInputController::speechTaskFired):
+
2012-02-01 Carlos Garcia Campos <cgarcia@igalia.com>
[GTK] WebKit1 API documentation is not generated when building with gtk-2.0
void MockWebSpeechInputController::addMockRecognitionResult(const WebString& result, double confidence, const WebString& language)
{
WebSpeechInputResult res;
- res.set(result, confidence);
+ res.assign(result, confidence);
if (language.isEmpty())
m_resultsForEmptyLanguage.append(res);
error.append("'");
WebSpeechInputResult res;
- res.set(WebString::fromUTF8(error.utf8().data()), 1.0);
+ res.assign(WebString::fromUTF8(error.utf8().data()), 1.0);
Vector<WebSpeechInputResult> results;
results.append(res);