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

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: 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 28 matching lines...) Expand all
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 String currentValue; 48 String currentValue;
49 double doubleValue;
tkent 2013/11/07 19:42:07 Will you remove |String currentValue|?
keishi 2013/11/07 20:04:11 Yes. Added comment
49 Vector<String> suggestionValues; 50 Vector<String> suggestionValues;
50 Vector<String> localizedSuggestionValues; 51 Vector<String> localizedSuggestionValues;
51 Vector<String> suggestionLabels; 52 Vector<String> suggestionLabels;
52 double minimum; 53 double minimum;
53 double maximum; 54 double maximum;
54 double step; 55 double step;
55 double stepBase; 56 double stepBase;
56 bool required; 57 bool required;
57 bool isAnchorElementRTL; 58 bool isAnchorElementRTL;
58 }; 59 };
59 60
60 // For pickers like color pickers and date pickers. 61 // For pickers like color pickers and date pickers.
61 class PLATFORM_EXPORT DateTimeChooser : public RefCounted<DateTimeChooser> { 62 class PLATFORM_EXPORT DateTimeChooser : public RefCounted<DateTimeChooser> {
62 public: 63 public:
63 virtual ~DateTimeChooser(); 64 virtual ~DateTimeChooser();
64 65
65 virtual void endChooser() = 0; 66 virtual void endChooser() = 0;
66 }; 67 };
67 68
68 } // namespace WebCore 69 } // namespace WebCore
69 #endif // DateTimeChooser_h 70 #endif // DateTimeChooser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698