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

Side by Side Diff: public/platform/WebSpeechSynthesisUtterance.h

Issue 110393002: Move PlatformSpeech stuff to platform/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WTF_MAKE_NONCOPYABLE Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 * * Redistributions of source code must retain the above copyright 7 * * 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 * * Redistributions in binary form must reproduce the above copyright 9 * * 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 28 matching lines...) Expand all
39 WebSpeechSynthesisUtterance() { } 39 WebSpeechSynthesisUtterance() { }
40 WebSpeechSynthesisUtterance(const WebSpeechSynthesisUtterance& other) { assi gn(other); } 40 WebSpeechSynthesisUtterance(const WebSpeechSynthesisUtterance& other) { assi gn(other); }
41 ~WebSpeechSynthesisUtterance() { reset(); } 41 ~WebSpeechSynthesisUtterance() { reset(); }
42 42
43 WebSpeechSynthesisUtterance& operator=(const WebSpeechSynthesisUtterance& ot her) 43 WebSpeechSynthesisUtterance& operator=(const WebSpeechSynthesisUtterance& ot her)
44 { 44 {
45 assign(other); 45 assign(other);
46 return *this; 46 return *this;
47 } 47 }
48 48
49 BLINK_EXPORT void assign(const WebSpeechSynthesisUtterance&); 49 BLINK_PLATFORM_EXPORT void assign(const WebSpeechSynthesisUtterance&);
50 BLINK_EXPORT void reset(); 50 BLINK_PLATFORM_EXPORT void reset();
51 bool isNull() const { return m_private.isNull(); } 51 bool isNull() const { return m_private.isNull(); }
52 52
53 BLINK_EXPORT WebString text() const; 53 BLINK_PLATFORM_EXPORT WebString text() const;
54 BLINK_EXPORT WebString lang() const; 54 BLINK_PLATFORM_EXPORT WebString lang() const;
55 BLINK_EXPORT WebString voice() const; 55 BLINK_PLATFORM_EXPORT WebString voice() const;
56 56
57 // As defined in: https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.h tml 57 // As defined in: https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.h tml
58 BLINK_EXPORT float volume() const; // 0...1, 1 is default 58 BLINK_PLATFORM_EXPORT float volume() const; // 0...1, 1 is default
59 BLINK_EXPORT float rate() const; // 0.1...10, 1 is default 59 BLINK_PLATFORM_EXPORT float rate() const; // 0.1...10, 1 is default
60 BLINK_EXPORT float pitch() const; // 0...2, 1 is default 60 BLINK_PLATFORM_EXPORT float pitch() const; // 0...2, 1 is default
61 61
62 BLINK_EXPORT double startTime() const; // In seconds. 62 BLINK_PLATFORM_EXPORT double startTime() const; // In seconds.
63 63
64 #if BLINK_IMPLEMENTATION 64 #if INSIDE_BLINK
65 WebSpeechSynthesisUtterance(const PassRefPtr<WebCore::PlatformSpeechSynthesi sUtterance>&); 65 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance(const PassRefPtr<WebCore:: PlatformSpeechSynthesisUtterance>&);
66 WebSpeechSynthesisUtterance& operator=(WebCore::PlatformSpeechSynthesisUtter ance*); 66 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance& operator=(WebCore::Platfo rmSpeechSynthesisUtterance*);
67 operator PassRefPtr<WebCore::PlatformSpeechSynthesisUtterance>() const; 67 BLINK_PLATFORM_EXPORT operator PassRefPtr<WebCore::PlatformSpeechSynthesisUt terance>() const;
68 operator WebCore::PlatformSpeechSynthesisUtterance*() const; 68 BLINK_PLATFORM_EXPORT operator WebCore::PlatformSpeechSynthesisUtterance*() const;
69 #endif 69 #endif
70 70
71 private: 71 private:
72 WebPrivatePtr<WebCore::PlatformSpeechSynthesisUtterance> m_private; 72 WebPrivatePtr<WebCore::PlatformSpeechSynthesisUtterance> m_private;
73 }; 73 };
74 74
75 } // namespace blink 75 } // namespace blink
76 76
77 #endif // WebSpeechSynthesisUtterance_h 77 #endif // WebSpeechSynthesisUtterance_h
OLDNEW
« no previous file with comments | « Source/platform/speech/PlatformSpeechSynthesizer.cpp ('k') | public/platform/WebSpeechSynthesisVoice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698