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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 struct DateTimeChooserParameters { | 41 struct DateTimeChooserParameters { |
42 AtomicString type; | 42 AtomicString type; |
43 IntRect anchorRectInRootView; | 43 IntRect anchorRectInRootView; |
44 // Locale name for which the chooser should be localized. This | 44 // Locale name for which the chooser should be localized. This |
45 // might be an invalid name because it comes from HTML lang | 45 // might be an invalid name because it comes from HTML lang |
46 // attributes. | 46 // attributes. |
47 AtomicString locale; | 47 AtomicString locale; |
| 48 // FIXME: Remove. Deprecated in favor of doubleValue. |
48 String currentValue; | 49 String currentValue; |
| 50 double doubleValue; |
49 Vector<String> suggestionValues; | 51 Vector<String> suggestionValues; |
50 Vector<String> localizedSuggestionValues; | 52 Vector<String> localizedSuggestionValues; |
51 Vector<String> suggestionLabels; | 53 Vector<String> suggestionLabels; |
52 double minimum; | 54 double minimum; |
53 double maximum; | 55 double maximum; |
54 double step; | 56 double step; |
55 double stepBase; | 57 double stepBase; |
56 bool required; | 58 bool required; |
57 bool isAnchorElementRTL; | 59 bool isAnchorElementRTL; |
58 }; | 60 }; |
59 | 61 |
60 // For pickers like color pickers and date pickers. | 62 // For pickers like color pickers and date pickers. |
61 class PLATFORM_EXPORT DateTimeChooser : public RefCounted<DateTimeChooser> { | 63 class PLATFORM_EXPORT DateTimeChooser : public RefCounted<DateTimeChooser> { |
62 public: | 64 public: |
63 virtual ~DateTimeChooser(); | 65 virtual ~DateTimeChooser(); |
64 | 66 |
65 virtual void endChooser() = 0; | 67 virtual void endChooser() = 0; |
66 }; | 68 }; |
67 | 69 |
68 } // namespace WebCore | 70 } // namespace WebCore |
69 #endif // DateTimeChooser_h | 71 #endif // DateTimeChooser_h |
OLD | NEW |