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

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

Issue 329853004: Remove RefCountedGarbageCollected from EventTarget objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
35 #include "wtf/Compiler.h" 35 #include "wtf/Compiler.h"
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class ExceptionState; 40 class ExceptionState;
41 class ExecutionContext; 41 class ExecutionContext;
42 class SpeechRecognitionController; 42 class SpeechRecognitionController;
43 class SpeechRecognitionError; 43 class SpeechRecognitionError;
44 44
45 class SpeechRecognition FINAL : public RefCountedGarbageCollected<SpeechRecognit ion>, public ScriptWrappable, public ActiveDOMObject, public EventTargetWithInli neData { 45 class SpeechRecognition FINAL : public GarbageCollectedFinalized<SpeechRecogniti on>, public ScriptWrappable, public ActiveDOMObject, public EventTargetWithInlin eData {
46 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<SpeechRecognition >);
47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition);
48 public: 47 public:
49 static SpeechRecognition* create(ExecutionContext*); 48 static SpeechRecognition* create(ExecutionContext*);
50 virtual ~SpeechRecognition(); 49 virtual ~SpeechRecognition();
51 50
52 // Attributes. 51 // Attributes.
53 SpeechGrammarList* grammars() { return m_grammars.get(); } 52 SpeechGrammarList* grammars() { return m_grammars.get(); }
54 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } 53 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; }
55 String lang() { return m_lang; } 54 String lang() { return m_lang; }
56 void setLang(const String& lang) { m_lang = lang; } 55 void setLang(const String& lang) { m_lang = lang; }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 SpeechRecognitionController* m_controller; 112 SpeechRecognitionController* m_controller;
114 bool m_stoppedByActiveDOMObject; 113 bool m_stoppedByActiveDOMObject;
115 bool m_started; 114 bool m_started;
116 bool m_stopping; 115 bool m_stopping;
117 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; 116 HeapVector<Member<SpeechRecognitionResult> > m_finalResults;
118 }; 117 };
119 118
120 } // namespace WebCore 119 } // namespace WebCore
121 120
122 #endif // SpeechRecognition_h 121 #endif // SpeechRecognition_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698