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

Side by Side Diff: Source/web/WebSpeechRecognitionResult.cpp

Issue 169343002: [WIP]Add WebPrivateHeapPtr and use it for speech platform layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698