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

Side by Side Diff: chrome/browser/resources/uber/uber_frame.js

Issue 406143002: webui: Remove unnecessary </include>s everywhere. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GARRRRRR Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 // This file contains the navigation controls that are visible on the left side 5 // This file contains the navigation controls that are visible on the left side
6 // of the uber page. It exists separately from uber.js so that it may be loaded 6 // of the uber page. It exists separately from uber.js so that it may be loaded
7 // in an iframe. Iframes can be layered on top of each other, but not mixed in 7 // in an iframe. Iframes can be layered on top of each other, but not mixed in
8 // with page content, so all overlapping content on uber must be framed. 8 // with page content, so all overlapping content on uber must be framed.
9 9
10 <include src="../../../../ui/webui/resources/js/util.js"></include> 10 <include src="../../../../ui/webui/resources/js/util.js">
11 <include src="uber_utils.js"></include> 11 <include src="uber_utils.js">
12 12
13 cr.define('uber_frame', function() { 13 cr.define('uber_frame', function() {
14 14
15 /** 15 /**
16 * Handles page initialization. 16 * Handles page initialization.
17 */ 17 */
18 function onLoad() { 18 function onLoad() {
19 var navigationItems = document.querySelectorAll('li'); 19 var navigationItems = document.querySelectorAll('li');
20 20
21 for (var i = 0; i < navigationItems.length; ++i) { 21 for (var i = 0; i < navigationItems.length; ++i) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 169
170 return { 170 return {
171 onLoad: onLoad, 171 onLoad: onLoad,
172 setNavigationOverride: setNavigationOverride, 172 setNavigationOverride: setNavigationOverride,
173 }; 173 };
174 174
175 }); 175 });
176 176
177 document.addEventListener('DOMContentLoaded', uber_frame.onLoad); 177 document.addEventListener('DOMContentLoaded', uber_frame.onLoad);
OLDNEW
« no previous file with comments | « chrome/browser/resources/pdf/polymer_loader.js ('k') | chrome/browser/resources/user_manager/user_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698