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

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

Issue 401973003: Rename WebCore namespace to blink in Public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 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 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebSpeechSynthesisVoice_h 26 #ifndef WebSpeechSynthesisVoice_h
27 #define WebSpeechSynthesisVoice_h 27 #define WebSpeechSynthesisVoice_h
28 28
29 #include "WebCommon.h" 29 #include "WebCommon.h"
30 #include "WebPrivatePtr.h" 30 #include "WebPrivatePtr.h"
31 #include "WebString.h" 31 #include "WebString.h"
32 32
33 namespace WebCore { 33 namespace blink {
34 class PlatformSpeechSynthesisVoice; 34 class PlatformSpeechSynthesisVoice;
35 } 35 }
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class WebSpeechSynthesisVoice { 39 class WebSpeechSynthesisVoice {
40 public: 40 public:
41 BLINK_PLATFORM_EXPORT WebSpeechSynthesisVoice(); 41 BLINK_PLATFORM_EXPORT WebSpeechSynthesisVoice();
42 WebSpeechSynthesisVoice(const WebSpeechSynthesisVoice& other) { assign(other ); } 42 WebSpeechSynthesisVoice(const WebSpeechSynthesisVoice& other) { assign(other ); }
43 ~WebSpeechSynthesisVoice() { reset(); } 43 ~WebSpeechSynthesisVoice() { reset(); }
44 44
45 WebSpeechSynthesisVoice& operator=(const WebSpeechSynthesisVoice& other) 45 WebSpeechSynthesisVoice& operator=(const WebSpeechSynthesisVoice& other)
46 { 46 {
47 assign(other); 47 assign(other);
48 return *this; 48 return *this;
49 } 49 }
50 50
51 BLINK_PLATFORM_EXPORT void assign(const WebSpeechSynthesisVoice&); 51 BLINK_PLATFORM_EXPORT void assign(const WebSpeechSynthesisVoice&);
52 BLINK_PLATFORM_EXPORT void reset(); 52 BLINK_PLATFORM_EXPORT void reset();
53 53
54 BLINK_PLATFORM_EXPORT void setVoiceURI(const WebString&); 54 BLINK_PLATFORM_EXPORT void setVoiceURI(const WebString&);
55 BLINK_PLATFORM_EXPORT void setName(const WebString&); 55 BLINK_PLATFORM_EXPORT void setName(const WebString&);
56 BLINK_PLATFORM_EXPORT void setLanguage(const WebString&); 56 BLINK_PLATFORM_EXPORT void setLanguage(const WebString&);
57 BLINK_PLATFORM_EXPORT void setIsLocalService(bool); 57 BLINK_PLATFORM_EXPORT void setIsLocalService(bool);
58 BLINK_PLATFORM_EXPORT void setIsDefault(bool); 58 BLINK_PLATFORM_EXPORT void setIsDefault(bool);
59 59
60 #if INSIDE_BLINK 60 #if INSIDE_BLINK
61 BLINK_PLATFORM_EXPORT operator WebCore::PlatformSpeechSynthesisVoice*() cons t; 61 BLINK_PLATFORM_EXPORT operator blink::PlatformSpeechSynthesisVoice*() const;
62 #endif 62 #endif
63 63
64 private: 64 private:
65 WebPrivatePtr<WebCore::PlatformSpeechSynthesisVoice> m_private; 65 WebPrivatePtr<blink::PlatformSpeechSynthesisVoice> m_private;
66 }; 66 };
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // WebSpeechSynthesisVoice_h 70 #endif // WebSpeechSynthesisVoice_h
OLDNEW
« no previous file with comments | « public/platform/WebSpeechSynthesisUtterance.h ('k') | public/platform/WebStorageQuotaCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698