| 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 18 matching lines...) Expand all Loading... |
| 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 blink { | 38 namespace blink { |
| 39 |
| 39 struct TextCheckingResult; | 40 struct TextCheckingResult; |
| 40 } | |
| 41 | |
| 42 namespace blink { | |
| 43 | 41 |
| 44 // A checked entry of text checking. | 42 // A checked entry of text checking. |
| 45 struct WebTextCheckingResult { | 43 struct WebTextCheckingResult { |
| 46 WebTextCheckingResult() | 44 WebTextCheckingResult() |
| 47 : decoration(WebTextDecorationTypeSpelling) | 45 : decoration(WebTextDecorationTypeSpelling) |
| 48 , location(0) | 46 , location(0) |
| 49 , length(0) | 47 , length(0) |
| 50 , hash(0) | 48 , hash(0) |
| 51 { | 49 { |
| 52 } | 50 } |
| 53 | 51 |
| 54 WebTextCheckingResult(WebTextDecorationType decoration, int location, int le
ngth, const WebString& replacement = WebString(), uint32_t hash = 0) | 52 WebTextCheckingResult(WebTextDecorationType decoration, int location, int le
ngth, const WebString& replacement = WebString(), uint32_t hash = 0) |
| 55 : decoration(decoration) | 53 : decoration(decoration) |
| 56 , location(location) | 54 , location(location) |
| 57 , length(length) | 55 , length(length) |
| 58 , replacement(replacement) | 56 , replacement(replacement) |
| 59 , hash(hash) | 57 , hash(hash) |
| 60 { | 58 { |
| 61 } | 59 } |
| 62 | 60 |
| 63 #if BLINK_IMPLEMENTATION | 61 #if BLINK_IMPLEMENTATION |
| 64 operator blink::TextCheckingResult() const; | 62 operator TextCheckingResult() const; |
| 65 #endif | 63 #endif |
| 66 | 64 |
| 67 WebTextDecorationType decoration; | 65 WebTextDecorationType decoration; |
| 68 int location; | 66 int location; |
| 69 int length; | 67 int length; |
| 70 WebString replacement; | 68 WebString replacement; |
| 71 uint32_t hash; | 69 uint32_t hash; |
| 72 }; | 70 }; |
| 73 | 71 |
| 74 } // namespace blink | 72 } // namespace blink |
| 75 | 73 |
| 76 #endif | 74 #endif |
| OLD | NEW |