OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 | 4 |
5 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * @return {number} Width of a scrollbar in pixels | 8 * @return {number} Width of a scrollbar in pixels |
9 */ | 9 */ |
10 function getScrollbarWidth() { | 10 function getScrollbarWidth() { |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 if (this.lastViewportPosition_) | 440 if (this.lastViewportPosition_) |
441 this.viewport_.position = this.lastViewportPosition_; | 441 this.viewport_.position = this.lastViewportPosition_; |
442 this.paramsParser_.getViewportFromUrlParams( | 442 this.paramsParser_.getViewportFromUrlParams( |
443 this.streamDetails_.originalUrl, this.handleURLParams_.bind(this)); | 443 this.streamDetails_.originalUrl, this.handleURLParams_.bind(this)); |
444 this.loaded_ = true; | 444 this.loaded_ = true; |
445 this.sendScriptingMessage_({ | 445 this.sendScriptingMessage_({ |
446 type: 'documentLoaded' | 446 type: 'documentLoaded' |
447 }); | 447 }); |
448 while (this.delayedScriptingMessages_.length > 0) | 448 while (this.delayedScriptingMessages_.length > 0) |
449 this.handleScriptingMessage(this.delayedScriptingMessages_.shift()); | 449 this.handleScriptingMessage(this.delayedScriptingMessages_.shift()); |
| 450 |
| 451 if (this.isMaterial_) |
| 452 this.uiManager_.hideUiAfterTimeout(); |
450 } | 453 } |
451 }, | 454 }, |
452 | 455 |
453 /** | 456 /** |
454 * @private | 457 * @private |
455 * An event handler for handling password-submitted events. These are fired | 458 * An event handler for handling password-submitted events. These are fired |
456 * when an event is entered into the password screen. | 459 * when an event is entered into the password screen. |
457 * @param {Object} event a password-submitted event. | 460 * @param {Object} event a password-submitted event. |
458 */ | 461 */ |
459 onPasswordSubmitted_: function(event) { | 462 onPasswordSubmitted_: function(event) { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 * Each bookmark is an Object containing a: | 802 * Each bookmark is an Object containing a: |
800 * - title | 803 * - title |
801 * - page (optional) | 804 * - page (optional) |
802 * - array of children (themselves bookmarks) | 805 * - array of children (themselves bookmarks) |
803 * @type {Array} the top-level bookmarks of the PDF. | 806 * @type {Array} the top-level bookmarks of the PDF. |
804 */ | 807 */ |
805 get bookmarks() { | 808 get bookmarks() { |
806 return this.bookmarks_; | 809 return this.bookmarks_; |
807 } | 810 } |
808 }; | 811 }; |
OLD | NEW |