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 | 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 return WebDateTimeInputTypeNone; | 103 return WebDateTimeInputTypeNone; |
104 } | 104 } |
105 | 105 |
106 bool ExternalDateTimeChooser::openDateTimeChooser(ChromeClientImpl* chromeClient
, WebViewClient* webViewClient, const DateTimeChooserParameters& parameters) | 106 bool ExternalDateTimeChooser::openDateTimeChooser(ChromeClientImpl* chromeClient
, WebViewClient* webViewClient, const DateTimeChooserParameters& parameters) |
107 { | 107 { |
108 if (!webViewClient) | 108 if (!webViewClient) |
109 return false; | 109 return false; |
110 | 110 |
111 WebDateTimeChooserParams webParams; | 111 WebDateTimeChooserParams webParams; |
112 webParams.type = toWebDateTimeInputType(parameters.type); | 112 webParams.type = toWebDateTimeInputType(parameters.type); |
113 webParams.anchorRectInScreen = chromeClient->rootViewToScreen(parameters.anc
horRectInRootView); | 113 webParams.anchorRectInScreen = parameters.anchorRectInScreen; |
114 webParams.currentValue = parameters.currentValue; | 114 webParams.currentValue = parameters.currentValue; |
115 webParams.doubleValue = parameters.doubleValue; | 115 webParams.doubleValue = parameters.doubleValue; |
116 webParams.suggestions = parameters.suggestions; | 116 webParams.suggestions = parameters.suggestions; |
117 webParams.minimum = parameters.minimum; | 117 webParams.minimum = parameters.minimum; |
118 webParams.maximum = parameters.maximum; | 118 webParams.maximum = parameters.maximum; |
119 webParams.step = parameters.step; | 119 webParams.step = parameters.step; |
120 webParams.stepBase = parameters.stepBase; | 120 webParams.stepBase = parameters.stepBase; |
121 webParams.isRequired = parameters.required; | 121 webParams.isRequired = parameters.required; |
122 webParams.isAnchorElementRTL = parameters.isAnchorElementRTL; | 122 webParams.isAnchorElementRTL = parameters.isAnchorElementRTL; |
123 | 123 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 167 } |
168 | 168 |
169 AXObject* ExternalDateTimeChooser::rootAXObject() | 169 AXObject* ExternalDateTimeChooser::rootAXObject() |
170 { | 170 { |
171 return 0; | 171 return 0; |
172 } | 172 } |
173 | 173 |
174 } // namespace blink | 174 } // namespace blink |
175 | 175 |
176 #endif | 176 #endif |
OLD | NEW |