| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 struct WebTextInputInfo { | 34 struct WebTextInputInfo { |
| 35 WebTextInputType type; | 35 WebTextInputType type; |
| 36 int flags; | 36 int flags; |
| 37 | 37 |
| 38 // The value of the currently focused input field. | 38 // The value of the currently focused input field. |
| 39 WebString value; | 39 WebString value; |
| 40 | 40 |
| 41 // The value of the placeholder attribute. |
| 42 WebString placeholder; |
| 43 |
| 41 // The cursor position of the current selection start, or the caret position | 44 // The cursor position of the current selection start, or the caret position |
| 42 // if nothing is selected. | 45 // if nothing is selected. |
| 43 int selectionStart; | 46 int selectionStart; |
| 44 | 47 |
| 45 // The cursor position of the current selection end, or the caret position | 48 // The cursor position of the current selection end, or the caret position |
| 46 // if nothing is selected. | 49 // if nothing is selected. |
| 47 int selectionEnd; | 50 int selectionEnd; |
| 48 | 51 |
| 49 // The start position of the current composition, or -1 if there is none. | 52 // The start position of the current composition, or -1 if there is none. |
| 50 int compositionStart; | 53 int compositionStart; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 75 } | 78 } |
| 76 | 79 |
| 77 inline bool operator!=(const WebTextInputInfo& a, const WebTextInputInfo& b) | 80 inline bool operator!=(const WebTextInputInfo& a, const WebTextInputInfo& b) |
| 78 { | 81 { |
| 79 return !(a == b); | 82 return !(a == b); |
| 80 } | 83 } |
| 81 | 84 |
| 82 } // namespace blink | 85 } // namespace blink |
| 83 | 86 |
| 84 #endif | 87 #endif |
| OLD | NEW |