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

Side by Side Diff: chrome/browser/resources/pdf/pdf.js

Issue 966293002: Make sure the PDF material toolbar gets hidden after loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/ui_manager.js » ('j') | chrome/browser/resources/pdf/ui_manager.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698