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

Side by Side Diff: chrome/browser/resources/file_manager/js/error_dialog.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 2013 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 * @param {HTMLElement} parentNode Node to be parent for this dialog.
9 * @constructor
10 */
11 function ErrorDialog(parentNode) {
12 cr.ui.dialogs.BaseDialog.call(this, parentNode);
13 }
14
15 ErrorDialog.prototype = {
16 __proto__: cr.ui.dialogs.BaseDialog.prototype
17 };
18
19 /**
20 * One-time initialization of DOM.
21 * @private
22 */
23 ErrorDialog.prototype.initDom_ = function() {
24 cr.ui.dialogs.BaseDialog.prototype.initDom_.call(this);
25 this.frame_.classList.add('error-dialog-frame');
26 var img = this.document_.createElement('div');
27 img.className = 'error-dialog-img';
28 this.frame_.insertBefore(img, this.text_);
29 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/error_counter.js ('k') | chrome/browser/resources/file_manager/js/file_grid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698