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 15 matching lines...) Expand all Loading... |
26 #ifndef WebSpeechRecognitionHandle_h | 26 #ifndef WebSpeechRecognitionHandle_h |
27 #define WebSpeechRecognitionHandle_h | 27 #define WebSpeechRecognitionHandle_h |
28 | 28 |
29 #include "../platform/WebCommon.h" | 29 #include "../platform/WebCommon.h" |
30 #include "../platform/WebPrivatePtr.h" | 30 #include "../platform/WebPrivatePtr.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 class SpeechRecognition; | 33 class SpeechRecognition; |
34 } | 34 } |
35 | 35 |
36 namespace WebKit { | 36 namespace blink { |
37 | 37 |
38 class WebSpeechRecognitionResult; | 38 class WebSpeechRecognitionResult; |
39 class WebString; | 39 class WebString; |
40 | 40 |
41 // WebSpeechRecognitionHandle is used by WebSpeechRecognizer to identify a | 41 // WebSpeechRecognitionHandle is used by WebSpeechRecognizer to identify a |
42 // recognition session, and by WebSpeechRecognizerClient to route | 42 // recognition session, and by WebSpeechRecognizerClient to route |
43 // recognition events. | 43 // recognition events. |
44 class WebSpeechRecognitionHandle { | 44 class WebSpeechRecognitionHandle { |
45 public: | 45 public: |
46 ~WebSpeechRecognitionHandle() { reset(); } | 46 ~WebSpeechRecognitionHandle() { reset(); } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 WebKit | 89 } // namespace blink |
90 | 90 |
91 #endif // WebSpeechRecognitionHandle_h | 91 #endif // WebSpeechRecognitionHandle_h |
OLD | NEW |