Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 1780043002: Add download button to MediaDocument on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 case WebLocalizedString::CalendarToday: 218 case WebLocalizedString::CalendarToday:
219 return IDS_FORM_CALENDAR_TODAY; 219 return IDS_FORM_CALENDAR_TODAY;
220 case WebLocalizedString::DateFormatDayInMonthLabel: 220 case WebLocalizedString::DateFormatDayInMonthLabel:
221 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH; 221 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH;
222 case WebLocalizedString::DateFormatMonthLabel: 222 case WebLocalizedString::DateFormatMonthLabel:
223 return IDS_FORM_DATE_FORMAT_MONTH; 223 return IDS_FORM_DATE_FORMAT_MONTH;
224 case WebLocalizedString::DateFormatYearLabel: 224 case WebLocalizedString::DateFormatYearLabel:
225 return IDS_FORM_DATE_FORMAT_YEAR; 225 return IDS_FORM_DATE_FORMAT_YEAR;
226 case WebLocalizedString::DetailsLabel: 226 case WebLocalizedString::DetailsLabel:
227 return IDS_DETAILS_WITHOUT_SUMMARY_LABEL; 227 return IDS_DETAILS_WITHOUT_SUMMARY_LABEL;
228 case WebLocalizedString::DownloadButtonLabel:
229 return IDS_DOWNLOAD_BUTTON_LABEL;
228 case WebLocalizedString::FileButtonChooseFileLabel: 230 case WebLocalizedString::FileButtonChooseFileLabel:
229 return IDS_FORM_FILE_BUTTON_LABEL; 231 return IDS_FORM_FILE_BUTTON_LABEL;
230 case WebLocalizedString::FileButtonChooseMultipleFilesLabel: 232 case WebLocalizedString::FileButtonChooseMultipleFilesLabel:
231 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL; 233 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL;
232 case WebLocalizedString::FileButtonNoFileSelectedLabel: 234 case WebLocalizedString::FileButtonNoFileSelectedLabel:
233 return IDS_FORM_FILE_NO_FILE_LABEL; 235 return IDS_FORM_FILE_NO_FILE_LABEL;
234 case WebLocalizedString::InputElementAltText: 236 case WebLocalizedString::InputElementAltText:
235 return IDS_FORM_INPUT_ALT; 237 return IDS_FORM_INPUT_ALT;
236 case WebLocalizedString::KeygenMenuHighGradeKeySize: 238 case WebLocalizedString::KeygenMenuHighGradeKeySize:
237 return IDS_KEYGEN_HIGH_GRADE_KEY; 239 return IDS_KEYGEN_HIGH_GRADE_KEY;
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( 1015 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
1014 static_cast<ui::DomKey>(dom_key))); 1016 static_cast<ui::DomKey>(dom_key)));
1015 } 1017 }
1016 1018
1017 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { 1019 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) {
1018 return static_cast<int>( 1020 return static_cast<int>(
1019 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); 1021 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8()));
1020 } 1022 }
1021 1023
1022 } // namespace content 1024 } // namespace content
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698