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

Unified Diff: trunk/src/chrome/browser/resources/video_player/js/video_player.js

Issue 216793013: Revert 260245 "Revert 260198 "[VideoPlayer] Browser tests for ne..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/resources/video_player/js/video_player.js
===================================================================
--- trunk/src/chrome/browser/resources/video_player/js/video_player.js (revision 260327)
+++ trunk/src/chrome/browser/resources/video_player/js/video_player.js (working copy)
@@ -50,14 +50,14 @@
VideoControls.call(this,
controlsContainer,
onPlaybackError,
- loadTimeData.getString.bind(loadTimeData),
- this.toggleFullScreen_.bind(this),
+ loadTimeData.getString.wrap(loadTimeData),
+ this.toggleFullScreen_.wrap(this),
videoContainer);
this.playerContainer_ = playerContainer;
this.updateStyle();
- window.addEventListener('resize', this.updateStyle.bind(this));
+ window.addEventListener('resize', this.updateStyle.wrap(this));
document.addEventListener('keydown', function(e) {
if (e.keyIdentifier == 'U+0020') { // Space
@@ -70,7 +70,7 @@
false); // Leave the full screen mode.
e.preventDefault();
}
- }.bind(this));
+ }.wrap(this));
// TODO(mtomasz): Simplify. crbug.com/254318.
videoContainer.addEventListener('click', function(e) {
@@ -81,7 +81,7 @@
} else {
this.togglePlayStateWithFeedback();
}
- }.bind(this));
+ }.wrap(this));
this.inactivityWatcher_ = new MouseInactivityWatcher(playerContainer);
this.__defineGetter__('inactivityWatcher', function() {

Powered by Google App Engine
This is Rietveld 408576698