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

Side by Side Diff: chrome/browser/resources/extensions/extension_error_overlay.js

Issue 1162293008: Fix some lingering WebUI focus issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not more or less hacky, just hacky in a different way... Created 5 years, 6 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 2013 The Chromium Authors. All rights reserved. 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 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 cr.define('extensions', function() { 5 cr.define('extensions', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Clear all the content of a given element. 9 * Clear all the content of a given element.
10 * @param {HTMLElement} element The element to be cleared. 10 * @param {HTMLElement} element The element to be cleared.
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 * hide the ExtensionErrorOverlay; this should take a single parameter 285 * hide the ExtensionErrorOverlay; this should take a single parameter
286 * which is either the overlay Div if the overlay should be displayed, 286 * which is either the overlay Div if the overlay should be displayed,
287 * or null if the overlay should be hidden. 287 * or null if the overlay should be hidden.
288 */ 288 */
289 initializePage: function(showOverlay) { 289 initializePage: function(showOverlay) {
290 var overlay = $('overlay'); 290 var overlay = $('overlay');
291 cr.ui.overlay.setupOverlay(overlay); 291 cr.ui.overlay.setupOverlay(overlay);
292 cr.ui.overlay.globalInitialization(); 292 cr.ui.overlay.globalInitialization();
293 overlay.addEventListener('cancelOverlay', this.handleDismiss_.bind(this)); 293 overlay.addEventListener('cancelOverlay', this.handleDismiss_.bind(this));
294 294
295 $('extension-error-overlay-dismiss').addEventListener( 295 $('extension-error-overlay-dismiss').addEventListener('click',
296 'click', this.handleDismiss_.bind(this)); 296 function() {
297 cr.dispatchSimpleEvent(overlay, 'cancelOverlay');
298 });
297 299
298 /** 300 /**
299 * The element of the full overlay. 301 * The element of the full overlay.
300 * @type {HTMLDivElement} 302 * @type {HTMLDivElement}
301 * @private 303 * @private
302 */ 304 */
303 this.overlayDiv_ = /** @type {HTMLDivElement} */( 305 this.overlayDiv_ = /** @type {HTMLDivElement} */(
304 $('extension-error-overlay')); 306 $('extension-error-overlay'));
305 307
306 /** 308 /**
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 loadTimeData.getString('extensionErrorOverlayNoCodeToDisplay')); 486 loadTimeData.getString('extensionErrorOverlayNoCodeToDisplay'));
485 this.setVisible(true); 487 this.setVisible(true);
486 }, 488 },
487 }; 489 };
488 490
489 // Export 491 // Export
490 return { 492 return {
491 ExtensionErrorOverlay: ExtensionErrorOverlay 493 ExtensionErrorOverlay: ExtensionErrorOverlay
492 }; 494 };
493 }); 495 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698