OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/child/blink_platform_impl.h" | 5 #include "content/child/blink_platform_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 case WebLocalizedString::CalendarToday: | 219 case WebLocalizedString::CalendarToday: |
220 return IDS_FORM_CALENDAR_TODAY; | 220 return IDS_FORM_CALENDAR_TODAY; |
221 case WebLocalizedString::DateFormatDayInMonthLabel: | 221 case WebLocalizedString::DateFormatDayInMonthLabel: |
222 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH; | 222 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH; |
223 case WebLocalizedString::DateFormatMonthLabel: | 223 case WebLocalizedString::DateFormatMonthLabel: |
224 return IDS_FORM_DATE_FORMAT_MONTH; | 224 return IDS_FORM_DATE_FORMAT_MONTH; |
225 case WebLocalizedString::DateFormatYearLabel: | 225 case WebLocalizedString::DateFormatYearLabel: |
226 return IDS_FORM_DATE_FORMAT_YEAR; | 226 return IDS_FORM_DATE_FORMAT_YEAR; |
227 case WebLocalizedString::DetailsLabel: | 227 case WebLocalizedString::DetailsLabel: |
228 return IDS_DETAILS_WITHOUT_SUMMARY_LABEL; | 228 return IDS_DETAILS_WITHOUT_SUMMARY_LABEL; |
| 229 case WebLocalizedString::DownloadButtonLabel: |
| 230 return IDS_DOWNLOAD_BUTTON_LABEL; |
229 case WebLocalizedString::FileButtonChooseFileLabel: | 231 case WebLocalizedString::FileButtonChooseFileLabel: |
230 return IDS_FORM_FILE_BUTTON_LABEL; | 232 return IDS_FORM_FILE_BUTTON_LABEL; |
231 case WebLocalizedString::FileButtonChooseMultipleFilesLabel: | 233 case WebLocalizedString::FileButtonChooseMultipleFilesLabel: |
232 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL; | 234 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL; |
233 case WebLocalizedString::FileButtonNoFileSelectedLabel: | 235 case WebLocalizedString::FileButtonNoFileSelectedLabel: |
234 return IDS_FORM_FILE_NO_FILE_LABEL; | 236 return IDS_FORM_FILE_NO_FILE_LABEL; |
235 case WebLocalizedString::InputElementAltText: | 237 case WebLocalizedString::InputElementAltText: |
236 return IDS_FORM_INPUT_ALT; | 238 return IDS_FORM_INPUT_ALT; |
237 case WebLocalizedString::KeygenMenuHighGradeKeySize: | 239 case WebLocalizedString::KeygenMenuHighGradeKeySize: |
238 return IDS_KEYGEN_HIGH_GRADE_KEY; | 240 return IDS_KEYGEN_HIGH_GRADE_KEY; |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1026 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
1025 static_cast<ui::DomKey>(dom_key))); | 1027 static_cast<ui::DomKey>(dom_key))); |
1026 } | 1028 } |
1027 | 1029 |
1028 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1030 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
1029 return static_cast<int>( | 1031 return static_cast<int>( |
1030 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1032 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
1031 } | 1033 } |
1032 | 1034 |
1033 } // namespace content | 1035 } // namespace content |
OLD | NEW |