OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 17 matching lines...) Expand all Loading... |
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 WebTextCheckingResult_h | 31 #ifndef WebTextCheckingResult_h |
32 #define WebTextCheckingResult_h | 32 #define WebTextCheckingResult_h |
33 | 33 |
34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
35 #include "../platform/WebString.h" | 35 #include "../platform/WebString.h" |
36 #include "WebTextDecorationType.h" | 36 #include "WebTextDecorationType.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace blink { |
39 struct TextCheckingResult; | 39 struct TextCheckingResult; |
40 } | 40 } |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 // A checked entry of text checking. | 44 // A checked entry of text checking. |
45 struct WebTextCheckingResult { | 45 struct WebTextCheckingResult { |
46 WebTextCheckingResult() | 46 WebTextCheckingResult() |
47 : decoration(WebTextDecorationTypeSpelling) | 47 : decoration(WebTextDecorationTypeSpelling) |
48 , location(0) | 48 , location(0) |
49 , length(0) | 49 , length(0) |
50 , hash(0) | 50 , hash(0) |
51 { | 51 { |
52 } | 52 } |
53 | 53 |
54 WebTextCheckingResult(WebTextDecorationType decoration, int location, int le
ngth, const WebString& replacement = WebString(), uint32_t hash = 0) | 54 WebTextCheckingResult(WebTextDecorationType decoration, int location, int le
ngth, const WebString& replacement = WebString(), uint32_t hash = 0) |
55 : decoration(decoration) | 55 : decoration(decoration) |
56 , location(location) | 56 , location(location) |
57 , length(length) | 57 , length(length) |
58 , replacement(replacement) | 58 , replacement(replacement) |
59 , hash(hash) | 59 , hash(hash) |
60 { | 60 { |
61 } | 61 } |
62 | 62 |
63 #if BLINK_IMPLEMENTATION | 63 #if BLINK_IMPLEMENTATION |
64 operator WebCore::TextCheckingResult() const; | 64 operator blink::TextCheckingResult() const; |
65 #endif | 65 #endif |
66 | 66 |
67 WebTextDecorationType decoration; | 67 WebTextDecorationType decoration; |
68 int location; | 68 int location; |
69 int length; | 69 int length; |
70 WebString replacement; | 70 WebString replacement; |
71 uint32_t hash; | 71 uint32_t hash; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #endif | 76 #endif |
OLD | NEW |