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 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef DateTimeChooser_h | 31 #ifndef DateTimeChooser_h |
32 #define DateTimeChooser_h | 32 #define DateTimeChooser_h |
33 | 33 |
34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
35 #include "platform/geometry/IntRect.h" | 35 #include "platform/geometry/IntRect.h" |
| 36 #include "wtf/Allocator.h" |
36 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
37 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 | 41 |
41 class AXObject; | 42 class AXObject; |
42 | 43 |
43 struct DateTimeSuggestion { | 44 struct DateTimeSuggestion { |
| 45 ALLOW_ONLY_INLINE_ALLOCATION(); |
44 double value; | 46 double value; |
45 String localizedValue; | 47 String localizedValue; |
46 String label; | 48 String label; |
47 }; | 49 }; |
48 | 50 |
49 struct DateTimeChooserParameters { | 51 struct DateTimeChooserParameters { |
| 52 DISALLOW_ALLOCATION(); |
50 AtomicString type; | 53 AtomicString type; |
51 IntRect anchorRectInRootFrame; | 54 IntRect anchorRectInRootFrame; |
52 IntRect anchorRectInScreen; | 55 IntRect anchorRectInScreen; |
53 // Locale name for which the chooser should be localized. This | 56 // Locale name for which the chooser should be localized. This |
54 // might be an invalid name because it comes from HTML lang | 57 // might be an invalid name because it comes from HTML lang |
55 // attributes. | 58 // attributes. |
56 AtomicString locale; | 59 AtomicString locale; |
57 // FIXME: Remove. Deprecated in favor of doubleValue. | 60 // FIXME: Remove. Deprecated in favor of doubleValue. |
58 String currentValue; | 61 String currentValue; |
59 double doubleValue; | 62 double doubleValue; |
(...skipping 11 matching lines...) Expand all Loading... |
71 public: | 74 public: |
72 virtual ~DateTimeChooser(); | 75 virtual ~DateTimeChooser(); |
73 | 76 |
74 virtual void endChooser() = 0; | 77 virtual void endChooser() = 0; |
75 // Returns a root AXObject in the DateTimeChooser if it's available. | 78 // Returns a root AXObject in the DateTimeChooser if it's available. |
76 virtual AXObject* rootAXObject() = 0; | 79 virtual AXObject* rootAXObject() = 0; |
77 }; | 80 }; |
78 | 81 |
79 } // namespace blink | 82 } // namespace blink |
80 #endif // DateTimeChooser_h | 83 #endif // DateTimeChooser_h |
OLD | NEW |