| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 122 } |
| 123 | 123 |
| 124 addString("<!DOCTYPE html><head><meta charset='UTF-8'><style>\n", data); | 124 addString("<!DOCTYPE html><head><meta charset='UTF-8'><style>\n", data); |
| 125 data->append(Platform::current()->loadResource("pickerCommon.css")); | 125 data->append(Platform::current()->loadResource("pickerCommon.css")); |
| 126 data->append(Platform::current()->loadResource("pickerButton.css")); | 126 data->append(Platform::current()->loadResource("pickerButton.css")); |
| 127 data->append(Platform::current()->loadResource("suggestionPicker.css")); | 127 data->append(Platform::current()->loadResource("suggestionPicker.css")); |
| 128 data->append(Platform::current()->loadResource("calendarPicker.css")); | 128 data->append(Platform::current()->loadResource("calendarPicker.css")); |
| 129 addString("</style></head><body><div id=main>Loading...</div><script>\n" | 129 addString("</style></head><body><div id=main>Loading...</div><script>\n" |
| 130 "window.dialogArguments = {\n", data); | 130 "window.dialogArguments = {\n", data); |
| 131 addProperty("anchorRectInScreen", m_parameters.anchorRectInScreen, data); | 131 addProperty("anchorRectInScreen", m_parameters.anchorRectInScreen, data); |
| 132 addProperty("zoomFactor", zoomFactor(), data); |
| 132 addProperty("min", valueToDateTimeString(m_parameters.minimum, m_parameters.
type), data); | 133 addProperty("min", valueToDateTimeString(m_parameters.minimum, m_parameters.
type), data); |
| 133 addProperty("max", valueToDateTimeString(m_parameters.maximum, m_parameters.
type), data); | 134 addProperty("max", valueToDateTimeString(m_parameters.maximum, m_parameters.
type), data); |
| 134 addProperty("step", stepString, data); | 135 addProperty("step", stepString, data); |
| 135 addProperty("stepBase", stepBaseString, data); | 136 addProperty("stepBase", stepBaseString, data); |
| 136 addProperty("required", m_parameters.required, data); | 137 addProperty("required", m_parameters.required, data); |
| 137 addProperty("currentValue", valueToDateTimeString(m_parameters.doubleValue,
m_parameters.type), data); | 138 addProperty("currentValue", valueToDateTimeString(m_parameters.doubleValue,
m_parameters.type), data); |
| 138 addProperty("locale", m_parameters.locale.string(), data); | 139 addProperty("locale", m_parameters.locale.string(), data); |
| 139 addProperty("todayLabel", todayLabelString, data); | 140 addProperty("todayLabel", todayLabelString, data); |
| 140 addProperty("clearLabel", locale().queryString(WebLocalizedString::CalendarC
lear), data); | 141 addProperty("clearLabel", locale().queryString(WebLocalizedString::CalendarC
lear), data); |
| 141 addProperty("weekLabel", locale().queryString(WebLocalizedString::WeekNumber
Label), data); | 142 addProperty("weekLabel", locale().queryString(WebLocalizedString::WeekNumber
Label), data); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 void DateTimeChooserImpl::didClosePopup() | 206 void DateTimeChooserImpl::didClosePopup() |
| 206 { | 207 { |
| 207 ASSERT(m_client); | 208 ASSERT(m_client); |
| 208 m_popup = nullptr; | 209 m_popup = nullptr; |
| 209 m_client->didEndChooser(); | 210 m_client->didEndChooser(); |
| 210 } | 211 } |
| 211 | 212 |
| 212 } // namespace blink | 213 } // namespace blink |
| 213 | 214 |
| 214 #endif // ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 215 #endif // ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| OLD | NEW |