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

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 26 matching lines...) Expand all
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class ExceptionState; 42 class ExceptionState;
43 class ExecutionContext; 43 class ExecutionContext;
44 class SpeechRecognitionController; 44 class SpeechRecognitionController;
45 class SpeechRecognitionError; 45 class SpeechRecognitionError;
46 46
47 class SpeechRecognition FINAL : public RefCountedWillBeRefCountedGarbageCollecte d<SpeechRecognition>, public ScriptWrappable, public ActiveDOMObject, public Eve ntTargetWithInlineData { 47 class SpeechRecognition FINAL : public RefCountedWillBeGarbageCollectedFinalized <SpeechRecognition>, public ScriptWrappable, public ActiveDOMObject, public Even tTargetWithInlineData {
48 REFCOUNTED_EVENT_TARGET(SpeechRecognition); 48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<SpeechRecognition >);
49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition);
50 public: 50 public:
51 static PassRefPtrWillBeRawPtr<SpeechRecognition> create(ExecutionContext*); 51 static PassRefPtrWillBeRawPtr<SpeechRecognition> create(ExecutionContext*);
52 virtual ~SpeechRecognition(); 52 virtual ~SpeechRecognition();
53 53
54 // Attributes. 54 // Attributes.
55 SpeechGrammarList* grammars() { return m_grammars.get(); } 55 SpeechGrammarList* grammars() { return m_grammars.get(); }
56 void setGrammars(PassRefPtrWillBeRawPtr<SpeechGrammarList> grammars) { m_gra mmars = grammars; } 56 void setGrammars(PassRefPtrWillBeRawPtr<SpeechGrammarList> grammars) { m_gra mmars = grammars; }
57 String lang() { return m_lang; } 57 String lang() { return m_lang; }
58 void setLang(const String& lang) { m_lang = lang; } 58 void setLang(const String& lang) { m_lang = lang; }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 SpeechRecognitionController* m_controller; 117 SpeechRecognitionController* m_controller;
118 bool m_stoppedByActiveDOMObject; 118 bool m_stoppedByActiveDOMObject;
119 bool m_started; 119 bool m_started;
120 bool m_stopping; 120 bool m_stopping;
121 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult s; 121 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult s;
122 }; 122 };
123 123
124 } // namespace WebCore 124 } // namespace WebCore
125 125
126 #endif // SpeechRecognition_h 126 #endif // SpeechRecognition_h
OLDNEW
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698