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

Unified Diff: Source/modules/speech/SpeechSynthesisEvent.h

Issue 1007803002: Add SpeechSynthesisUtterance attribute on SpeechSynthesisEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix error on layout-test Created 5 years, 9 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/modules/speech/SpeechSynthesis.cpp ('k') | Source/modules/speech/SpeechSynthesisEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechSynthesisEvent.h
diff --git a/Source/modules/speech/SpeechSynthesisEvent.h b/Source/modules/speech/SpeechSynthesisEvent.h
index a71abe82ec05cb92b71cfa5f0ef2661a3155c93c..8db2085c88bfcbea331726846de2a50bc93e97b4 100644
--- a/Source/modules/speech/SpeechSynthesisEvent.h
+++ b/Source/modules/speech/SpeechSynthesisEvent.h
@@ -27,6 +27,7 @@
#define SpeechSynthesisEvent_h
#include "modules/EventModules.h"
+#include "modules/speech/SpeechSynthesisUtterance.h"
namespace blink {
@@ -34,23 +35,22 @@ class SpeechSynthesisEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
public:
static PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> create();
- static PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> create(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name);
+ static PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> create(const AtomicString& type, SpeechSynthesisUtterance*, unsigned charIndex, float elapsedTime, const String& name);
+ SpeechSynthesisUtterance* utterance() const { return m_utterance; }
unsigned charIndex() const { return m_charIndex; }
float elapsedTime() const { return m_elapsedTime; }
const String& name() const { return m_name; }
virtual const AtomicString& interfaceName() const override { return EventNames::SpeechSynthesisEvent; }
- DEFINE_INLINE_VIRTUAL_TRACE()
- {
- Event::trace(visitor);
- }
+ DECLARE_VIRTUAL_TRACE();
private:
SpeechSynthesisEvent();
- SpeechSynthesisEvent(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name);
+ SpeechSynthesisEvent(const AtomicString& type, SpeechSynthesisUtterance*, unsigned charIndex, float elapsedTime, const String& name);
+ PersistentWillBeMember<SpeechSynthesisUtterance> m_utterance;
unsigned m_charIndex;
float m_elapsedTime;
String m_name;
« no previous file with comments | « Source/modules/speech/SpeechSynthesis.cpp ('k') | Source/modules/speech/SpeechSynthesisEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698