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

Side by Side Diff: Source/core/html/shadow/PickerIndicatorElement.cpp

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
« no previous file with comments | « Source/core/html/shadow/PickerIndicatorElement.h ('k') | Source/platform/DateTimeChooser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return HTMLDivElement::willRespondToMouseClickEvents(); 93 return HTMLDivElement::willRespondToMouseClickEvents();
94 } 94 }
95 95
96 void PickerIndicatorElement::didChooseValue(const String& value) 96 void PickerIndicatorElement::didChooseValue(const String& value)
97 { 97 {
98 if (!m_pickerIndicatorOwner) 98 if (!m_pickerIndicatorOwner)
99 return; 99 return;
100 m_pickerIndicatorOwner->pickerIndicatorChooseValue(value); 100 m_pickerIndicatorOwner->pickerIndicatorChooseValue(value);
101 } 101 }
102 102
103 void PickerIndicatorElement::didChooseValue(double value)
104 {
105 if (m_pickerIndicatorOwner)
106 m_pickerIndicatorOwner->pickerIndicatorChooseValue(value);
107 }
108
103 void PickerIndicatorElement::didEndChooser() 109 void PickerIndicatorElement::didEndChooser()
104 { 110 {
105 m_chooser.clear(); 111 m_chooser.clear();
106 } 112 }
107 113
108 void PickerIndicatorElement::openPopup() 114 void PickerIndicatorElement::openPopup()
109 { 115 {
110 if (m_chooser) 116 if (m_chooser)
111 return; 117 return;
112 if (!document().page()) 118 if (!document().page())
(...skipping 20 matching lines...) Expand all
133 } 139 }
134 140
135 bool PickerIndicatorElement::isPickerIndicatorElement() const 141 bool PickerIndicatorElement::isPickerIndicatorElement() const
136 { 142 {
137 return true; 143 return true;
138 } 144 }
139 145
140 } 146 }
141 147
142 #endif 148 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/PickerIndicatorElement.h ('k') | Source/platform/DateTimeChooser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698