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

Unified Diff: chrome/browser/resources/file_manager/js/audio_player.js

Issue 9570011: Disabling right-click menu in Chrome OS Photo Editor and Media Player (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/gallery.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/audio_player.js
diff --git a/chrome/browser/resources/file_manager/js/audio_player.js b/chrome/browser/resources/file_manager/js/audio_player.js
index 67426003ff2d0bcb405be31669166f9c87af85de..564055bb8f9ea6fe0fcf0b4e7f3f2515fea18ab8 100644
--- a/chrome/browser/resources/file_manager/js/audio_player.js
+++ b/chrome/browser/resources/file_manager/js/audio_player.js
@@ -51,6 +51,7 @@ function AudioPlayer(container) {
AudioPlayer.load = function() {
document.ondragstart = function(e) { e.preventDefault() };
+ document.oncontextmenu = function(e) { e.preventDefault(); };
var player = new AudioPlayer(document.querySelector('.audio-player'));
function getPlaylist() {
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/gallery.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698