Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Side by Side Diff: Source/platform/DateTimeChooser.h

Issue 62083004: Transfer date/time value to the chooser as a double (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@datetime3
Patch Set: Fixed Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
Miguel Garcia 2013/11/11 11:35:13 maybe timestampValue?
keishi 2013/11/19 03:28:04 We have never used "timestamp" to describe date/ti
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698