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 <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 case WebLocalizedString::AXCalendarShowMonthSelector: | 87 case WebLocalizedString::AXCalendarShowMonthSelector: |
88 return IDS_AX_CALENDAR_SHOW_MONTH_SELECTOR; | 88 return IDS_AX_CALENDAR_SHOW_MONTH_SELECTOR; |
89 case WebLocalizedString::AXCalendarShowNextMonth: | 89 case WebLocalizedString::AXCalendarShowNextMonth: |
90 return IDS_AX_CALENDAR_SHOW_NEXT_MONTH; | 90 return IDS_AX_CALENDAR_SHOW_NEXT_MONTH; |
91 case WebLocalizedString::AXCalendarShowPreviousMonth: | 91 case WebLocalizedString::AXCalendarShowPreviousMonth: |
92 return IDS_AX_CALENDAR_SHOW_PREVIOUS_MONTH; | 92 return IDS_AX_CALENDAR_SHOW_PREVIOUS_MONTH; |
93 case WebLocalizedString::AXCalendarWeekDescription: | 93 case WebLocalizedString::AXCalendarWeekDescription: |
94 return IDS_AX_CALENDAR_WEEK_DESCRIPTION; | 94 return IDS_AX_CALENDAR_WEEK_DESCRIPTION; |
95 case WebLocalizedString::AXCheckedCheckBoxActionVerb: | 95 case WebLocalizedString::AXCheckedCheckBoxActionVerb: |
96 return IDS_AX_CHECKED_CHECK_BOX_ACTION_VERB; | 96 return IDS_AX_CHECKED_CHECK_BOX_ACTION_VERB; |
97 case WebLocalizedString::AXDateTimeFieldEmptyValueText: | |
98 return IDS_AX_DATE_TIME_FIELD_EMPTY_VALUE_TEXT; | |
99 case WebLocalizedString::AXDayOfMonthFieldText: | 97 case WebLocalizedString::AXDayOfMonthFieldText: |
100 return IDS_AX_DAY_OF_MONTH_FIELD_TEXT; | 98 return IDS_AX_DAY_OF_MONTH_FIELD_TEXT; |
101 case WebLocalizedString::AXDefaultActionVerb: | 99 case WebLocalizedString::AXDefaultActionVerb: |
102 return IDS_AX_DEFAULT_ACTION_VERB; | 100 return IDS_AX_DEFAULT_ACTION_VERB; |
103 case WebLocalizedString::AXHeadingText: | 101 case WebLocalizedString::AXHeadingText: |
104 return IDS_AX_ROLE_HEADING; | 102 return IDS_AX_ROLE_HEADING; |
105 case WebLocalizedString::AXHourFieldText: | 103 case WebLocalizedString::AXHourFieldText: |
106 return IDS_AX_HOUR_FIELD_TEXT; | 104 return IDS_AX_HOUR_FIELD_TEXT; |
107 case WebLocalizedString::AXImageMapText: | 105 case WebLocalizedString::AXImageMapText: |
108 return IDS_AX_ROLE_IMAGE_MAP; | 106 return IDS_AX_ROLE_IMAGE_MAP; |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 945 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
948 static_cast<ui::DomKey>(dom_key))); | 946 static_cast<ui::DomKey>(dom_key))); |
949 } | 947 } |
950 | 948 |
951 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 949 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
952 return static_cast<int>( | 950 return static_cast<int>( |
953 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 951 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
954 } | 952 } |
955 | 953 |
956 } // namespace content | 954 } // namespace content |
OLD | NEW |