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 14 matching lines...) Expand all Loading... |
25 | 25 |
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 blink { | 32 namespace blink { |
33 | 33 |
34 class SpeechRecognition; | 34 class SpeechRecognition; |
35 class WebSpeechRecognitionResult; | |
36 class WebString; | |
37 | 35 |
38 // WebSpeechRecognitionHandle is used by WebSpeechRecognizer to identify a | 36 // WebSpeechRecognitionHandle is used by WebSpeechRecognizer to identify a |
39 // recognition session, and by WebSpeechRecognizerClient to route | 37 // recognition session, and by WebSpeechRecognizerClient to route |
40 // recognition events. | 38 // recognition events. |
41 class WebSpeechRecognitionHandle { | 39 class WebSpeechRecognitionHandle { |
42 public: | 40 public: |
43 ~WebSpeechRecognitionHandle() { reset(); } | 41 ~WebSpeechRecognitionHandle() { reset(); } |
44 WebSpeechRecognitionHandle() { } | 42 WebSpeechRecognitionHandle() { } |
45 | 43 |
46 WebSpeechRecognitionHandle(const WebSpeechRecognitionHandle& other) { assign
(other); } | 44 WebSpeechRecognitionHandle(const WebSpeechRecognitionHandle& other) { assign
(other); } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 76 } |
79 | 77 |
80 inline bool operator<(const WebSpeechRecognitionHandle& a, const WebSpeechRecogn
itionHandle& b) | 78 inline bool operator<(const WebSpeechRecognitionHandle& a, const WebSpeechRecogn
itionHandle& b) |
81 { | 79 { |
82 return a.lessThan(b); | 80 return a.lessThan(b); |
83 } | 81 } |
84 | 82 |
85 } // namespace blink | 83 } // namespace blink |
86 | 84 |
87 #endif // WebSpeechRecognitionHandle_h | 85 #endif // WebSpeechRecognitionHandle_h |
OLD | NEW |