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

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

Issue 840493002: Introduce new test for bookmark loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks-minimal
Patch Set: Remove newline in argument list. Created 5 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 | « no previous file | chrome/browser/resources/pdf/pdf_extension_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 shouldManageZoom_: function() { 702 shouldManageZoom_: function() {
703 return !!(chrome.tabs && !this.streamDetails_.embedded && 703 return !!(chrome.tabs && !this.streamDetails_.embedded &&
704 this.streamDetails_.tabId != -1); 704 this.streamDetails_.tabId != -1);
705 }, 705 },
706 706
707 /** 707 /**
708 * @type {Viewport} the viewport of the PDF viewer. 708 * @type {Viewport} the viewport of the PDF viewer.
709 */ 709 */
710 get viewport() { 710 get viewport() {
711 return this.viewport_; 711 return this.viewport_;
712 },
713
714 /**
715 * Each bookmark is an Object containing a:
716 * - title
717 * - page (optional)
718 * - array of children (themselves bookmarks)
719 * @type {Array} the top-level bookmarks of the PDF.
720 */
721 get bookmarks() {
722 return this.bookmarks_;
712 } 723 }
713 }; 724 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/pdf_extension_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698