| 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 29 matching lines...) Expand all Loading... |
| 40 class AXObject; | 40 class AXObject; |
| 41 | 41 |
| 42 struct DateTimeSuggestion { | 42 struct DateTimeSuggestion { |
| 43 double value; | 43 double value; |
| 44 String localizedValue; | 44 String localizedValue; |
| 45 String label; | 45 String label; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 struct DateTimeChooserParameters { | 48 struct DateTimeChooserParameters { |
| 49 AtomicString type; | 49 AtomicString type; |
| 50 IntRect anchorRectInRootView; | 50 IntRect anchorRectInRootFrame; |
| 51 IntRect anchorRectInScreen; |
| 51 // Locale name for which the chooser should be localized. This | 52 // Locale name for which the chooser should be localized. This |
| 52 // might be an invalid name because it comes from HTML lang | 53 // might be an invalid name because it comes from HTML lang |
| 53 // attributes. | 54 // attributes. |
| 54 AtomicString locale; | 55 AtomicString locale; |
| 55 // FIXME: Remove. Deprecated in favor of doubleValue. | 56 // FIXME: Remove. Deprecated in favor of doubleValue. |
| 56 String currentValue; | 57 String currentValue; |
| 57 double doubleValue; | 58 double doubleValue; |
| 58 Vector<DateTimeSuggestion> suggestions; | 59 Vector<DateTimeSuggestion> suggestions; |
| 59 double minimum; | 60 double minimum; |
| 60 double maximum; | 61 double maximum; |
| 61 double step; | 62 double step; |
| 62 double stepBase; | 63 double stepBase; |
| 63 bool required; | 64 bool required; |
| 64 bool isAnchorElementRTL; | 65 bool isAnchorElementRTL; |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 // For pickers like color pickers and date pickers. | 68 // For pickers like color pickers and date pickers. |
| 68 class DateTimeChooser : public RefCounted<DateTimeChooser> { | 69 class DateTimeChooser : public RefCounted<DateTimeChooser> { |
| 69 public: | 70 public: |
| 70 virtual ~DateTimeChooser(); | 71 virtual ~DateTimeChooser(); |
| 71 | 72 |
| 72 virtual void endChooser() = 0; | 73 virtual void endChooser() = 0; |
| 73 // Returns a root AXObject in the DateTimeChooser if it's available. | 74 // Returns a root AXObject in the DateTimeChooser if it's available. |
| 74 virtual AXObject* rootAXObject() = 0; | 75 virtual AXObject* rootAXObject() = 0; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace blink | 78 } // namespace blink |
| 78 #endif // DateTimeChooser_h | 79 #endif // DateTimeChooser_h |
| OLD | NEW |