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

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

Issue 21735005: Use "int" instead of "long" for bindings where the WebIDL uses "long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // Attributes. 52 // Attributes.
53 PassRefPtr<SpeechGrammarList> grammars() { return m_grammars; } 53 PassRefPtr<SpeechGrammarList> grammars() { return m_grammars; }
54 void setGrammars(PassRefPtr<SpeechGrammarList> grammars) { m_grammars = gram mars; } 54 void setGrammars(PassRefPtr<SpeechGrammarList> grammars) { m_grammars = gram mars; }
55 String lang() { return m_lang; } 55 String lang() { return m_lang; }
56 void setLang(const String& lang) { m_lang = lang; } 56 void setLang(const String& lang) { m_lang = lang; }
57 bool continuous() { return m_continuous; } 57 bool continuous() { return m_continuous; }
58 void setContinuous(bool continuous) { m_continuous = continuous; } 58 void setContinuous(bool continuous) { m_continuous = continuous; }
59 bool interimResults() { return m_interimResults; } 59 bool interimResults() { return m_interimResults; }
60 void setInterimResults(bool interimResults) { m_interimResults = interimResu lts; } 60 void setInterimResults(bool interimResults) { m_interimResults = interimResu lts; }
61 unsigned long maxAlternatives() { return m_maxAlternatives; } 61 unsigned maxAlternatives() { return m_maxAlternatives; }
62 void setMaxAlternatives(unsigned long maxAlternatives) { m_maxAlternatives = maxAlternatives; } 62 void setMaxAlternatives(unsigned maxAlternatives) { m_maxAlternatives = maxA lternatives; }
63 63
64 // Callable by the user. 64 // Callable by the user.
65 void start(ExceptionState&); 65 void start(ExceptionState&);
66 void stopFunction(); 66 void stopFunction();
67 void abort(); 67 void abort();
68 68
69 // Called by the SpeechRecognitionClient. 69 // Called by the SpeechRecognitionClient.
70 void didStartAudio(); 70 void didStartAudio();
71 void didStartSound(); 71 void didStartSound();
72 void didStartSpeech(); 72 void didStartSpeech();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // EventTarget 110 // EventTarget
111 virtual void refEventTarget() OVERRIDE { ref(); } 111 virtual void refEventTarget() OVERRIDE { ref(); }
112 virtual void derefEventTarget() OVERRIDE { deref(); } 112 virtual void derefEventTarget() OVERRIDE { deref(); }
113 virtual EventTargetData* eventTargetData() OVERRIDE { return &m_eventTargetD ata; } 113 virtual EventTargetData* eventTargetData() OVERRIDE { return &m_eventTargetD ata; }
114 virtual EventTargetData* ensureEventTargetData() OVERRIDE { return &m_eventT argetData; } 114 virtual EventTargetData* ensureEventTargetData() OVERRIDE { return &m_eventT argetData; }
115 115
116 RefPtr<SpeechGrammarList> m_grammars; 116 RefPtr<SpeechGrammarList> m_grammars;
117 String m_lang; 117 String m_lang;
118 bool m_continuous; 118 bool m_continuous;
119 bool m_interimResults; 119 bool m_interimResults;
120 unsigned long m_maxAlternatives; 120 unsigned m_maxAlternatives;
121 121
122 EventTargetData m_eventTargetData; 122 EventTargetData m_eventTargetData;
123 123
124 SpeechRecognitionController* m_controller; 124 SpeechRecognitionController* m_controller;
125 bool m_stoppedByActiveDOMObject; 125 bool m_stoppedByActiveDOMObject;
126 bool m_started; 126 bool m_started;
127 bool m_stopping; 127 bool m_stopping;
128 Vector<RefPtr<SpeechRecognitionResult> > m_finalResults; 128 Vector<RefPtr<SpeechRecognitionResult> > m_finalResults;
129 }; 129 };
130 130
131 } // namespace WebCore 131 } // namespace WebCore
132 132
133 #endif // SpeechRecognition_h 133 #endif // SpeechRecognition_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechGrammarList.cpp ('k') | Source/modules/speech/SpeechRecognitionResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698