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

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

Issue 1552423002: PDF: Enable tooltips in Print Preview UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | no next file » | 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 this.navigator_ = new Navigator(this.browserApi_.getStreamInfo().originalUrl, 255 this.navigator_ = new Navigator(this.browserApi_.getStreamInfo().originalUrl,
256 this.viewport_, this.paramsParser_, 256 this.viewport_, this.paramsParser_,
257 onNavigateInCurrentTab.bind(undefined, 257 onNavigateInCurrentTab.bind(undefined,
258 isInTab, 258 isInTab,
259 isSourceFileUrl), 259 isSourceFileUrl),
260 onNavigateInNewTab); 260 onNavigateInNewTab);
261 this.viewportScroller_ = 261 this.viewportScroller_ =
262 new ViewportScroller(this.viewport_, this.plugin_, window); 262 new ViewportScroller(this.viewport_, this.plugin_, window);
263 263
264 // Request translated strings. 264 // Request translated strings.
265 if (!this.isPrintPreview_) 265 chrome.resourcesPrivate.getStrings('pdf', this.handleStrings_.bind(this));
266 chrome.resourcesPrivate.getStrings('pdf', this.handleStrings_.bind(this));
267 } 266 }
268 267
269 PDFViewer.prototype = { 268 PDFViewer.prototype = {
270 /** 269 /**
271 * @private 270 * @private
272 * Handle key events. These may come from the user directly or via the 271 * Handle key events. These may come from the user directly or via the
273 * scripting API. 272 * scripting API.
274 * @param {KeyboardEvent} e the event to handle. 273 * @param {KeyboardEvent} e the event to handle.
275 */ 274 */
276 handleKeyEvent_: function(e) { 275 handleKeyEvent_: function(e) {
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 * Each bookmark is an Object containing a: 871 * Each bookmark is an Object containing a:
873 * - title 872 * - title
874 * - page (optional) 873 * - page (optional)
875 * - array of children (themselves bookmarks) 874 * - array of children (themselves bookmarks)
876 * @type {Array} the top-level bookmarks of the PDF. 875 * @type {Array} the top-level bookmarks of the PDF.
877 */ 876 */
878 get bookmarks() { 877 get bookmarks() {
879 return this.bookmarks_; 878 return this.bookmarks_;
880 } 879 }
881 }; 880 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698