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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 WebSpeechRecognitionHandle& operator=( | 47 WebSpeechRecognitionHandle& operator=( |
48 const WebSpeechRecognitionHandle& other) { | 48 const WebSpeechRecognitionHandle& other) { |
49 assign(other); | 49 assign(other); |
50 return *this; | 50 return *this; |
51 } | 51 } |
52 | 52 |
53 BLINK_EXPORT void reset(); | 53 BLINK_EXPORT void reset(); |
54 BLINK_EXPORT void assign(const WebSpeechRecognitionHandle&); | 54 BLINK_EXPORT void assign(const WebSpeechRecognitionHandle&); |
55 | 55 |
56 // Comparison functions are provided so that WebSpeechRecognitionHandle object
s | 56 // Comparison functions are provided so that WebSpeechRecognitionHandle |
57 // can be stored in a hash map. | 57 // objects can be stored in a hash map. |
58 BLINK_EXPORT bool equals(const WebSpeechRecognitionHandle&) const; | 58 BLINK_EXPORT bool equals(const WebSpeechRecognitionHandle&) const; |
59 BLINK_EXPORT bool lessThan(const WebSpeechRecognitionHandle&) const; | 59 BLINK_EXPORT bool lessThan(const WebSpeechRecognitionHandle&) const; |
60 | 60 |
61 #if BLINK_IMPLEMENTATION | 61 #if BLINK_IMPLEMENTATION |
62 WebSpeechRecognitionHandle(SpeechRecognition*); | 62 WebSpeechRecognitionHandle(SpeechRecognition*); |
63 operator SpeechRecognition*() const; | 63 operator SpeechRecognition*() const; |
64 #endif | 64 #endif |
65 | 65 |
66 private: | 66 private: |
67 WebPrivatePtr<SpeechRecognition> m_private; | 67 WebPrivatePtr<SpeechRecognition> m_private; |
(...skipping 10 matching lines...) Expand all Loading... |
78 } | 78 } |
79 | 79 |
80 inline bool operator<(const WebSpeechRecognitionHandle& a, | 80 inline bool operator<(const WebSpeechRecognitionHandle& a, |
81 const WebSpeechRecognitionHandle& b) { | 81 const WebSpeechRecognitionHandle& b) { |
82 return a.lessThan(b); | 82 return a.lessThan(b); |
83 } | 83 } |
84 | 84 |
85 } // namespace blink | 85 } // namespace blink |
86 | 86 |
87 #endif // WebSpeechRecognitionHandle_h | 87 #endif // WebSpeechRecognitionHandle_h |
OLD | NEW |