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