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

Side by Side Diff: Source/modules/speech/SpeechSynthesisVoice.h

Issue 169293002: Oilpan: Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixheaptest Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. 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 18 matching lines...) Expand all
29 #include "bindings/v8/ScriptWrappable.h" 29 #include "bindings/v8/ScriptWrappable.h"
30 #include "heap/Handle.h" 30 #include "heap/Handle.h"
31 #include "platform/speech/PlatformSpeechSynthesisVoice.h" 31 #include "platform/speech/PlatformSpeechSynthesisVoice.h"
32 #include "wtf/PassRefPtr.h" 32 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefCounted.h" 33 #include "wtf/RefCounted.h"
34 #include "wtf/text/WTFString.h" 34 #include "wtf/text/WTFString.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class SpeechSynthesisVoice FINAL : public RefCountedWillBeGarbageCollectedFinali zed<SpeechSynthesisVoice>, public ScriptWrappable { 38 class SpeechSynthesisVoice FINAL : public RefCountedWillBeGarbageCollectedFinali zed<SpeechSynthesisVoice>, public ScriptWrappable {
39 DECLARE_GC_INFO;
40 public: 39 public:
41 static PassRefPtrWillBeRawPtr<SpeechSynthesisVoice> create(PassRefPtr<Platfo rmSpeechSynthesisVoice>); 40 static PassRefPtrWillBeRawPtr<SpeechSynthesisVoice> create(PassRefPtr<Platfo rmSpeechSynthesisVoice>);
42 41
43 const String& voiceURI() const { return m_platformVoice->voiceURI(); } 42 const String& voiceURI() const { return m_platformVoice->voiceURI(); }
44 const String& name() const { return m_platformVoice->name(); } 43 const String& name() const { return m_platformVoice->name(); }
45 const String& lang() const { return m_platformVoice->lang(); } 44 const String& lang() const { return m_platformVoice->lang(); }
46 bool localService() const { return m_platformVoice->localService(); } 45 bool localService() const { return m_platformVoice->localService(); }
47 bool isDefault() const { return m_platformVoice->isDefault(); } 46 bool isDefault() const { return m_platformVoice->isDefault(); }
48 47
49 PlatformSpeechSynthesisVoice* platformVoice() const { return m_platformVoice .get(); } 48 PlatformSpeechSynthesisVoice* platformVoice() const { return m_platformVoice .get(); }
50 49
51 void trace(Visitor*) { } 50 void trace(Visitor*) { }
52 51
53 private: 52 private:
54 explicit SpeechSynthesisVoice(PassRefPtr<PlatformSpeechSynthesisVoice>); 53 explicit SpeechSynthesisVoice(PassRefPtr<PlatformSpeechSynthesisVoice>);
55 54
56 RefPtr<PlatformSpeechSynthesisVoice> m_platformVoice; 55 RefPtr<PlatformSpeechSynthesisVoice> m_platformVoice;
57 }; 56 };
58 57
59 } // namespace WebCore 58 } // namespace WebCore
60 59
61 #endif // SpeechSynthesisVoice_h 60 #endif // SpeechSynthesisVoice_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechSynthesisUtterance.cpp ('k') | Source/modules/speech/SpeechSynthesisVoice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698