OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2011 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef TextChecking_h | 31 #ifndef TextChecking_h |
32 #define TextChecking_h | 32 #define TextChecking_h |
33 | 33 |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "platform/text/TextDecoration.h" | 35 #include "platform/text/TextDecoration.h" |
36 #include "wtf/Allocator.h" | 36 #include "platform/wtf/Allocator.h" |
37 #include "wtf/Vector.h" | 37 #include "platform/wtf/Vector.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "platform/wtf/text/WTFString.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 struct GrammarDetail { | 42 struct GrammarDetail { |
43 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 43 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
44 int location; | 44 int location; |
45 int length; | 45 int length; |
46 Vector<String> guesses; | 46 Vector<String> guesses; |
47 String userDescription; | 47 String userDescription; |
48 }; | 48 }; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 DEFINE_INLINE_VIRTUAL_TRACE() {} | 80 DEFINE_INLINE_VIRTUAL_TRACE() {} |
81 | 81 |
82 virtual const TextCheckingRequestData& data() const = 0; | 82 virtual const TextCheckingRequestData& data() const = 0; |
83 virtual void didSucceed(const Vector<TextCheckingResult>&) = 0; | 83 virtual void didSucceed(const Vector<TextCheckingResult>&) = 0; |
84 virtual void didCancel() = 0; | 84 virtual void didCancel() = 0; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace blink | 87 } // namespace blink |
88 | 88 |
89 #endif // TextChecking_h | 89 #endif // TextChecking_h |
OLD | NEW |