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.
8 * @param {HTMLElement} parentNode Node to be parent for this dialog.
11 function ErrorDialog(parentNode) {
12 cr.ui.dialogs.BaseDialog.call(this, parentNode);
15 ErrorDialog.prototype = {
16 __proto__: cr.ui.dialogs.BaseDialog.prototype
20 * One-time initialization of DOM.
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_);