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

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

Issue 2931243002: Unframe chrome://extensions as it's the last (and only) uber item (Closed)
Patch Set: devlin Created 3 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 cr.define('policy', function() { 4 cr.define('policy', function() {
5 5
6 /** 6 /**
7 * A hack to check if we are displaying the mobile version of this page by 7 * A hack to check if we are displaying the mobile version of this page by
8 * checking if the first column is hidden. 8 * checking if the first column is hidden.
9 * @return {boolean} True if this is the mobile version. 9 * @return {boolean} True if this is the mobile version.
10 */ 10 */
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 */ 421 */
422 Page.reloadPoliciesDone = function() { 422 Page.reloadPoliciesDone = function() {
423 this.getInstance().reloadPoliciesDone(); 423 this.getInstance().reloadPoliciesDone();
424 }; 424 };
425 425
426 Page.prototype = { 426 Page.prototype = {
427 /** 427 /**
428 * Main initialization function. Called by the browser on page load. 428 * Main initialization function. Called by the browser on page load.
429 */ 429 */
430 initialize: function() { 430 initialize: function() {
431 uber.onContentFrameLoaded();
432 cr.ui.FocusOutlineManager.forDocument(document); 431 cr.ui.FocusOutlineManager.forDocument(document);
433 432
434 this.mainSection = $('main-section'); 433 this.mainSection = $('main-section');
435 this.policyTables = {}; 434 this.policyTables = {};
436 435
437 // Place the initial focus on the filter input field. 436 // Place the initial focus on the filter input field.
438 $('filter').focus(); 437 $('filter').focus();
439 438
440 var self = this; 439 var self = this;
441 $('filter').onsearch = function(event) { 440 $('filter').onsearch = function(event) {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 return { 571 return {
573 Page: Page 572 Page: Page
574 }; 573 };
575 }); 574 });
576 575
577 // Have the main initialization function be called when the page finishes 576 // Have the main initialization function be called when the page finishes
578 // loading. 577 // loading.
579 document.addEventListener( 578 document.addEventListener(
580 'DOMContentLoaded', 579 'DOMContentLoaded',
581 policy.Page.getInstance().initialize.bind(policy.Page.getInstance())); 580 policy.Page.getInstance().initialize.bind(policy.Page.getInstance()));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698