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 "platform/heap/Handle.h" |
36 #include "wtf/Allocator.h" | 37 #include "wtf/Allocator.h" |
37 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
38 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
39 | 40 |
40 namespace blink { | 41 namespace blink { |
41 | 42 |
42 class AXObject; | 43 class AXObject; |
43 | 44 |
44 struct DateTimeSuggestion { | 45 struct DateTimeSuggestion { |
45 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 46 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
(...skipping 17 matching lines...) Expand all Loading... |
63 Vector<DateTimeSuggestion> suggestions; | 64 Vector<DateTimeSuggestion> suggestions; |
64 double minimum; | 65 double minimum; |
65 double maximum; | 66 double maximum; |
66 double step; | 67 double step; |
67 double stepBase; | 68 double stepBase; |
68 bool required; | 69 bool required; |
69 bool isAnchorElementRTL; | 70 bool isAnchorElementRTL; |
70 }; | 71 }; |
71 | 72 |
72 // For pickers like color pickers and date pickers. | 73 // For pickers like color pickers and date pickers. |
73 class CORE_EXPORT DateTimeChooser : public RefCounted<DateTimeChooser> { | 74 class CORE_EXPORT DateTimeChooser : public RefCountedWillBeGarbageCollectedFinal
ized<DateTimeChooser> { |
74 public: | 75 public: |
75 virtual ~DateTimeChooser(); | 76 virtual ~DateTimeChooser(); |
76 | 77 |
77 virtual void endChooser() = 0; | 78 virtual void endChooser() = 0; |
78 // Returns a root AXObject in the DateTimeChooser if it's available. | 79 // Returns a root AXObject in the DateTimeChooser if it's available. |
79 virtual AXObject* rootAXObject() = 0; | 80 virtual AXObject* rootAXObject() = 0; |
| 81 |
| 82 DEFINE_INLINE_VIRTUAL_TRACE() { } |
80 }; | 83 }; |
81 | 84 |
82 } // namespace blink | 85 } // namespace blink |
83 #endif // DateTimeChooser_h | 86 #endif // DateTimeChooser_h |
OLD | NEW |