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

Side by Side Diff: third_party/WebKit/Source/modules/speech/SpeechSynthesisEvent.h

Issue 1864243004: Remove RawPtr from Source/modules Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 16 matching lines...) Expand all
27 #define SpeechSynthesisEvent_h 27 #define SpeechSynthesisEvent_h
28 28
29 #include "modules/EventModules.h" 29 #include "modules/EventModules.h"
30 #include "modules/speech/SpeechSynthesisUtterance.h" 30 #include "modules/speech/SpeechSynthesisUtterance.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class SpeechSynthesisEvent final : public Event { 34 class SpeechSynthesisEvent final : public Event {
35 DEFINE_WRAPPERTYPEINFO(); 35 DEFINE_WRAPPERTYPEINFO();
36 public: 36 public:
37 static RawPtr<SpeechSynthesisEvent> create(); 37 static SpeechSynthesisEvent* create();
38 static RawPtr<SpeechSynthesisEvent> create(const AtomicString& type, SpeechS ynthesisUtterance*, unsigned charIndex, float elapsedTime, const String& name); 38 static SpeechSynthesisEvent* create(const AtomicString& type, SpeechSynthesi sUtterance*, unsigned charIndex, float elapsedTime, const String& name);
39 39
40 SpeechSynthesisUtterance* utterance() const { return m_utterance; } 40 SpeechSynthesisUtterance* utterance() const { return m_utterance; }
41 unsigned charIndex() const { return m_charIndex; } 41 unsigned charIndex() const { return m_charIndex; }
42 float elapsedTime() const { return m_elapsedTime; } 42 float elapsedTime() const { return m_elapsedTime; }
43 const String& name() const { return m_name; } 43 const String& name() const { return m_name; }
44 44
45 const AtomicString& interfaceName() const override { return EventNames::Spee chSynthesisEvent; } 45 const AtomicString& interfaceName() const override { return EventNames::Spee chSynthesisEvent; }
46 46
47 DECLARE_VIRTUAL_TRACE(); 47 DECLARE_VIRTUAL_TRACE();
48 48
49 private: 49 private:
50 SpeechSynthesisEvent(); 50 SpeechSynthesisEvent();
51 SpeechSynthesisEvent(const AtomicString& type, SpeechSynthesisUtterance*, un signed charIndex, float elapsedTime, const String& name); 51 SpeechSynthesisEvent(const AtomicString& type, SpeechSynthesisUtterance*, un signed charIndex, float elapsedTime, const String& name);
52 52
53 Member<SpeechSynthesisUtterance> m_utterance; 53 Member<SpeechSynthesisUtterance> m_utterance;
54 unsigned m_charIndex; 54 unsigned m_charIndex;
55 float m_elapsedTime; 55 float m_elapsedTime;
56 String m_name; 56 String m_name;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // SpeechSynthesisEvent_h 61 #endif // SpeechSynthesisEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698