| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // if nothing is selected. | 45 // if nothing is selected. |
| 46 int selectionEnd; | 46 int selectionEnd; |
| 47 | 47 |
| 48 // The start position of the current composition, or -1 if there is none. | 48 // The start position of the current composition, or -1 if there is none. |
| 49 int compositionStart; | 49 int compositionStart; |
| 50 | 50 |
| 51 // The end position of the current composition, or -1 if there is none. | 51 // The end position of the current composition, or -1 if there is none. |
| 52 int compositionEnd; | 52 int compositionEnd; |
| 53 | 53 |
| 54 // The inputmode attribute value of the currently focused input field. | 54 // The inputmode attribute value of the currently focused input field. |
| 55 // This string is lower-case. |
| 55 WebString inputMode; | 56 WebString inputMode; |
| 56 | 57 |
| 57 WEBKIT_EXPORT bool equals(const WebTextInputInfo&) const; | 58 WEBKIT_EXPORT bool equals(const WebTextInputInfo&) const; |
| 58 | 59 |
| 59 WebTextInputInfo() | 60 WebTextInputInfo() |
| 60 : type(WebTextInputTypeNone) | 61 : type(WebTextInputTypeNone) |
| 61 , selectionStart(0) | 62 , selectionStart(0) |
| 62 , selectionEnd(0) | 63 , selectionEnd(0) |
| 63 , compositionStart(-1) | 64 , compositionStart(-1) |
| 64 , compositionEnd(-1) | 65 , compositionEnd(-1) |
| 65 { | 66 { |
| 66 } | 67 } |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 inline bool operator==(const WebTextInputInfo& a, const WebTextInputInfo& b) | 70 inline bool operator==(const WebTextInputInfo& a, const WebTextInputInfo& b) |
| 70 { | 71 { |
| 71 return a.equals(b); | 72 return a.equals(b); |
| 72 } | 73 } |
| 73 | 74 |
| 74 inline bool operator!=(const WebTextInputInfo& a, const WebTextInputInfo& b) | 75 inline bool operator!=(const WebTextInputInfo& a, const WebTextInputInfo& b) |
| 75 { | 76 { |
| 76 return !(a == b); | 77 return !(a == b); |
| 77 } | 78 } |
| 78 | 79 |
| 79 } // namespace WebKit | 80 } // namespace WebKit |
| 80 | 81 |
| 81 #endif | 82 #endif |
| OLD | NEW |