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

Side by Side Diff: Source/modules/speech/SpeechRecognition.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
« no previous file with comments | « no previous file | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class SpeechRecognitionError; 43 class SpeechRecognitionError;
44 44
45 class SpeechRecognition FINAL : public RefCountedGarbageCollectedWillBeGarbageCo llectedFinalized<SpeechRecognition>, public ScriptWrappable, public ActiveDOMObj ect, public EventTargetWithInlineData { 45 class SpeechRecognition FINAL : public RefCountedGarbageCollectedWillBeGarbageCo llectedFinalized<SpeechRecognition>, public ScriptWrappable, public ActiveDOMObj ect, public EventTargetWithInlineData {
46 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S peechRecognition>); 46 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S peechRecognition>);
47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); 47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition);
48 public: 48 public:
49 static SpeechRecognition* create(ExecutionContext*); 49 static SpeechRecognition* create(ExecutionContext*);
50 virtual ~SpeechRecognition(); 50 virtual ~SpeechRecognition();
51 51
52 // Attributes. 52 // Attributes.
53 SpeechGrammarList* grammars() { return m_grammars.get(); } 53 SpeechGrammarList* grammars() { return m_grammars; }
54 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } 54 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; }
55 String lang() { return m_lang; } 55 String lang() { return m_lang; }
56 void setLang(const String& lang) { m_lang = lang; } 56 void setLang(const String& lang) { m_lang = lang; }
57 bool continuous() { return m_continuous; } 57 bool continuous() { return m_continuous; }
58 void setContinuous(bool continuous) { m_continuous = continuous; } 58 void setContinuous(bool continuous) { m_continuous = continuous; }
59 bool interimResults() { return m_interimResults; } 59 bool interimResults() { return m_interimResults; }
60 void setInterimResults(bool interimResults) { m_interimResults = interimResu lts; } 60 void setInterimResults(bool interimResults) { m_interimResults = interimResu lts; }
61 unsigned long maxAlternatives() { return m_maxAlternatives; } 61 unsigned long maxAlternatives() { return m_maxAlternatives; }
62 void setMaxAlternatives(unsigned long maxAlternatives) { m_maxAlternatives = maxAlternatives; } 62 void setMaxAlternatives(unsigned long maxAlternatives) { m_maxAlternatives = maxAlternatives; }
63 63
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 private: 104 private:
105 explicit SpeechRecognition(ExecutionContext*); 105 explicit SpeechRecognition(ExecutionContext*);
106 106
107 Member<SpeechGrammarList> m_grammars; 107 Member<SpeechGrammarList> m_grammars;
108 String m_lang; 108 String m_lang;
109 bool m_continuous; 109 bool m_continuous;
110 bool m_interimResults; 110 bool m_interimResults;
111 unsigned long m_maxAlternatives; 111 unsigned long m_maxAlternatives;
112 112
113 SpeechRecognitionController* m_controller; 113 RawPtrWillBeMember<SpeechRecognitionController> m_controller;
114 bool m_stoppedByActiveDOMObject; 114 bool m_stoppedByActiveDOMObject;
115 bool m_started; 115 bool m_started;
116 bool m_stopping; 116 bool m_stopping;
117 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; 117 HeapVector<Member<SpeechRecognitionResult> > m_finalResults;
118 }; 118 };
119 119
120 } // namespace WebCore 120 } // namespace WebCore
121 121
122 #endif // SpeechRecognition_h 122 #endif // SpeechRecognition_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698