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

Unified Diff: chrome/browser/resources/chromeos/login/login.js

Issue 7941027: [ChromeOS] Update login.js to use disableTextSelectAndDrag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/login.js
diff --git a/chrome/browser/resources/chromeos/login/login.js b/chrome/browser/resources/chromeos/login/login.js
index 8c25c040bb1566e47dd8634194d09e87f686f945..edcc71736f7801f1252dc101b05580a9bc01e92d 100644
--- a/chrome/browser/resources/chromeos/login/login.js
+++ b/chrome/browser/resources/chromeos/login/login.js
@@ -149,14 +149,6 @@ cr.define('cr.ui', function() {
var Oobe = cr.ui.Oobe;
-// Disable text selection.
-document.onselectstart = function(e) {
- e.preventDefault();
-}
-
-// Disable dragging.
-document.ondragstart = function(e) {
- e.preventDefault();
-}
+disableTextSelectAndDrag();
document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698