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

Side by Side Diff: chrome/browser/resources/net_internals/view.js

Issue 2602473003: Run tools/clang-format-js on chrome/browser/resources/net_internals (Closed)
Patch Set: drop dep Created 3 years, 11 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
« no previous file with comments | « chrome/browser/resources/net_internals/util.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * Base class to represent a "view". A view is an absolutely positioned box on 6 * Base class to represent a "view". A view is an absolutely positioned box on
7 * the page. 7 * the page.
8 */ 8 */
9 var View = (function() { 9 var View = (function() {
10 'use strict'; 10 'use strict';
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 setParameters: function(params) {}, 75 setParameters: function(params) {},
76 76
77 /** 77 /**
78 * Called when loading a log file, after clearing all events, but before 78 * Called when loading a log file, after clearing all events, but before
79 * loading the new ones. |polledData| contains the data from all 79 * loading the new ones. |polledData| contains the data from all
80 * PollableData helpers. |tabData| contains the data for the particular 80 * PollableData helpers. |tabData| contains the data for the particular
81 * tab. |logDump| is the entire log dump, which includes the other two 81 * tab. |logDump| is the entire log dump, which includes the other two
82 * values. It's included separately so most views don't have to depend on 82 * values. It's included separately so most views don't have to depend on
83 * its specifics. 83 * its specifics.
84 */ 84 */
85 onLoadLogStart: function(polledData, tabData, logDump) { 85 onLoadLogStart: function(polledData, tabData, logDump) {},
86 },
87 86
88 /** 87 /**
89 * Called as the final step of loading a log file. Arguments are the same 88 * Called as the final step of loading a log file. Arguments are the same
90 * as onLoadLogStart. Returns true to indicate the tab should be shown, 89 * as onLoadLogStart. Returns true to indicate the tab should be shown,
91 * false otherwise. 90 * false otherwise.
92 */ 91 */
93 onLoadLogFinish: function(polledData, tabData, logDump) { 92 onLoadLogFinish: function(polledData, tabData, logDump) {
94 return false; 93 return false;
95 } 94 }
96 }; 95 };
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 superClass.prototype.setGeometry.call(this, left, top, width, height); 185 superClass.prototype.setGeometry.call(this, left, top, width, height);
187 this.childView_.setGeometry(left, top, width, height); 186 this.childView_.setGeometry(left, top, width, height);
188 }, 187 },
189 188
190 show: function() { 189 show: function() {
191 superClass.prototype.show.call(this, isVisible); 190 superClass.prototype.show.call(this, isVisible);
192 this.childView_.show(isVisible); 191 this.childView_.show(isVisible);
193 }, 192 },
194 193
195 resetGeometry: function() { 194 resetGeometry: function() {
196 this.setGeometry(0, 0, document.documentElement.clientWidth, 195 this.setGeometry(
197 document.documentElement.clientHeight); 196 0, 0, document.documentElement.clientWidth,
197 document.documentElement.clientHeight);
198 } 198 }
199 }; 199 };
200 200
201 return WindowView; 201 return WindowView;
202 })(); 202 })();
203 203
204 /** 204 /**
205 * View that positions two views vertically. The top view should be 205 * View that positions two views vertically. The top view should be
206 * fixed-height, and the bottom view will fill the remainder of the space. 206 * fixed-height, and the bottom view will fill the remainder of the space.
207 * 207 *
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 show: function(isVisible) { 316 show: function(isVisible) {
317 superClass.prototype.show.call(this, isVisible); 317 superClass.prototype.show.call(this, isVisible);
318 318
319 this.leftView_.show(isVisible); 319 this.leftView_.show(isVisible);
320 this.rightView_.show(isVisible); 320 this.rightView_.show(isVisible);
321 } 321 }
322 }; 322 };
323 323
324 return HorizontalSplitView; 324 return HorizontalSplitView;
325 })(); 325 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/util.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698