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

Side by Side Diff: third_party/WebKit/Source/web/DateTimeChooserImpl.cpp

Issue 1454613002: Page popups should respect zoom factor of the anchor element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add 1.25 zoom tests Created 5 years 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ColorChooserPopupUIController.cpp ('k') | third_party/WebKit/Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698