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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 25 matching lines...) Expand all
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class ExceptionState; 39 class ExceptionState;
40 class ExecutionContext; 40 class ExecutionContext;
41 class SpeechRecognitionController; 41 class SpeechRecognitionController;
42 class SpeechRecognitionError; 42 class SpeechRecognitionError;
43 43
44 class SpeechRecognition FINAL : public RefCountedGarbageCollectedWillBeGarbageCo llectedFinalized<SpeechRecognition>, public ActiveDOMObject, public EventTargetW ithInlineData { 44 class SpeechRecognition FINAL : public RefCountedGarbageCollectedWillBeGarbageCo llectedFinalized<SpeechRecognition>, public ActiveDOMObject, public EventTargetW ithInlineData {
45 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S peechRecognition>); 45 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S peechRecognition>);
46 DEFINE_WRAPPERTYPEINFO();
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); 47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition);
47 public: 48 public:
48 static SpeechRecognition* create(ExecutionContext*); 49 static SpeechRecognition* create(ExecutionContext*);
49 virtual ~SpeechRecognition(); 50 virtual ~SpeechRecognition();
50 51
51 // Attributes. 52 // Attributes.
52 SpeechGrammarList* grammars() { return m_grammars; } 53 SpeechGrammarList* grammars() { return m_grammars; }
53 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } 54 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; }
54 String lang() { return m_lang; } 55 String lang() { return m_lang; }
55 void setLang(const String& lang) { m_lang = lang; } 56 void setLang(const String& lang) { m_lang = lang; }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 RawPtrWillBeMember<SpeechRecognitionController> m_controller; 113 RawPtrWillBeMember<SpeechRecognitionController> m_controller;
113 bool m_stoppedByActiveDOMObject; 114 bool m_stoppedByActiveDOMObject;
114 bool m_started; 115 bool m_started;
115 bool m_stopping; 116 bool m_stopping;
116 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; 117 HeapVector<Member<SpeechRecognitionResult> > m_finalResults;
117 }; 118 };
118 119
119 } // namespace blink 120 } // namespace blink
120 121
121 #endif // SpeechRecognition_h 122 #endif // SpeechRecognition_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechGrammarList.h ('k') | Source/modules/speech/SpeechRecognitionAlternative.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698