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