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

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

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years 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
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 Page; 45 class Page;
46 class SpeechRecognitionController; 46 class SpeechRecognitionController;
47 class SpeechRecognitionError; 47 class SpeechRecognitionError;
48 48
49 class MODULES_EXPORT SpeechRecognition final : public EventTargetWithInlineData, 49 class MODULES_EXPORT SpeechRecognition final
50 public ActiveScriptWrappable, 50 : public EventTargetWithInlineData,
51 public SuspendableObject { 51 public ActiveScriptWrappable<SpeechRecognition>,
52 public SuspendableObject {
52 USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); 53 USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition);
53 DEFINE_WRAPPERTYPEINFO(); 54 DEFINE_WRAPPERTYPEINFO();
54 55
55 public: 56 public:
56 static SpeechRecognition* create(ExecutionContext*); 57 static SpeechRecognition* create(ExecutionContext*);
57 ~SpeechRecognition() override; 58 ~SpeechRecognition() override;
58 59
59 // SpeechRecognition.idl implemementation. 60 // SpeechRecognition.idl implemementation.
60 // Attributes. 61 // Attributes.
61 SpeechGrammarList* grammars() { return m_grammars; } 62 SpeechGrammarList* grammars() { return m_grammars; }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 Member<SpeechRecognitionController> m_controller; 135 Member<SpeechRecognitionController> m_controller;
135 bool m_started; 136 bool m_started;
136 bool m_stopping; 137 bool m_stopping;
137 HeapVector<Member<SpeechRecognitionResult>> m_finalResults; 138 HeapVector<Member<SpeechRecognitionResult>> m_finalResults;
138 }; 139 };
139 140
140 } // namespace blink 141 } // namespace blink
141 142
142 #endif // SpeechRecognition_h 143 #endif // SpeechRecognition_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698