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

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/gallery.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 | « chrome/browser/resources/file_manager/js/audio_player.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/image_editor/gallery.js
diff --git a/chrome/browser/resources/file_manager/js/image_editor/gallery.js b/chrome/browser/resources/file_manager/js/image_editor/gallery.js
index bc59ba1f6b349a90e5e3071cde46a1cc4e6b6898..7cb1751c146c5092a9a5dd37a3794489d0ba472b 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/gallery.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/gallery.js
@@ -70,6 +70,8 @@ Gallery.FIRST_FADE_TIMEOUT = 1000;
Gallery.prototype.initDom_ = function(shareActions) {
var doc = this.document_;
+ doc.oncontextmenu = function(e) { e.preventDefault(); };
+
// Clean up after the previous instance of Gallery.
this.container_.removeAttribute('editing');
this.container_.removeAttribute('tools');
« no previous file with comments | « chrome/browser/resources/file_manager/js/audio_player.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698