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

Unified Diff: Source/core/platform/PlatformSpeechSynthesisUtterance.h

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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: Source/core/platform/PlatformSpeechSynthesisUtterance.h
diff --git a/Source/core/platform/PlatformSpeechSynthesisUtterance.h b/Source/core/platform/PlatformSpeechSynthesisUtterance.h
index 79998e9a7c279cf8498e5333e7488f6edaa93399..7d1dee271fbaf4743c0fdae292d6df02bf6bde51 100644
--- a/Source/core/platform/PlatformSpeechSynthesisUtterance.h
+++ b/Source/core/platform/PlatformSpeechSynthesisUtterance.h
@@ -32,45 +32,45 @@
#include "wtf/text/WTFString.h"
namespace WebCore {
-
+
class PlatformSpeechSynthesisUtteranceClient {
public:
// Implement methods as needed.
protected:
virtual ~PlatformSpeechSynthesisUtteranceClient() { }
};
-
+
class PlatformSpeechSynthesisUtterance : public RefCounted<PlatformSpeechSynthesisUtterance> {
public:
static PassRefPtr<PlatformSpeechSynthesisUtterance> create(PlatformSpeechSynthesisUtteranceClient*);
-
+
const String& text() const { return m_text; }
void setText(const String& text) { m_text = text; }
-
+
const String& lang() const { return m_lang; }
void setLang(const String& lang) { m_lang = lang; }
-
+
PlatformSpeechSynthesisVoice* voice() const { return m_voice.get(); }
void setVoice(PlatformSpeechSynthesisVoice* voice) { m_voice = voice; }
// Range = [0, 1] where 1 is the default.
float volume() const { return m_volume; }
void setVolume(float volume) { m_volume = std::max(std::min(1.0f, volume), 0.0f); }
-
+
// Range = [0.1, 10] where 1 is the default.
float rate() const { return m_rate; }
void setRate(float rate) { m_rate = std::max(std::min(10.0f, rate), 0.1f); }
-
+
// Range = [0, 2] where 1 is the default.
float pitch() const { return m_pitch; }
void setPitch(float pitch) { m_pitch = std::max(std::min(2.0f, pitch), 0.0f); }
double startTime() const { return m_startTime; }
void setStartTime(double startTime) { m_startTime = startTime; }
-
+
PlatformSpeechSynthesisUtteranceClient* client() const { return m_client; }
void setClient(PlatformSpeechSynthesisUtteranceClient* client) { m_client = client; }
-
+
private:
explicit PlatformSpeechSynthesisUtterance(PlatformSpeechSynthesisUtteranceClient*);
@@ -83,7 +83,7 @@ private:
float m_pitch;
double m_startTime;
};
-
+
} // namespace WebCore
#endif // PlatformSpeechSynthesisUtterance_h
« no previous file with comments | « Source/core/platform/PlatformMouseEvent.h ('k') | Source/core/platform/PlatformSpeechSynthesisUtterance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698