Index: chrome/browser/resources/shared/js/cr/ui/touch_handler.js |
diff --git a/chrome/browser/resources/ntp4/touch_handler.js b/chrome/browser/resources/shared/js/cr/ui/touch_handler.js |
similarity index 99% |
rename from chrome/browser/resources/ntp4/touch_handler.js |
rename to chrome/browser/resources/shared/js/cr/ui/touch_handler.js |
index 927bebb2d5f995ee30e573c117ddc810ec1f6c1a..b9840b5ae7ab6686de643630911c85981e98082e 100644 |
--- a/chrome/browser/resources/ntp4/touch_handler.js |
+++ b/chrome/browser/resources/shared/js/cr/ui/touch_handler.js |
@@ -31,7 +31,7 @@ |
// Use an anonymous function to enable strict mode just for this file (which |
// will be concatenated with other files when embedded in Chrome) |
-var TouchHandler = (function() { |
+cr.define('cr.ui', function() { |
'use strict'; |
/** |
@@ -126,7 +126,7 @@ var TouchHandler = (function() { |
/** |
* The type of event sent by TouchHandler |
* @constructor |
- * @param {string} type The type of event (one of Grabber.EventType). |
+ * @param {string} type The type of event (one of cr.ui.Grabber.EventType). |
* @param {boolean} bubbles Whether or not the event should bubble. |
* @param {number} clientX The X location of the touch. |
* @param {number} clientY The Y location of the touch. |
@@ -846,5 +846,7 @@ var TouchHandler = (function() { |
} |
}; |
- return TouchHandler; |
-})(); |
+ return { |
+ TouchHandler: TouchHandler |
+ }; |
+}); |