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

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

Issue 717413002: Use "unsigned" rather than "unsigned long" for C++ code interacting with WebIDL's "unsigned long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // SpeechRecognition.idl implemementation. 53 // SpeechRecognition.idl implemementation.
54 // Attributes. 54 // Attributes.
55 SpeechGrammarList* grammars() { return m_grammars; } 55 SpeechGrammarList* grammars() { return m_grammars; }
56 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } 56 void setGrammars(SpeechGrammarList* grammars) { m_grammars = 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; }
59 bool continuous() { return m_continuous; } 59 bool continuous() { return m_continuous; }
60 void setContinuous(bool continuous) { m_continuous = continuous; } 60 void setContinuous(bool continuous) { m_continuous = continuous; }
61 bool interimResults() { return m_interimResults; } 61 bool interimResults() { return m_interimResults; }
62 void setInterimResults(bool interimResults) { m_interimResults = interimResu lts; } 62 void setInterimResults(bool interimResults) { m_interimResults = interimResu lts; }
63 unsigned long maxAlternatives() { return m_maxAlternatives; } 63 unsigned maxAlternatives() { return m_maxAlternatives; }
64 void setMaxAlternatives(unsigned long maxAlternatives) { m_maxAlternatives = maxAlternatives; } 64 void setMaxAlternatives(unsigned maxAlternatives) { m_maxAlternatives = maxA lternatives; }
65 MediaStreamTrack* audioTrack() { return m_audioTrack; } 65 MediaStreamTrack* audioTrack() { return m_audioTrack; }
66 void setAudioTrack(MediaStreamTrack* audioTrack) { m_audioTrack = audioTrack ; } 66 void setAudioTrack(MediaStreamTrack* audioTrack) { m_audioTrack = audioTrack ; }
67 67
68 // Callable by the user. 68 // Callable by the user.
69 void start(ExceptionState&); 69 void start(ExceptionState&);
70 void stopFunction(); 70 void stopFunction();
71 void abort(); 71 void abort();
72 72
73 // Called by the SpeechRecognitionClient. 73 // Called by the SpeechRecognitionClient.
74 void didStartAudio(); 74 void didStartAudio();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 RawPtrWillBeMember<SpeechRecognitionController> m_controller; 118 RawPtrWillBeMember<SpeechRecognitionController> m_controller;
119 bool m_stoppedByActiveDOMObject; 119 bool m_stoppedByActiveDOMObject;
120 bool m_started; 120 bool m_started;
121 bool m_stopping; 121 bool m_stopping;
122 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; 122 HeapVector<Member<SpeechRecognitionResult> > m_finalResults;
123 }; 123 };
124 124
125 } // namespace blink 125 } // namespace blink
126 126
127 #endif // SpeechRecognition_h 127 #endif // SpeechRecognition_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechGrammarList.cpp ('k') | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698