OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file provides the DragAction object, which performs drag on a page | 5 // This file provides the DragAction object, which performs drag on a page |
6 // using given start and end positions: | 6 // using given start and end positions: |
7 // 1. var action = new __DragAction(callback) | 7 // 1. var action = new __DragAction(callback) |
8 // 2. action.start(drag_options) | 8 // 2. action.start(drag_options) |
9 'use strict'; | 9 'use strict'; |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 this.endMeasuringHook(); | 61 this.endMeasuringHook(); |
62 | 62 |
63 // We're done. | 63 // We're done. |
64 if (this.callback_) | 64 if (this.callback_) |
65 this.callback_(); | 65 this.callback_(); |
66 }; | 66 }; |
67 | 67 |
68 window.__DragAction = DragAction; | 68 window.__DragAction = DragAction; |
69 window.__DragAction_SupportedByBrowser = supportedByBrowser; | 69 window.__DragAction_SupportedByBrowser = supportedByBrowser; |
70 })(); | 70 })(); |
OLD | NEW |