Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 23536047: Files.app: Move the error handler to the top of combined script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/error_counter.js ('k') | chrome/browser/resources/file_manager/js/main_scripts.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698