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

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

Issue 39123003: [Files.app] Split the JavaScript files into subdirectories: common, background, and foreground (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed test failure. Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 'use strict';
6
7 /**
8 * @type {FileManager}
9 */
10 var fileManager;
11
12 /**
13 * Indicates if the DOM and scripts have been already loaded.
14 * @type {boolean}
15 */
16 var pageLoaded = false;
17
18 /**
19 * Kick off the file manager dialog.
20 * Called by main.html after the DOM has been parsed.
21 */
22 function init() {
23 // Initializes UI and starts the File Manager dialog.
24 fileManager.initializeUI(document.body, function() {
25 chrome.test.sendMessage('ready');
26 metrics.recordInterval('Load.Total');
27 });
28 }
29
30 // Create the File Manager object. Note, that the DOM, nor any external
31 // scripts may not be ready yet.
32 fileManager = new FileManager();
33
34 // Initialize the core stuff, which doesn't require access to DOM nor to
35 // additional scripts.
36 fileManager.initializeCore();
37
38 // Final initialization is performed after all scripts and Dom is loaded.
39 util.addPageLoadHandler(init);
40
41 metrics.recordInterval('Load.Script'); // Must be the last line.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698