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

Side by Side Diff: third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 size_t length = grammarList ? static_cast<size_t>(grammarList->length()) : 0U; 64 size_t length = grammarList ? static_cast<size_t>(grammarList->length()) : 0U;
65 WebVector<WebSpeechGrammar> webSpeechGrammars(length); 65 WebVector<WebSpeechGrammar> webSpeechGrammars(length);
66 for (unsigned long i = 0; i < length; ++i) 66 for (unsigned long i = 0; i < length; ++i)
67 webSpeechGrammars[i] = grammarList->item(i); 67 webSpeechGrammars[i] = grammarList->item(i);
68 68
69 WebMediaStreamTrack track; 69 WebMediaStreamTrack track;
70 if (RuntimeEnabledFeatures::mediaStreamSpeechEnabled() && audioTrack) 70 if (RuntimeEnabledFeatures::mediaStreamSpeechEnabled() && audioTrack)
71 track.assign(audioTrack->component()); 71 track.assign(audioTrack->component());
72 WebSpeechRecognitionParams params( 72 WebSpeechRecognitionParams params(
73 webSpeechGrammars, lang, continuous, interimResults, maxAlternatives, 73 webSpeechGrammars, lang, continuous, interimResults, maxAlternatives,
74 track, WebSecurityOrigin( 74 track,
75 recognition->getExecutionContext()->getSecurityOrigin())); 75 WebSecurityOrigin(
76 recognition->getExecutionContext()->getSecurityOrigin()));
76 m_recognizer->start(recognition, params, this); 77 m_recognizer->start(recognition, params, this);
77 } 78 }
78 79
79 void SpeechRecognitionClientProxy::stop(SpeechRecognition* recognition) { 80 void SpeechRecognitionClientProxy::stop(SpeechRecognition* recognition) {
80 m_recognizer->stop(recognition, this); 81 m_recognizer->stop(recognition, this);
81 } 82 }
82 83
83 void SpeechRecognitionClientProxy::abort(SpeechRecognition* recognition) { 84 void SpeechRecognitionClientProxy::abort(SpeechRecognition* recognition) {
84 m_recognizer->abort(recognition, this); 85 m_recognizer->abort(recognition, this);
85 } 86 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 const WebSpeechRecognitionHandle& handle) { 159 const WebSpeechRecognitionHandle& handle) {
159 SpeechRecognition* recognition(handle); 160 SpeechRecognition* recognition(handle);
160 recognition->didEnd(); 161 recognition->didEnd();
161 } 162 }
162 163
163 SpeechRecognitionClientProxy::SpeechRecognitionClientProxy( 164 SpeechRecognitionClientProxy::SpeechRecognitionClientProxy(
164 WebSpeechRecognizer* recognizer) 165 WebSpeechRecognizer* recognizer)
165 : m_recognizer(recognizer) {} 166 : m_recognizer(recognizer) {}
166 167
167 } // namespace blink 168 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/LinkHighlightImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698