| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 55 | 55 | 
| 56     BLINK_EXPORT void reset(); | 56     BLINK_EXPORT void reset(); | 
| 57     BLINK_EXPORT void assign(const WebSpeechRecognitionHandle&); | 57     BLINK_EXPORT void assign(const WebSpeechRecognitionHandle&); | 
| 58 | 58 | 
| 59     // Comparison functions are provided so that WebSpeechRecognitionHandle obje
    cts | 59     // Comparison functions are provided so that WebSpeechRecognitionHandle obje
    cts | 
| 60     // can be stored in a hash map. | 60     // can be stored in a hash map. | 
| 61     BLINK_EXPORT bool equals(const WebSpeechRecognitionHandle&) const; | 61     BLINK_EXPORT bool equals(const WebSpeechRecognitionHandle&) const; | 
| 62     BLINK_EXPORT bool lessThan(const WebSpeechRecognitionHandle&) const; | 62     BLINK_EXPORT bool lessThan(const WebSpeechRecognitionHandle&) const; | 
| 63 | 63 | 
| 64 #if BLINK_IMPLEMENTATION | 64 #if BLINK_IMPLEMENTATION | 
| 65     WebSpeechRecognitionHandle(const WTF::PassRefPtr<WebCore::SpeechRecognition>
    &); | 65     explicit WebSpeechRecognitionHandle(const PassRefPtrWillBeRawPtr<WebCore::Sp
    eechRecognition>&); | 
| 66     WebSpeechRecognitionHandle& operator=(const WTF::PassRefPtr<WebCore::SpeechR
    ecognition>&); | 66     WebSpeechRecognitionHandle& operator=(const PassRefPtrWillBeRawPtr<WebCore::
    SpeechRecognition>&); | 
| 67     operator WTF::PassRefPtr<WebCore::SpeechRecognition>() const; | 67     operator PassRefPtrWillBeRawPtr<WebCore::SpeechRecognition>() const; | 
| 68 #endif | 68 #endif | 
| 69 | 69 | 
| 70 private: | 70 private: | 
| 71     WebPrivatePtr<WebCore::SpeechRecognition> m_private; | 71     WebPrivatePtr<WebCore::SpeechRecognition> m_private; | 
| 72 }; | 72 }; | 
| 73 | 73 | 
| 74 inline bool operator==(const WebSpeechRecognitionHandle& a, const WebSpeechRecog
    nitionHandle& b) | 74 inline bool operator==(const WebSpeechRecognitionHandle& a, const WebSpeechRecog
    nitionHandle& b) | 
| 75 { | 75 { | 
| 76     return a.equals(b); | 76     return a.equals(b); | 
| 77 } | 77 } | 
| 78 | 78 | 
| 79 inline bool operator!=(const WebSpeechRecognitionHandle& a, const WebSpeechRecog
    nitionHandle& b) | 79 inline bool operator!=(const WebSpeechRecognitionHandle& a, const WebSpeechRecog
    nitionHandle& b) | 
| 80 { | 80 { | 
| 81     return !(a == b); | 81     return !(a == b); | 
| 82 } | 82 } | 
| 83 | 83 | 
| 84 inline bool operator<(const WebSpeechRecognitionHandle& a, const WebSpeechRecogn
    itionHandle& b) | 84 inline bool operator<(const WebSpeechRecognitionHandle& a, const WebSpeechRecogn
    itionHandle& b) | 
| 85 { | 85 { | 
| 86     return a.lessThan(b); | 86     return a.lessThan(b); | 
| 87 } | 87 } | 
| 88 | 88 | 
| 89 } // namespace blink | 89 } // namespace blink | 
| 90 | 90 | 
| 91 #endif // WebSpeechRecognitionHandle_h | 91 #endif // WebSpeechRecognitionHandle_h | 
| OLD | NEW | 
|---|