OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/glue/webkitplatformsupport_impl.h" | 5 #include "webkit/glue/webkitplatformsupport_impl.h" |
6 | 6 |
7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
8 #include <malloc.h> | 8 #include <malloc.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 base::Lock lock_; | 119 base::Lock lock_; |
120 }; | 120 }; |
121 | 121 |
122 } // anonymous namespace | 122 } // anonymous namespace |
123 | 123 |
124 namespace webkit_glue { | 124 namespace webkit_glue { |
125 | 125 |
126 static int ToMessageID(WebLocalizedString::Name name) { | 126 static int ToMessageID(WebLocalizedString::Name name) { |
127 switch (name) { | 127 switch (name) { |
| 128 case WebLocalizedString::AXAMPMFieldText: |
| 129 return IDS_AX_AM_PM_FIELD_TEXT; |
128 case WebLocalizedString::AXButtonActionVerb: | 130 case WebLocalizedString::AXButtonActionVerb: |
129 return IDS_AX_BUTTON_ACTION_VERB; | 131 return IDS_AX_BUTTON_ACTION_VERB; |
130 case WebLocalizedString::AXCheckedCheckBoxActionVerb: | 132 case WebLocalizedString::AXCheckedCheckBoxActionVerb: |
131 return IDS_AX_CHECKED_CHECK_BOX_ACTION_VERB; | 133 return IDS_AX_CHECKED_CHECK_BOX_ACTION_VERB; |
| 134 case WebLocalizedString::AXDateTimeFieldEmptyValueText: |
| 135 return IDS_AX_DATE_TIME_FIELD_EMPTY_VALUE_TEXT; |
| 136 case WebLocalizedString::AXDayOfMonthFieldText: |
| 137 return IDS_AX_DAY_OF_MONTH_FIELD_TEXT; |
132 case WebLocalizedString::AXHeadingText: | 138 case WebLocalizedString::AXHeadingText: |
133 return IDS_AX_ROLE_HEADING; | 139 return IDS_AX_ROLE_HEADING; |
| 140 case WebLocalizedString::AXHourFieldText: |
| 141 return IDS_AX_HOUR_FIELD_TEXT; |
134 case WebLocalizedString::AXImageMapText: | 142 case WebLocalizedString::AXImageMapText: |
135 return IDS_AX_ROLE_IMAGE_MAP; | 143 return IDS_AX_ROLE_IMAGE_MAP; |
136 case WebLocalizedString::AXLinkActionVerb: | 144 case WebLocalizedString::AXLinkActionVerb: |
137 return IDS_AX_LINK_ACTION_VERB; | 145 return IDS_AX_LINK_ACTION_VERB; |
138 case WebLocalizedString::AXLinkText: | 146 case WebLocalizedString::AXLinkText: |
139 return IDS_AX_ROLE_LINK; | 147 return IDS_AX_ROLE_LINK; |
140 case WebLocalizedString::AXListMarkerText: | 148 case WebLocalizedString::AXListMarkerText: |
141 return IDS_AX_ROLE_LIST_MARKER; | 149 return IDS_AX_ROLE_LIST_MARKER; |
| 150 case WebLocalizedString::AXMillisecondFieldText: |
| 151 return IDS_AX_MILLISECOND_FIELD_TEXT; |
| 152 case WebLocalizedString::AXMinuteFieldText: |
| 153 return IDS_AX_MINUTE_FIELD_TEXT; |
| 154 case WebLocalizedString::AXMonthFieldText: |
| 155 return IDS_AX_MONTH_FIELD_TEXT; |
142 case WebLocalizedString::AXRadioButtonActionVerb: | 156 case WebLocalizedString::AXRadioButtonActionVerb: |
143 return IDS_AX_RADIO_BUTTON_ACTION_VERB; | 157 return IDS_AX_RADIO_BUTTON_ACTION_VERB; |
| 158 case WebLocalizedString::AXSecondFieldText: |
| 159 return IDS_AX_SECOND_FIELD_TEXT; |
144 case WebLocalizedString::AXTextFieldActionVerb: | 160 case WebLocalizedString::AXTextFieldActionVerb: |
145 return IDS_AX_TEXT_FIELD_ACTION_VERB; | 161 return IDS_AX_TEXT_FIELD_ACTION_VERB; |
146 case WebLocalizedString::AXUncheckedCheckBoxActionVerb: | 162 case WebLocalizedString::AXUncheckedCheckBoxActionVerb: |
147 return IDS_AX_UNCHECKED_CHECK_BOX_ACTION_VERB; | 163 return IDS_AX_UNCHECKED_CHECK_BOX_ACTION_VERB; |
148 case WebLocalizedString::AXWebAreaText: | 164 case WebLocalizedString::AXWebAreaText: |
149 return IDS_AX_ROLE_WEB_AREA; | 165 return IDS_AX_ROLE_WEB_AREA; |
| 166 case WebLocalizedString::AXWeekOfYearFieldText: |
| 167 return IDS_AX_WEEK_OF_YEAR_FIELD_TEXT; |
| 168 case WebLocalizedString::AXYearFieldText: |
| 169 return IDS_AX_YEAR_FIELD_TEXT; |
150 case WebLocalizedString::CalendarClear: | 170 case WebLocalizedString::CalendarClear: |
151 return IDS_FORM_CALENDAR_CLEAR; | 171 return IDS_FORM_CALENDAR_CLEAR; |
152 case WebLocalizedString::CalendarToday: | 172 case WebLocalizedString::CalendarToday: |
153 return IDS_FORM_CALENDAR_TODAY; | 173 return IDS_FORM_CALENDAR_TODAY; |
154 case WebLocalizedString::DateFormatDayInMonthLabel: | 174 case WebLocalizedString::DateFormatDayInMonthLabel: |
155 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH; | 175 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH; |
156 case WebLocalizedString::DateFormatMonthLabel: | 176 case WebLocalizedString::DateFormatMonthLabel: |
157 return IDS_FORM_DATE_FORMAT_MONTH; | 177 return IDS_FORM_DATE_FORMAT_MONTH; |
158 case WebLocalizedString::DateFormatYearLabel: | 178 case WebLocalizedString::DateFormatYearLabel: |
159 return IDS_FORM_DATE_FORMAT_YEAR; | 179 return IDS_FORM_DATE_FORMAT_YEAR; |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 worker_task_runner->OnWorkerRunLoopStopped(runLoop); | 827 worker_task_runner->OnWorkerRunLoopStopped(runLoop); |
808 } | 828 } |
809 | 829 |
810 #if defined(OS_ANDROID) | 830 #if defined(OS_ANDROID) |
811 WebKit::WebFlingAnimator* WebKitPlatformSupportImpl::createFlingAnimator() { | 831 WebKit::WebFlingAnimator* WebKitPlatformSupportImpl::createFlingAnimator() { |
812 return new FlingAnimatorImpl(); | 832 return new FlingAnimatorImpl(); |
813 } | 833 } |
814 #endif | 834 #endif |
815 | 835 |
816 } // namespace webkit_glue | 836 } // namespace webkit_glue |
OLD | NEW |