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

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

Issue 339823003: Oilpan: move platform speech objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Trace SpeechRecognition's controller reference. Created 6 years, 6 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 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 BLINK_PLATFORM_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_PLATFORM_EXPORT float volume() const; // 0...1, 1 is default 58 BLINK_PLATFORM_EXPORT float volume() const; // 0...1, 1 is default
59 BLINK_PLATFORM_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_PLATFORM_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_PLATFORM_EXPORT double startTime() const; // In seconds. 62 BLINK_PLATFORM_EXPORT double startTime() const; // In seconds.
63 63
64 #if INSIDE_BLINK 64 #if INSIDE_BLINK
65 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance(const PassRefPtr<WebCore:: PlatformSpeechSynthesisUtterance>&); 65 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance(WebCore::PlatformSpeechSyn thesisUtterance*);
66 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance& operator=(WebCore::Platfo rmSpeechSynthesisUtterance*); 66 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance& operator=(WebCore::Platfo rmSpeechSynthesisUtterance*);
67 BLINK_PLATFORM_EXPORT operator PassRefPtr<WebCore::PlatformSpeechSynthesisUt terance>() const;
68 BLINK_PLATFORM_EXPORT operator WebCore::PlatformSpeechSynthesisUtterance*() const; 67 BLINK_PLATFORM_EXPORT operator WebCore::PlatformSpeechSynthesisUtterance*() const;
69 #endif 68 #endif
70 69
71 private: 70 private:
72 WebPrivatePtr<WebCore::PlatformSpeechSynthesisUtterance> m_private; 71 WebPrivatePtr<WebCore::PlatformSpeechSynthesisUtterance> m_private;
73 }; 72 };
74 73
75 } // namespace blink 74 } // namespace blink
76 75
77 #endif // WebSpeechSynthesisUtterance_h 76 #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