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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 bool WebSpeechRecognitionHandle::lessThan(const WebSpeechRecognitionHandle& othe
r) const | 48 bool WebSpeechRecognitionHandle::lessThan(const WebSpeechRecognitionHandle& othe
r) const |
49 { | 49 { |
50 return m_private.get() < other.m_private.get(); | 50 return m_private.get() < other.m_private.get(); |
51 } | 51 } |
52 | 52 |
53 WebSpeechRecognitionHandle::WebSpeechRecognitionHandle(SpeechRecognition* speech
Recognition) | 53 WebSpeechRecognitionHandle::WebSpeechRecognitionHandle(SpeechRecognition* speech
Recognition) |
54 : m_private(speechRecognition) | 54 : m_private(speechRecognition) |
55 { | 55 { |
56 } | 56 } |
57 | 57 |
58 WebSpeechRecognitionHandle& WebSpeechRecognitionHandle::operator=(SpeechRecognit
ion* speechRecognition) | |
59 { | |
60 m_private = speechRecognition; | |
61 return *this; | |
62 } | |
63 | |
64 WebSpeechRecognitionHandle::operator SpeechRecognition*() const | 58 WebSpeechRecognitionHandle::operator SpeechRecognition*() const |
65 { | 59 { |
66 return m_private.get(); | 60 return m_private.get(); |
67 } | 61 } |
68 | 62 |
69 } // namespace blink | 63 } // namespace blink |
OLD | NEW |