Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: Source/WebKit/chromium/public/WebSpeechInputResult.h

Issue 15271012: Clean up WebDOMEvent ownership of WebCore::Event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Improve comments per review. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/public/WebDOMEvent.h ('k') | Source/WebKit/chromium/src/WebDOMCustomEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/public/WebSpeechInputResult.h
diff --git a/Source/WebKit/chromium/public/WebSpeechInputResult.h b/Source/WebKit/chromium/public/WebSpeechInputResult.h
index 52f9528e1e7837c16ad01f070366a143bcd57c53..6ec76d40a64df5f2b1ba4532269572c39bc57a3a 100644
--- a/Source/WebKit/chromium/public/WebSpeechInputResult.h
+++ b/Source/WebKit/chromium/public/WebSpeechInputResult.h
@@ -45,6 +45,12 @@ public:
WebSpeechInputResult(const WebSpeechInputResult& other) { assign(other); }
~WebSpeechInputResult() { reset(); }
+ WebSpeechInputResult& operator=(const WebSpeechInputResult& other)
+ {
+ assign(other);
+ return *this;
+ }
+
WEBKIT_EXPORT void assign(const WebString& utterance, double confidence);
WEBKIT_EXPORT void assign(const WebSpeechInputResult& other);
WEBKIT_EXPORT void reset();
« no previous file with comments | « Source/WebKit/chromium/public/WebDOMEvent.h ('k') | Source/WebKit/chromium/src/WebDOMCustomEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698