Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: third_party/WebKit/public/platform/WebTextInputInfo.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: dtrainor comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
32 32
33 namespace blink { 33 namespace blink {
34 34
35 struct WebTextInputInfo { 35 struct WebTextInputInfo {
36 WebTextInputType type; 36 WebTextInputType type;
37 int flags; 37 int flags;
38 38
39 // The value of the currently focused input field. 39 // The value of the currently focused input field.
40 WebString value; 40 WebString value;
41 41
42 // The value of the placeholder attribute.
43 WebString placeholder;
44
42 // The cursor position of the current selection start, or the caret position 45 // The cursor position of the current selection start, or the caret position
43 // if nothing is selected. 46 // if nothing is selected.
44 int selectionStart; 47 int selectionStart;
45 48
46 // The cursor position of the current selection end, or the caret position 49 // The cursor position of the current selection end, or the caret position
47 // if nothing is selected. 50 // if nothing is selected.
48 int selectionEnd; 51 int selectionEnd;
49 52
50 // The start position of the current composition, or -1 if there is none. 53 // The start position of the current composition, or -1 if there is none.
51 int compositionStart; 54 int compositionStart;
(...skipping 20 matching lines...) Expand all
72 return a.equals(b); 75 return a.equals(b);
73 } 76 }
74 77
75 inline bool operator!=(const WebTextInputInfo& a, const WebTextInputInfo& b) { 78 inline bool operator!=(const WebTextInputInfo& a, const WebTextInputInfo& b) {
76 return !(a == b); 79 return !(a == b);
77 } 80 }
78 81
79 } // namespace blink 82 } // namespace blink
80 83
81 #endif 84 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698