| OLD | NEW |
| 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 23 matching lines...) Expand all Loading... |
| 34 #include "modules/speech/SpeechRecognitionResultList.h" | 34 #include "modules/speech/SpeechRecognitionResultList.h" |
| 35 #include "platform/weborigin/SecurityOrigin.h" | 35 #include "platform/weborigin/SecurityOrigin.h" |
| 36 #include "public/web/WebSecurityOrigin.h" | 36 #include "public/web/WebSecurityOrigin.h" |
| 37 #include "public/web/WebSpeechGrammar.h" | 37 #include "public/web/WebSpeechGrammar.h" |
| 38 #include "public/web/WebSpeechRecognitionHandle.h" | 38 #include "public/web/WebSpeechRecognitionHandle.h" |
| 39 #include "public/web/WebSpeechRecognitionParams.h" | 39 #include "public/web/WebSpeechRecognitionParams.h" |
| 40 #include "public/web/WebSpeechRecognitionResult.h" | 40 #include "public/web/WebSpeechRecognitionResult.h" |
| 41 #include "public/web/WebSpeechRecognizer.h" | 41 #include "public/web/WebSpeechRecognizer.h" |
| 42 #include "wtf/PassRefPtr.h" | 42 #include "wtf/PassRefPtr.h" |
| 43 | 43 |
| 44 using namespace blink; | |
| 45 | |
| 46 namespace blink { | 44 namespace blink { |
| 47 | 45 |
| 48 SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy() | 46 SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy() |
| 49 { | 47 { |
| 50 } | 48 } |
| 51 | 49 |
| 52 PassOwnPtr<SpeechRecognitionClientProxy> SpeechRecognitionClientProxy::create(We
bSpeechRecognizer* recognizer) | 50 PassOwnPtr<SpeechRecognitionClientProxy> SpeechRecognitionClientProxy::create(We
bSpeechRecognizer* recognizer) |
| 53 { | 51 { |
| 54 return adoptPtr(new SpeechRecognitionClientProxy(recognizer)); | 52 return adoptPtr(new SpeechRecognitionClientProxy(recognizer)); |
| 55 } | 53 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 SpeechRecognition* recognition(handle); | 137 SpeechRecognition* recognition(handle); |
| 140 recognition->didEnd(); | 138 recognition->didEnd(); |
| 141 } | 139 } |
| 142 | 140 |
| 143 SpeechRecognitionClientProxy::SpeechRecognitionClientProxy(WebSpeechRecognizer*
recognizer) | 141 SpeechRecognitionClientProxy::SpeechRecognitionClientProxy(WebSpeechRecognizer*
recognizer) |
| 144 : m_recognizer(recognizer) | 142 : m_recognizer(recognizer) |
| 145 { | 143 { |
| 146 } | 144 } |
| 147 | 145 |
| 148 } // namespace blink | 146 } // namespace blink |
| OLD | NEW |