OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * This variable is checked in SelectFileDialogExtensionBrowserTest. | |
9 * @type {number} | |
10 */ | |
11 window.JSErrorCount = 0; | |
12 | |
13 /** | |
14 * Count uncaught exceptions. | |
15 */ | |
16 window.onerror = function() { window.JSErrorCount++; }; | |
17 | |
18 /** | |
19 * FileManager constructor. | 8 * FileManager constructor. |
20 * | 9 * |
21 * FileManager objects encapsulate the functionality of the file selector | 10 * FileManager objects encapsulate the functionality of the file selector |
22 * dialogs, as well as the full screen file manager application (though the | 11 * dialogs, as well as the full screen file manager application (though the |
23 * latter is not yet implemented). | 12 * latter is not yet implemented). |
24 * | 13 * |
25 * @constructor | 14 * @constructor |
26 */ | 15 */ |
27 function FileManager() { | 16 function FileManager() { |
28 this.initializeQueue_ = new AsyncUtil.Group(); | 17 this.initializeQueue_ = new AsyncUtil.Group(); |
(...skipping 3909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3938 */ | 3927 */ |
3939 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { | 3928 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { |
3940 this.ctrlKeyPressed_ = flag; | 3929 this.ctrlKeyPressed_ = flag; |
3941 // Before the DOM is constructed, the key event can be handled. | 3930 // Before the DOM is constructed, the key event can be handled. |
3942 var cacheClearCommand = | 3931 var cacheClearCommand = |
3943 this.document_.querySelector('#drive-clear-local-cache'); | 3932 this.document_.querySelector('#drive-clear-local-cache'); |
3944 if (cacheClearCommand) | 3933 if (cacheClearCommand) |
3945 cacheClearCommand.canExecuteChange(); | 3934 cacheClearCommand.canExecuteChange(); |
3946 }; | 3935 }; |
3947 })(); | 3936 })(); |
OLD | NEW |