| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/shell/renderer/test_runner/mock_web_speech_recognizer.h" | 5 #include "components/test_runner/mock_web_speech_recognizer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/shell/renderer/test_runner/web_test_delegate.h" | 8 #include "components/test_runner/web_test_delegate.h" |
| 9 #include "third_party/WebKit/public/web/WebSpeechRecognitionResult.h" | 9 #include "third_party/WebKit/public/web/WebSpeechRecognitionResult.h" |
| 10 #include "third_party/WebKit/public/web/WebSpeechRecognizerClient.h" | 10 #include "third_party/WebKit/public/web/WebSpeechRecognizerClient.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Task class for calling a client function that does not take any parameters. | 16 // Task class for calling a client function that does not take any parameters. |
| 17 typedef void (blink::WebSpeechRecognizerClient::*ClientFunctionPointer)( | 17 typedef void (blink::WebSpeechRecognizerClient::*ClientFunctionPointer)( |
| 18 const blink::WebSpeechRecognitionHandle&); | 18 const blink::WebSpeechRecognitionHandle&); |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 if (object_->task_queue_.empty()) { | 245 if (object_->task_queue_.empty()) { |
| 246 object_->task_queue_running_ = false; | 246 object_->task_queue_running_ = false; |
| 247 return; | 247 return; |
| 248 } | 248 } |
| 249 | 249 |
| 250 object_->delegate_->PostTask(new StepTask(object_)); | 250 object_->delegate_->PostTask(new StepTask(object_)); |
| 251 } | 251 } |
| 252 | 252 |
| 253 } // namespace content | 253 } // namespace content |
| OLD | NEW |