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

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

Issue 1079323002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and lgtm 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
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 <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 case WebLocalizedString::ValidationValueMissingForMultipleFile: 330 case WebLocalizedString::ValidationValueMissingForMultipleFile:
331 return IDS_FORM_VALIDATION_VALUE_MISSING_MULTIPLE_FILE; 331 return IDS_FORM_VALIDATION_VALUE_MISSING_MULTIPLE_FILE;
332 case WebLocalizedString::ValidationValueMissingForRadio: 332 case WebLocalizedString::ValidationValueMissingForRadio:
333 return IDS_FORM_VALIDATION_VALUE_MISSING_RADIO; 333 return IDS_FORM_VALIDATION_VALUE_MISSING_RADIO;
334 case WebLocalizedString::ValidationValueMissingForSelect: 334 case WebLocalizedString::ValidationValueMissingForSelect:
335 return IDS_FORM_VALIDATION_VALUE_MISSING_SELECT; 335 return IDS_FORM_VALIDATION_VALUE_MISSING_SELECT;
336 case WebLocalizedString::WeekFormatTemplate: 336 case WebLocalizedString::WeekFormatTemplate:
337 return IDS_FORM_INPUT_WEEK_TEMPLATE; 337 return IDS_FORM_INPUT_WEEK_TEMPLATE;
338 case WebLocalizedString::WeekNumberLabel: 338 case WebLocalizedString::WeekNumberLabel:
339 return IDS_FORM_WEEK_NUMBER_LABEL; 339 return IDS_FORM_WEEK_NUMBER_LABEL;
340 case WebLocalizedString::TextTracksNoLabel:
341 return IDS_MEDIA_TRACKS_NO_LABEL;
342 case WebLocalizedString::TextTracksOff:
343 return IDS_MEDIA_TRACKS_OFF;
340 // This "default:" line exists to avoid compile warnings about enum 344 // This "default:" line exists to avoid compile warnings about enum
341 // coverage when we add a new symbol to WebLocalizedString.h in WebKit. 345 // coverage when we add a new symbol to WebLocalizedString.h in WebKit.
342 // After a planned WebKit patch is landed, we need to add a case statement 346 // After a planned WebKit patch is landed, we need to add a case statement
343 // for the added symbol here. 347 // for the added symbol here.
344 default: 348 default:
345 break; 349 break;
346 } 350 }
347 return -1; 351 return -1;
348 } 352 }
349 353
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 ui::SCALE_FACTOR_100P}, 670 ui::SCALE_FACTOR_100P},
667 {"mediaplayerOverlayCastOffNew", 671 {"mediaplayerOverlayCastOffNew",
668 IDR_MEDIAPLAYER_OVERLAY_CAST_BUTTON_OFF_NEW, 672 IDR_MEDIAPLAYER_OVERLAY_CAST_BUTTON_OFF_NEW,
669 ui::SCALE_FACTOR_100P}, 673 ui::SCALE_FACTOR_100P},
670 {"mediaplayerOverlayPlay", 674 {"mediaplayerOverlayPlay",
671 IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON, 675 IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON,
672 ui::SCALE_FACTOR_100P}, 676 ui::SCALE_FACTOR_100P},
673 {"mediaplayerOverlayPlayNew", 677 {"mediaplayerOverlayPlayNew",
674 IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON_NEW, 678 IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON_NEW,
675 ui::SCALE_FACTOR_100P}, 679 ui::SCALE_FACTOR_100P},
680 {"mediaplayerTrackSelectionCheckmark",
681 IDR_MEDIAPLAYER_TRACKSELECTION_CHECKMARK,
682 ui::SCALE_FACTOR_100P},
683 {"mediaplayerTrackSelectionCheckmarkNew",
684 IDR_MEDIAPLAYER_TRACKSELECTION_CHECKMARK_NEW,
685 ui::SCALE_FACTOR_100P},
686 {"mediaplayerClosedCaptionsIcon",
687 IDR_MEDIAPLAYER_CLOSEDCAPTIONS_ICON,
688 ui::SCALE_FACTOR_100P},
689 {"mediaplayerClosedCaptionsIconNew",
690 IDR_MEDIAPLAYER_CLOSEDCAPTIONS_ICON_NEW,
691 ui::SCALE_FACTOR_100P},
692 {"mediaplayerSubtitlesIcon",
693 IDR_MEDIAPLAYER_SUBTITLES_ICON,
694 ui::SCALE_FACTOR_100P},
695 {"mediaplayerSubtitlesIconNew",
696 IDR_MEDIAPLAYER_SUBTITLES_ICON_NEW,
697 ui::SCALE_FACTOR_100P},
676 {"searchCancel", IDR_SEARCH_CANCEL, ui::SCALE_FACTOR_100P}, 698 {"searchCancel", IDR_SEARCH_CANCEL, ui::SCALE_FACTOR_100P},
677 {"searchCancelPressed", IDR_SEARCH_CANCEL_PRESSED, ui::SCALE_FACTOR_100P}, 699 {"searchCancelPressed", IDR_SEARCH_CANCEL_PRESSED, ui::SCALE_FACTOR_100P},
678 {"searchMagnifier", IDR_SEARCH_MAGNIFIER, ui::SCALE_FACTOR_100P}, 700 {"searchMagnifier", IDR_SEARCH_MAGNIFIER, ui::SCALE_FACTOR_100P},
679 {"searchMagnifierResults", 701 {"searchMagnifierResults",
680 IDR_SEARCH_MAGNIFIER_RESULTS, 702 IDR_SEARCH_MAGNIFIER_RESULTS,
681 ui::SCALE_FACTOR_100P}, 703 ui::SCALE_FACTOR_100P},
682 {"textAreaResizeCorner", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_100P}, 704 {"textAreaResizeCorner", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_100P},
683 {"textAreaResizeCorner@2x", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_200P}, 705 {"textAreaResizeCorner@2x", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_200P},
684 {"generatePassword", IDR_PASSWORD_GENERATION_ICON, ui::SCALE_FACTOR_100P}, 706 {"generatePassword", IDR_PASSWORD_GENERATION_ICON, ui::SCALE_FACTOR_100P},
685 {"generatePasswordHover", 707 {"generatePasswordHover",
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( 1024 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
1003 static_cast<ui::DomKey>(dom_key))); 1025 static_cast<ui::DomKey>(dom_key)));
1004 } 1026 }
1005 1027
1006 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { 1028 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) {
1007 return static_cast<int>( 1029 return static_cast<int>(
1008 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); 1030 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8()));
1009 } 1031 }
1010 1032
1011 } // namespace content 1033 } // namespace content
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | third_party/WebKit/LayoutTests/media/media-controls.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698