Index: chrome/browser/resources/shared/js/cr/ui/drag_wrapper.js |
diff --git a/chrome/browser/resources/ntp4/drag_wrapper.js b/chrome/browser/resources/shared/js/cr/ui/drag_wrapper.js |
similarity index 97% |
rename from chrome/browser/resources/ntp4/drag_wrapper.js |
rename to chrome/browser/resources/shared/js/cr/ui/drag_wrapper.js |
index 9601b1c8af0406888bc5fe8491eb4c53cd8e6e31..510c1f981936a4af0cefdd06458412578dff40ae 100644 |
--- a/chrome/browser/resources/ntp4/drag_wrapper.js |
+++ b/chrome/browser/resources/shared/js/cr/ui/drag_wrapper.js |
@@ -7,7 +7,7 @@ |
* A class for simplifying HTML5 drag and drop. Classes should use this to |
* handle the nitty gritty of nested drag enters and leaves. |
*/ |
-var DragWrapper = (function() { |
+cr.define('cr.ui', function() { |
/** |
* Creates a DragWrapper which listens for drag target events on |target| and |
* delegates event handling to |handler|. The |handler| must implement: |
@@ -112,5 +112,7 @@ var DragWrapper = (function() { |
}, |
}; |
- return DragWrapper; |
-})(); |
+ return { |
+ DragWrapper: DragWrapper |
+ }; |
+}); |