OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 23 matching lines...) Expand all Loading... |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 // This class conveys various information to make date/time chooser UI. | 36 // This class conveys various information to make date/time chooser UI. |
37 // See WebViewClient::openDateTimeChooser. | 37 // See WebViewClient::openDateTimeChooser. |
38 struct WebDateTimeChooserParams { | 38 struct WebDateTimeChooserParams { |
39 // The type of chooser to show. | 39 // The type of chooser to show. |
40 WebDateTimeInputType type; | 40 WebDateTimeInputType type; |
41 // Bounding rectangle of the requester element. | 41 // Bounding rectangle of the requester element. |
42 WebRect anchorRectInScreen; | 42 WebRect anchorRectInScreen; |
43 // The current value of the requester element. | 43 // The current value of the requester element. |
| 44 // FIXME: Remove. Deprecated in favor of doubleValue. |
44 WebString currentValue; | 45 WebString currentValue; |
| 46 // The current value of the requester element as a double. |
| 47 // NaN means empty value. Should not be infinity. |
| 48 double doubleValue; |
45 // <datalist> option values associated to the requester element. These | 49 // <datalist> option values associated to the requester element. These |
46 // values should not be shown to users. The vector size might be 0. | 50 // values should not be shown to users. The vector size might be 0. |
47 WebVector<WebString> suggestionValues; | 51 WebVector<WebString> suggestionValues; |
48 // Localized values of <datalist> options associated to the requester | 52 // Localized values of <datalist> options associated to the requester |
49 // element. These values should be shown to users. The vector size must be | 53 // element. These values should be shown to users. The vector size must be |
50 // same as suggestionValues size. | 54 // same as suggestionValues size. |
51 WebVector<WebString> localizedSuggestionValues; | 55 WebVector<WebString> localizedSuggestionValues; |
52 // <datalist> option labels associated to the requester element. These | 56 // <datalist> option labels associated to the requester element. These |
53 // values should be shown to users. The vector size must be same as | 57 // values should be shown to users. The vector size must be same as |
54 // suggestionValues size. | 58 // suggestionValues size. |
(...skipping 22 matching lines...) Expand all Loading... |
77 , stepBase(0) | 81 , stepBase(0) |
78 , isRequired(false) | 82 , isRequired(false) |
79 , isAnchorElementRTL(false) | 83 , isAnchorElementRTL(false) |
80 { | 84 { |
81 } | 85 } |
82 }; | 86 }; |
83 | 87 |
84 } // namespace blink | 88 } // namespace blink |
85 | 89 |
86 #endif | 90 #endif |
OLD | NEW |