| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace | 164 } // namespace |
| 165 | 165 |
| 166 static int ToMessageID(WebLocalizedString::Name name) { | 166 static int ToMessageID(WebLocalizedString::Name name) { |
| 167 switch (name) { | 167 switch (name) { |
| 168 case WebLocalizedString::AXAMPMFieldText: | 168 case WebLocalizedString::AXAMPMFieldText: |
| 169 return IDS_AX_AM_PM_FIELD_TEXT; | 169 return IDS_AX_AM_PM_FIELD_TEXT; |
| 170 case WebLocalizedString::AXButtonActionVerb: | 170 case WebLocalizedString::AXButtonActionVerb: |
| 171 return IDS_AX_BUTTON_ACTION_VERB; | 171 return IDS_AX_BUTTON_ACTION_VERB; |
| 172 case WebLocalizedString::AXCalendarShowMonthSelector: |
| 173 return IDS_AX_CALENDAR_SHOW_MONTH_SELECTOR; |
| 174 case WebLocalizedString::AXCalendarShowNextMonth: |
| 175 return IDS_AX_CALENDAR_SHOW_NEXT_MONTH; |
| 176 case WebLocalizedString::AXCalendarShowPreviousMonth: |
| 177 return IDS_AX_CALENDAR_SHOW_PREVIOUS_MONTH; |
| 172 case WebLocalizedString::AXCheckedCheckBoxActionVerb: | 178 case WebLocalizedString::AXCheckedCheckBoxActionVerb: |
| 173 return IDS_AX_CHECKED_CHECK_BOX_ACTION_VERB; | 179 return IDS_AX_CHECKED_CHECK_BOX_ACTION_VERB; |
| 174 case WebLocalizedString::AXDateTimeFieldEmptyValueText: | 180 case WebLocalizedString::AXDateTimeFieldEmptyValueText: |
| 175 return IDS_AX_DATE_TIME_FIELD_EMPTY_VALUE_TEXT; | 181 return IDS_AX_DATE_TIME_FIELD_EMPTY_VALUE_TEXT; |
| 176 case WebLocalizedString::AXDayOfMonthFieldText: | 182 case WebLocalizedString::AXDayOfMonthFieldText: |
| 177 return IDS_AX_DAY_OF_MONTH_FIELD_TEXT; | 183 return IDS_AX_DAY_OF_MONTH_FIELD_TEXT; |
| 178 case WebLocalizedString::AXHeadingText: | 184 case WebLocalizedString::AXHeadingText: |
| 179 return IDS_AX_ROLE_HEADING; | 185 return IDS_AX_ROLE_HEADING; |
| 180 case WebLocalizedString::AXHourFieldText: | 186 case WebLocalizedString::AXHourFieldText: |
| 181 return IDS_AX_HOUR_FIELD_TEXT; | 187 return IDS_AX_HOUR_FIELD_TEXT; |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 } | 1181 } |
| 1176 | 1182 |
| 1177 // static | 1183 // static |
| 1178 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { | 1184 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { |
| 1179 WebThreadImplForMessageLoop* impl = | 1185 WebThreadImplForMessageLoop* impl = |
| 1180 static_cast<WebThreadImplForMessageLoop*>(thread); | 1186 static_cast<WebThreadImplForMessageLoop*>(thread); |
| 1181 delete impl; | 1187 delete impl; |
| 1182 } | 1188 } |
| 1183 | 1189 |
| 1184 } // namespace content | 1190 } // namespace content |
| OLD | NEW |