| 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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1028 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
| 1027 static_cast<ui::DomKey>(dom_key))); | 1029 static_cast<ui::DomKey>(dom_key))); |
| 1028 } | 1030 } |
| 1029 | 1031 |
| 1030 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1032 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
| 1031 return static_cast<int>( | 1033 return static_cast<int>( |
| 1032 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1034 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
| 1033 } | 1035 } |
| 1034 | 1036 |
| 1035 } // namespace content | 1037 } // namespace content |
| OLD | NEW |