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

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: Use ScriptingAPI to wait for bookmarks 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
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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 this.passwordScreen_.text = message.data.getPasswordString; 403 this.passwordScreen_.text = message.data.getPasswordString;
404 this.progressBar_.text = message.data.loadingString; 404 this.progressBar_.text = message.data.loadingString;
405 this.progressBar_.style.visibility = 'visible'; 405 this.progressBar_.style.visibility = 'visible';
406 this.errorScreen_.text = message.data.loadFailedString; 406 this.errorScreen_.text = message.data.loadFailedString;
407 break; 407 break;
408 case 'cancelStreamUrl': 408 case 'cancelStreamUrl':
409 chrome.streamsPrivate.abort(this.streamDetails_.streamUrl); 409 chrome.streamsPrivate.abort(this.streamDetails_.streamUrl);
410 break; 410 break;
411 case 'bookmarks': 411 case 'bookmarks':
412 this.bookmarks_ = message.data.bookmarks; 412 this.bookmarks_ = message.data.bookmarks;
413 console.log(JSON.stringify(this.bookmarks_, null, '\t'));
raymes 2015/01/15 05:40:19 nit: this shouldn't be here.
Alexandre Carlton 2015/01/16 02:39:07 Done.
414 break; 413 break;
415 } 414 }
416 }, 415 },
417 416
418 /** 417 /**
419 * @private 418 * @private
420 * A callback that's called before the zoom changes. Notify the plugin to stop 419 * A callback that's called before the zoom changes. Notify the plugin to stop
421 * reacting to scroll events while zoom is taking place to avoid flickering. 420 * reacting to scroll events while zoom is taking place to avoid flickering.
422 */ 421 */
423 beforeZoom_: function() { 422 beforeZoom_: function() {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 this.streamDetails_.tabId != -1); 610 this.streamDetails_.tabId != -1);
612 }, 611 },
613 612
614 /** 613 /**
615 * @type {Viewport} the viewport of the PDF viewer. 614 * @type {Viewport} the viewport of the PDF viewer.
616 */ 615 */
617 get viewport() { 616 get viewport() {
618 return this.viewport_; 617 return this.viewport_;
619 } 618 }
620 }; 619 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/pdf_extension_test.cc » ('j') | chrome/browser/resources/pdf/pdf_extension_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698