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

Side by Side Diff: third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp

Issue 2386203002: Reflow comments in Source/modules/speech and platform/speech (Closed)
Patch Set: Do platform/speech too Created 4 years, 2 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 const AtomicString& SpeechSynthesisUtterance::interfaceName() const { 49 const AtomicString& SpeechSynthesisUtterance::interfaceName() const {
50 return EventTargetNames::SpeechSynthesisUtterance; 50 return EventTargetNames::SpeechSynthesisUtterance;
51 } 51 }
52 52
53 SpeechSynthesisVoice* SpeechSynthesisUtterance::voice() const { 53 SpeechSynthesisVoice* SpeechSynthesisUtterance::voice() const {
54 return m_voice; 54 return m_voice;
55 } 55 }
56 56
57 void SpeechSynthesisUtterance::setVoice(SpeechSynthesisVoice* voice) { 57 void SpeechSynthesisUtterance::setVoice(SpeechSynthesisVoice* voice) {
58 // Cache our own version of the SpeechSynthesisVoice so that we don't have to do some lookup 58 // Cache our own version of the SpeechSynthesisVoice so that we don't have to
59 // to go from the platform voice back to the speech synthesis voice in the rea d property. 59 // do some lookup
60 // to go from the platform voice back to the speech synthesis voice in the
Nico 2016/10/03 17:03:02 put on previous line
hans 2016/10/03 17:33:54 Done.
61 // read property.
60 m_voice = voice; 62 m_voice = voice;
61 63
62 if (voice) 64 if (voice)
63 m_platformUtterance->setVoice(voice->platformVoice()); 65 m_platformUtterance->setVoice(voice->platformVoice());
64 } 66 }
65 67
66 DEFINE_TRACE(SpeechSynthesisUtterance) { 68 DEFINE_TRACE(SpeechSynthesisUtterance) {
67 visitor->trace(m_platformUtterance); 69 visitor->trace(m_platformUtterance);
68 visitor->trace(m_voice); 70 visitor->trace(m_voice);
69 EventTargetWithInlineData::trace(visitor); 71 EventTargetWithInlineData::trace(visitor);
70 ContextLifecycleObserver::trace(visitor); 72 ContextLifecycleObserver::trace(visitor);
71 } 73 }
72 74
73 } // namespace blink 75 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698