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

Side by Side Diff: Source/web/ExternalDateTimeChooser.cpp

Issue 23623017: Prepare for date/time input datalist support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Created 7 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
« no previous file with comments | « Source/web/DateTimeChooserImpl.cpp ('k') | Source/web/WebDateTimeSuggestion.cpp » ('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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 bool ExternalDateTimeChooser::openDateTimeChooser(ChromeClientImpl* chromeClient , WebViewClient* webViewClient, const DateTimeChooserParameters& parameters) 108 bool ExternalDateTimeChooser::openDateTimeChooser(ChromeClientImpl* chromeClient , WebViewClient* webViewClient, const DateTimeChooserParameters& parameters)
109 { 109 {
110 if (!webViewClient) 110 if (!webViewClient)
111 return false; 111 return false;
112 112
113 WebDateTimeChooserParams webParams; 113 WebDateTimeChooserParams webParams;
114 webParams.type = toWebDateTimeInputType(parameters.type); 114 webParams.type = toWebDateTimeInputType(parameters.type);
115 webParams.anchorRectInScreen = chromeClient->rootViewToScreen(parameters.anc horRectInRootView); 115 webParams.anchorRectInScreen = chromeClient->rootViewToScreen(parameters.anc horRectInRootView);
116 webParams.currentValue = parameters.currentValue; 116 webParams.currentValue = parameters.currentValue;
117 webParams.doubleValue = parameters.doubleValue; 117 webParams.doubleValue = parameters.doubleValue;
118 webParams.suggestionValues = parameters.suggestionValues; 118 webParams.suggestions = parameters.suggestions;
119 webParams.localizedSuggestionValues = parameters.localizedSuggestionValues;
120 webParams.suggestionLabels = parameters.suggestionLabels;
121 webParams.minimum = parameters.minimum; 119 webParams.minimum = parameters.minimum;
122 webParams.maximum = parameters.maximum; 120 webParams.maximum = parameters.maximum;
123 webParams.step = parameters.step; 121 webParams.step = parameters.step;
124 webParams.stepBase = parameters.stepBase; 122 webParams.stepBase = parameters.stepBase;
125 webParams.isRequired = parameters.required; 123 webParams.isRequired = parameters.required;
126 webParams.isAnchorElementRTL = parameters.isAnchorElementRTL; 124 webParams.isAnchorElementRTL = parameters.isAnchorElementRTL;
127 125
128 WebDateTimeChooserCompletion* completion = new WebDateTimeChooserCompletionI mpl(this); 126 WebDateTimeChooserCompletion* completion = new WebDateTimeChooserCompletionI mpl(this);
129 if (webViewClient->openDateTimeChooser(webParams, completion)) 127 if (webViewClient->openDateTimeChooser(webParams, completion))
130 return true; 128 return true;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void ExternalDateTimeChooser::endChooser() 164 void ExternalDateTimeChooser::endChooser()
167 { 165 {
168 DateTimeChooserClient* client = m_client; 166 DateTimeChooserClient* client = m_client;
169 m_client = 0; 167 m_client = 0;
170 client->didEndChooser(); 168 client->didEndChooser();
171 } 169 }
172 170
173 } 171 }
174 172
175 #endif 173 #endif
OLDNEW
« no previous file with comments | « Source/web/DateTimeChooserImpl.cpp ('k') | Source/web/WebDateTimeSuggestion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698