| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 case WebLocalizedString::CalendarToday: | 218 case WebLocalizedString::CalendarToday: |
| 219 return IDS_FORM_CALENDAR_TODAY; | 219 return IDS_FORM_CALENDAR_TODAY; |
| 220 case WebLocalizedString::DateFormatDayInMonthLabel: | 220 case WebLocalizedString::DateFormatDayInMonthLabel: |
| 221 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH; | 221 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH; |
| 222 case WebLocalizedString::DateFormatMonthLabel: | 222 case WebLocalizedString::DateFormatMonthLabel: |
| 223 return IDS_FORM_DATE_FORMAT_MONTH; | 223 return IDS_FORM_DATE_FORMAT_MONTH; |
| 224 case WebLocalizedString::DateFormatYearLabel: | 224 case WebLocalizedString::DateFormatYearLabel: |
| 225 return IDS_FORM_DATE_FORMAT_YEAR; | 225 return IDS_FORM_DATE_FORMAT_YEAR; |
| 226 case WebLocalizedString::DetailsLabel: | 226 case WebLocalizedString::DetailsLabel: |
| 227 return IDS_DETAILS_WITHOUT_SUMMARY_LABEL; | 227 return IDS_DETAILS_WITHOUT_SUMMARY_LABEL; |
| 228 case WebLocalizedString::DownloadButtonLabel: |
| 229 return IDS_DOWNLOAD_BUTTON_LABEL; |
| 228 case WebLocalizedString::FileButtonChooseFileLabel: | 230 case WebLocalizedString::FileButtonChooseFileLabel: |
| 229 return IDS_FORM_FILE_BUTTON_LABEL; | 231 return IDS_FORM_FILE_BUTTON_LABEL; |
| 230 case WebLocalizedString::FileButtonChooseMultipleFilesLabel: | 232 case WebLocalizedString::FileButtonChooseMultipleFilesLabel: |
| 231 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL; | 233 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL; |
| 232 case WebLocalizedString::FileButtonNoFileSelectedLabel: | 234 case WebLocalizedString::FileButtonNoFileSelectedLabel: |
| 233 return IDS_FORM_FILE_NO_FILE_LABEL; | 235 return IDS_FORM_FILE_NO_FILE_LABEL; |
| 234 case WebLocalizedString::InputElementAltText: | 236 case WebLocalizedString::InputElementAltText: |
| 235 return IDS_FORM_INPUT_ALT; | 237 return IDS_FORM_INPUT_ALT; |
| 236 case WebLocalizedString::KeygenMenuHighGradeKeySize: | 238 case WebLocalizedString::KeygenMenuHighGradeKeySize: |
| 237 return IDS_KEYGEN_HIGH_GRADE_KEY; | 239 return IDS_KEYGEN_HIGH_GRADE_KEY; |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1015 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
| 1014 static_cast<ui::DomKey>(dom_key))); | 1016 static_cast<ui::DomKey>(dom_key))); |
| 1015 } | 1017 } |
| 1016 | 1018 |
| 1017 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1019 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
| 1018 return static_cast<int>( | 1020 return static_cast<int>( |
| 1019 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1021 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
| 1020 } | 1022 } |
| 1021 | 1023 |
| 1022 } // namespace content | 1024 } // namespace content |
| OLD | NEW |