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

Side by Side Diff: third_party/WebKit/Source/core/html/media/MediaDocument.cpp

Issue 2821633002: Remove WTF::String::DeprecatedUpper() (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 206
207 if (RuntimeEnabledFeatures::mediaDocumentDownloadButtonEnabled()) { 207 if (RuntimeEnabledFeatures::mediaDocumentDownloadButtonEnabled()) {
208 HTMLAnchorElement* anchor = HTMLAnchorElement::Create(*GetDocument()); 208 HTMLAnchorElement* anchor = HTMLAnchorElement::Create(*GetDocument());
209 anchor->setAttribute(downloadAttr, ""); 209 anchor->setAttribute(downloadAttr, "");
210 anchor->SetURL(GetDocument()->Url()); 210 anchor->SetURL(GetDocument()->Url());
211 anchor->setTextContent( 211 anchor->setTextContent(
212 GetDocument() 212 GetDocument()
213 ->GetCachedLocale(GetDocument()->ContentLanguage()) 213 ->GetCachedLocale(GetDocument()->ContentLanguage())
214 .QueryString(WebLocalizedString::kDownloadButtonLabel) 214 .QueryString(WebLocalizedString::kDownloadButtonLabel)
215 .DeprecatedUpper()); 215 .UpperUnicode(GetDocument()->ContentLanguage()));
216 // Using CSS style according to Android material design. 216 // Using CSS style according to Android material design.
217 anchor->setAttribute( 217 anchor->setAttribute(
218 styleAttr, 218 styleAttr,
219 "display: inline-block;" 219 "display: inline-block;"
220 "margin-top: 32px;" 220 "margin-top: 32px;"
221 "padding: 0 16px 0 16px;" 221 "padding: 0 16px 0 16px;"
222 "height: 36px;" 222 "height: 36px;"
223 "background: #000000;" 223 "background: #000000;"
224 "-webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);" 224 "-webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);"
225 "font-family: Roboto;" 225 "font-family: Roboto;"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 if (keyboard_event->key() == " " || 290 if (keyboard_event->key() == " " ||
291 keyboard_event->keyCode() == VKEY_MEDIA_PLAY_PAUSE) { 291 keyboard_event->keyCode() == VKEY_MEDIA_PLAY_PAUSE) {
292 // space or media key (play/pause) 292 // space or media key (play/pause)
293 video->TogglePlayState(); 293 video->TogglePlayState();
294 event->SetDefaultHandled(); 294 event->SetDefaultHandled();
295 } 295 }
296 } 296 }
297 } 297 }
298 298
299 } // namespace blink 299 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698