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 12 matching lines...) Expand all Loading... | |
23 * SUCH DAMAGE. | 23 * SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebDateTimeChooserParams_h | 26 #ifndef WebDateTimeChooserParams_h |
27 #define WebDateTimeChooserParams_h | 27 #define WebDateTimeChooserParams_h |
28 | 28 |
29 #include "../platform/WebRect.h" | 29 #include "../platform/WebRect.h" |
30 #include "../platform/WebString.h" | 30 #include "../platform/WebString.h" |
31 #include "../platform/WebVector.h" | 31 #include "../platform/WebVector.h" |
32 #include "WebDateTimeInputType.h" | 32 #include "WebDateTimeInputType.h" |
33 #include "WebDateTimeSuggestion.h" | |
33 | 34 |
34 namespace WebKit { | 35 namespace WebKit { |
35 | 36 |
36 // This class conveys various information to make date/time chooser UI. | 37 // This class conveys various information to make date/time chooser UI. |
37 // See WebViewClient::openDateTimeChooser. | 38 // See WebViewClient::openDateTimeChooser. |
38 struct WebDateTimeChooserParams { | 39 struct WebDateTimeChooserParams { |
39 // The type of chooser to show. | 40 // The type of chooser to show. |
40 WebDateTimeInputType type; | 41 WebDateTimeInputType type; |
41 // Bounding rectangle of the requester element. | 42 // Bounding rectangle of the requester element. |
42 WebRect anchorRectInScreen; | 43 WebRect anchorRectInScreen; |
43 // The current value of the requester element. | 44 // The current value of the requester element. |
44 WebString currentValue; | 45 double currentValue; |
tkent
2013/11/07 01:43:10
You can't change the type now because it breaks Ch
| |
45 // <datalist> option values associated to the requester element. These | 46 // <datalist> option suggestions associated to the requester element. The |
46 // values should not be shown to users. The vector size might be 0. | 47 // vector size might be 0. |
47 WebVector<WebString> suggestionValues; | 48 WebVector<WebDateTimeSuggestion> suggestions; |
48 // Localized values of <datalist> options associated to the requester | |
49 // element. These values should be shown to users. The vector size must be | |
50 // same as suggestionValues size. | |
51 WebVector<WebString> localizedSuggestionValues; | |
52 // <datalist> option labels associated to the requester element. These | |
53 // values should be shown to users. The vector size must be same as | |
54 // suggestionValues size. | |
55 WebVector<WebString> suggestionLabels; | |
56 // HTMLInputElement::min attribute value parsed in the valusAsNumber rule, | 49 // HTMLInputElement::min attribute value parsed in the valusAsNumber rule, |
57 // that is to say, milliseconds from the epoch for non-month types and | 50 // that is to say, milliseconds from the epoch for non-month types and |
58 // months from the epoch for month type. If the min attribute is missing, | 51 // months from the epoch for month type. If the min attribute is missing, |
59 // this field has the hard minimum limit. | 52 // this field has the hard minimum limit. |
60 double minimum; | 53 double minimum; |
61 // Similar to minimum. | 54 // Similar to minimum. |
62 double maximum; | 55 double maximum; |
63 // Step value represented in milliseconds for non-month types, and | 56 // Step value represented in milliseconds for non-month types, and |
64 // represetnted in months for month type. | 57 // represetnted in months for month type. |
65 double step; | 58 double step; |
(...skipping 11 matching lines...) Expand all Loading... | |
77 , stepBase(0) | 70 , stepBase(0) |
78 , isRequired(false) | 71 , isRequired(false) |
79 , isAnchorElementRTL(false) | 72 , isAnchorElementRTL(false) |
80 { | 73 { |
81 } | 74 } |
82 }; | 75 }; |
83 | 76 |
84 } // namespace WebKit | 77 } // namespace WebKit |
85 | 78 |
86 #endif | 79 #endif |
OLD | NEW |