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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 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
Index: third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
index bb2de9aab82707d93322cd38b028f0ebbcb54aae..5831f43217d7f387f579867089997983030c8ce6 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
@@ -49,15 +49,15 @@ void SpeechSynthesis::setPlatformSynthesizer(PlatformSpeechSynthesizer* synthesi
m_platformSpeechSynthesizer = synthesizer;
}
-ExecutionContext* SpeechSynthesis::executionContext() const
+ExecutionContext* SpeechSynthesis::getExecutionContext() const
{
- return ContextLifecycleObserver::executionContext();
+ return ContextLifecycleObserver::getExecutionContext();
}
void SpeechSynthesis::voicesDidChange()
{
m_voiceList.clear();
- if (executionContext() && !executionContext()->activeDOMObjectsAreStopped())
+ if (getExecutionContext() && !getExecutionContext()->activeDOMObjectsAreStopped())
dispatchEvent(Event::create(EventTypeNames::voiceschanged));
}
@@ -139,7 +139,7 @@ void SpeechSynthesis::resume()
void SpeechSynthesis::fireEvent(const AtomicString& type, SpeechSynthesisUtterance* utterance, unsigned long charIndex, const String& name)
{
- if (executionContext() && !executionContext()->activeDOMObjectsAreStopped())
+ if (getExecutionContext() && !getExecutionContext()->activeDOMObjectsAreStopped())
utterance->dispatchEvent(SpeechSynthesisEvent::create(type, utterance, charIndex, (currentTime() - utterance->startTime()), name));
}

Powered by Google App Engine
This is Rietveld 408576698