| OLD | NEW |
| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 superClass.prototype.setGeometry.call(this, left, top, width, height); | 186 superClass.prototype.setGeometry.call(this, left, top, width, height); |
| 187 this.childView_.setGeometry(left, top, width, height); | 187 this.childView_.setGeometry(left, top, width, height); |
| 188 }, | 188 }, |
| 189 | 189 |
| 190 show: function() { | 190 show: function() { |
| 191 superClass.prototype.show.call(this, isVisible); | 191 superClass.prototype.show.call(this, isVisible); |
| 192 this.childView_.show(isVisible); | 192 this.childView_.show(isVisible); |
| 193 }, | 193 }, |
| 194 | 194 |
| 195 resetGeometry: function() { | 195 resetGeometry: function() { |
| 196 this.setGeometry(0, 0, window.innerWidth, window.innerHeight); | 196 this.setGeometry(0, 0, document.documentElement.clientWidth, |
| 197 document.documentElement.clientHeight); |
| 197 } | 198 } |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 return WindowView; | 201 return WindowView; |
| 201 })(); | 202 })(); |
| 202 | 203 |
| 203 /** | 204 /** |
| 204 * View that positions two views vertically. The top view should be | 205 * View that positions two views vertically. The top view should be |
| 205 * 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. |
| 206 * | 207 * |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 show: function(isVisible) { | 316 show: function(isVisible) { |
| 316 superClass.prototype.show.call(this, isVisible); | 317 superClass.prototype.show.call(this, isVisible); |
| 317 | 318 |
| 318 this.leftView_.show(isVisible); | 319 this.leftView_.show(isVisible); |
| 319 this.rightView_.show(isVisible); | 320 this.rightView_.show(isVisible); |
| 320 } | 321 } |
| 321 }; | 322 }; |
| 322 | 323 |
| 323 return HorizontalSplitView; | 324 return HorizontalSplitView; |
| 324 })(); | 325 })(); |
| OLD | NEW |