Chromium Code Reviews| Index: ui/file_manager/externs/list.js |
| diff --git a/ui/file_manager/externs/list.js b/ui/file_manager/externs/list.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eccbfb01d5de6a48bea76e9ef6dc0b27675fd9dc |
| --- /dev/null |
| +++ b/ui/file_manager/externs/list.js |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +var cr = {}; |
| + |
| +/** |
| + * @namespace |
| + */ |
| +cr.ui = {}; |
| + |
| +/** |
| + * This definition is required to satisfy |
| + * ui/file_manager/file_manager/foreground/js/ui/drag_selector.js. |
| + * TODO(oka): Remove this workaround. |
|
fukino
2017/03/24 05:24:02
How about defining a interface such as DragTarget
oka
2017/03/24 08:35:00
Done. Defined DragTarget and made drag_selector de
|
| + * |
| + * @param {number} x |
| + * @param {number} y |
| + * @param {number=} opt_width |
| + * @param {number=} opt_height |
| + * @return {Array<number>} |
| + */ |
| +cr.ui.List.prototype.getHitElements = function(x, y, opt_width, opt_height) {}; |