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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 alternatives[i] = WebCore::SpeechRecognitionAlternative::create(transcri pts[i], confidences[i]); | 60 alternatives[i] = WebCore::SpeechRecognitionAlternative::create(transcri pts[i], confidences[i]); |
61 | 61 |
62 m_private = WebCore::SpeechRecognitionResult::create(alternatives, final); | 62 m_private = WebCore::SpeechRecognitionResult::create(alternatives, final); |
63 } | 63 } |
64 | 64 |
65 void WebSpeechRecognitionResult::reset() | 65 void WebSpeechRecognitionResult::reset() |
66 { | 66 { |
67 m_private.reset(); | 67 m_private.reset(); |
68 } | 68 } |
69 | 69 |
70 WebSpeechRecognitionResult::operator PassRefPtr<WebCore::SpeechRecognitionResult >() const | 70 WebSpeechRecognitionResult::operator PassRefPtrWillBeRawPtr<WebCore::SpeechRecog nitionResult>() const |
haraken
2014/02/17 09:04:57
I'm afraid that this implicit conversion will lead
| |
71 { | 71 { |
72 return m_private.get(); | 72 return m_private.get(); |
73 } | 73 } |
74 | 74 |
75 } // namespace blink | 75 } // namespace blink |
OLD | NEW |