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

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

Issue 810623003: Add functions to collect bookmarks from Pdfium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove variables only used once Created 6 years 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 | pdf/out_of_process_instance.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')
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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 this.viewport_.position = position; 394 this.viewport_.position = position;
395 break; 395 break;
396 case 'setTranslatedStrings': 396 case 'setTranslatedStrings':
397 this.passwordScreen_.text = message.data.getPasswordString; 397 this.passwordScreen_.text = message.data.getPasswordString;
398 this.progressBar_.text = message.data.loadingString; 398 this.progressBar_.text = message.data.loadingString;
399 this.errorScreen_.text = message.data.loadFailedString; 399 this.errorScreen_.text = message.data.loadFailedString;
400 break; 400 break;
401 case 'cancelStreamUrl': 401 case 'cancelStreamUrl':
402 chrome.streamsPrivate.abort(this.streamDetails.streamUrl); 402 chrome.streamsPrivate.abort(this.streamDetails.streamUrl);
403 break; 403 break;
404 case 'bookmarks':
405 this.bookmarks = message.data.bookmarks;
raymes 2015/01/13 07:13:26 nit: make this a private instance variable (this.b
406 break;
404 } 407 }
405 }, 408 },
406 409
407 /** 410 /**
408 * @private 411 * @private
409 * A callback that's called before the zoom changes. Notify the plugin to stop 412 * A callback that's called before the zoom changes. Notify the plugin to stop
410 * reacting to scroll events while zoom is taking place to avoid flickering. 413 * reacting to scroll events while zoom is taking place to avoid flickering.
411 */ 414 */
412 beforeZoom_: function() { 415 beforeZoom_: function() {
413 this.plugin_.postMessage({ 416 this.plugin_.postMessage({
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 this.streamDetails.tabId != -1); 588 this.streamDetails.tabId != -1);
586 }, 589 },
587 590
588 /** 591 /**
589 * @type {Viewport} the viewport of the PDF viewer. 592 * @type {Viewport} the viewport of the PDF viewer.
590 */ 593 */
591 get viewport() { 594 get viewport() {
592 return this.viewport_; 595 return this.viewport_;
593 } 596 }
594 }; 597 };
OLDNEW
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698