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

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

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 28 matching lines...) Expand all
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class ExceptionState; 42 class ExceptionState;
43 class ExecutionContext; 43 class ExecutionContext;
44 class MediaStreamTrack; 44 class MediaStreamTrack;
45 class SpeechRecognitionController; 45 class SpeechRecognitionController;
46 class SpeechRecognitionError; 46 class SpeechRecognitionError;
47 47
48 class MODULES_EXPORT SpeechRecognition final : public RefCountedGarbageCollected EventTargetWithInlineData<SpeechRecognition>, public PageLifecycleObserver, publ ic ActiveDOMObject { 48 class MODULES_EXPORT SpeechRecognition final : public RefCountedGarbageCollected EventTargetWithInlineData<SpeechRecognition>, public PageLifecycleObserver, publ ic ActiveDOMObject {
49 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S peechRecognition>); 49 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SpeechRecognition);
50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition);
51 DEFINE_WRAPPERTYPEINFO(); 51 DEFINE_WRAPPERTYPEINFO();
52 public: 52 public:
53 static SpeechRecognition* create(ExecutionContext*); 53 static SpeechRecognition* create(ExecutionContext*);
54 virtual ~SpeechRecognition(); 54 virtual ~SpeechRecognition();
55 55
56 // SpeechRecognition.idl implemementation. 56 // SpeechRecognition.idl implemementation.
57 // Attributes. 57 // Attributes.
58 SpeechGrammarList* grammars() { return m_grammars; } 58 SpeechGrammarList* grammars() { return m_grammars; }
59 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } 59 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 RawPtrWillBeMember<SpeechRecognitionController> m_controller; 127 RawPtrWillBeMember<SpeechRecognitionController> m_controller;
128 bool m_stoppedByActiveDOMObject; 128 bool m_stoppedByActiveDOMObject;
129 bool m_started; 129 bool m_started;
130 bool m_stopping; 130 bool m_stopping;
131 HeapVector<Member<SpeechRecognitionResult>> m_finalResults; 131 HeapVector<Member<SpeechRecognitionResult>> m_finalResults;
132 }; 132 };
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // SpeechRecognition_h 136 #endif // SpeechRecognition_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerRegistration.h ('k') | Source/modules/speech/SpeechSynthesis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698