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

Unified Diff: chrome/browser/resources/net_internals/topmidbottomview.js

Issue 7531005: Rename the net_internals file names to include hyphens. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add some missing files Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/net_internals/top_mid_bottom_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/topmidbottomview.js
===================================================================
--- chrome/browser/resources/net_internals/topmidbottomview.js (revision 94551)
+++ chrome/browser/resources/net_internals/topmidbottomview.js (working copy)
@@ -1,59 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * This view stacks three boxes -- one at the top, one at the bottom, and
- * one that fills the remaining space between those two.
- *
- * +----------------------+
- * | topbar |
- * +----------------------+
- * | |
- * | |
- * | |
- * | |
- * | middlebox |
- * | |
- * | |
- * | |
- * | |
- * | |
- * +----------------------+
- * | bottombar |
- * +----------------------+
- *
- * @constructor
- */
-function TopMidBottomView(topView, midView, bottomView) {
- View.call(this);
-
- this.topView_ = topView;
- this.midView_ = midView;
- this.bottomView_ = bottomView;
-}
-
-inherits(TopMidBottomView, View);
-
-TopMidBottomView.prototype.setGeometry = function(left, top, width, height) {
- TopMidBottomView.superClass_.setGeometry.call(this, left, top, width, height);
-
- // Calculate the vertical split points.
- var topbarHeight = this.topView_.getHeight();
- var bottombarHeight = this.bottomView_.getHeight();
- var middleboxHeight = height - (topbarHeight + bottombarHeight);
-
- // Position the boxes using calculated split points.
- this.topView_.setGeometry(left, top, width, topbarHeight);
- this.midView_.setGeometry(left, this.topView_.getBottom(),
- width, middleboxHeight);
- this.bottomView_.setGeometry(left, this.midView_.getBottom(),
- width, bottombarHeight);
-};
-
-TopMidBottomView.prototype.show = function(isVisible) {
- TopMidBottomView.superClass_.show.call(this, isVisible);
- this.topView_.show(isVisible);
- this.midView_.show(isVisible);
- this.bottomView_.show(isVisible);
-};
« no previous file with comments | « chrome/browser/resources/net_internals/top_mid_bottom_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698