Tim van der Meij
bf3aad8a95
Merge pull request #5082 from Rob--W/chromium-managed-preferences
...
Managed preferences for Chrome administrators
2014-07-30 23:58:25 +02:00
Rob Wu
00746011a3
Managed preferences for Chrome administrators
...
Implement support for managed preferences. This feature allows users
(administrators) to easily change the default settings of the PDF Viewer for
all Chrome or Chromium browsers within their organization.
External resources for end users (administrators)
- http://www.chromium.org/administrators/
- http://www.chromium.org/administrators/configuring-policy-for-extensions
- http://www.chromium.org/administrators/windows-quick-start
- http://www.chromium.org/administrators/mac-quick-start
- http://www.chromium.org/administrators/linux-quick-start
- http://www.chromium.org/administrators/policy-templates
Administrators can read one of the previous links to learn more about creating
policies. We want to auto-generate these templates, but there are no public
tools for doing that. It will be added in the future, see:
https://code.google.com/p/chromium/issues/detail?id=389061
Resources for PDF.js/extension developers
- http://cs.chromium.org/file:policy_templates.json
- https://developer.chrome.com/extensions/manifest/storage
2014-07-30 22:51:56 +02:00
Yury Delendik
7026543663
Merge pull request #5059 from timvandermeij/unused-code
...
Removing unused code and enforcing additional JSHint options
2014-07-29 15:04:43 -05:00
Rob Wu
bb13fb939e
Initialize PDFView.url = ''
...
The absence of this property caused the following error in PDFView.download:
Cannot read property 'split' of undefined
This property was unset when the PDF was loaded through a typed array instead
of a URL. With the fix, the file name will default to "document.pdf", as
defined by getPDFFileNameFromURL in web/ui_utils.js
2014-07-24 23:37:31 +02:00
Lu Wang
91b7030bf4
fix typo
2014-07-23 23:59:27 -07:00
Yury Delendik
561fc8f98b
Adds ImageData set support for legacy safari
2014-07-22 11:40:32 -05:00
Jonas Jenwald
28e194f670
Adjust the tabindices in the viewer
...
The current way that the tabindices are defined, has the unfortunate consequence that adding a single button to the UI might mean having to change almost all tabindices. (This was the case in e.g. PR 4329.)
This patch attempts to avoid that situation happening again, by re-defining the tabindices slightly.
2014-07-19 12:31:11 +02:00
Tim van der Meij
34728ee49b
Removing unused code
2014-07-18 22:34:50 +02:00
Tim van der Meij
0ac83802ba
Merge pull request #5004 from CodingFabian/issue-5002
...
Improving CanvasPixelArray polyfill for Android
2014-06-30 22:16:03 +02:00
Fabian Lange
54fb1f7226
Improving CanvasPixelArray polyfill for Android
2014-06-25 18:44:49 +02:00
Fabian Lange
6447397c04
Do not run cleanup while printing is ongoing.
2014-06-25 12:53:58 +02:00
Fabian Lange
9fd6cc7f1e
Fixes CanvasPixelArray set polyfill for chrome < 21 ( #4974 )
2014-06-24 19:36:02 +02:00
Yury Delendik
6d86c92514
Merge pull request #4991 from timvandermeij/text-layer-builder-refactoring
...
Refactoring text layer builder and converting text layer builder to a class
2014-06-23 16:00:57 -05:00
Tim van der Meij
fa33b9c643
Refactoring PDFFindController in the text layer builder
2014-06-23 22:19:18 +02:00
Tim van der Meij
a968da8887
Convert the text layer builder to a class
2014-06-23 22:07:21 +02:00
Tim van der Meij
2a052c4aad
Refactoring text layer builder
2014-06-23 21:40:37 +02:00
Tim van der Meij
fbfb9458d6
Implement text normalization for page content and queries
2014-06-20 23:32:44 +02:00
Tim van der Meij
ec1b58a30a
Fix code style issues in pdf_find_controller.js and build strings more efficiently
2014-06-20 21:14:29 +02:00
Yury Delendik
c1c950ce74
Fixes AnnotationUtils in the extension build
2014-06-18 16:42:08 -05:00
Jonas Jenwald
2282c98500
Merge pull request #4965 from yurydelendik/annotations
...
Splits shared/annotation.js into core/ and display/
2014-06-18 17:01:38 +02:00
Yury Delendik
bdeca30fbf
Splits shared/annotation.js into core/ and display/
2014-06-17 17:43:33 -05:00
Jonas Jenwald
bab40caf7b
Merge pull request #4961 from yurydelendik/raf-ios
...
Disables broken rAF on iOS
2014-06-17 21:13:38 +02:00
Yury Delendik
df87df59b6
Increases page cache size when needed
2014-06-17 13:41:40 -05:00
Yury Delendik
dccc709b50
Disables broken rAF on iOS
2014-06-17 12:44:52 -05:00
Yury Delendik
6f79aef03a
Uplift for B2G bug 1009780 - Improve open mechanism for downloads.
2014-06-16 19:06:36 -05:00
Jonas Jenwald
22cfcbcf8a
Merge pull request #4952 from yurydelendik/telemetry
...
Collect More Telemetry Data
2014-06-17 00:36:58 +02:00
Yury Delendik
0cd28ebfa3
Telemetry for used stream and font types
2014-06-16 16:41:04 -05:00
Yury Delendik
7ac1c6b034
Reporting print usage
2014-06-14 15:55:21 -05:00
Yury Delendik
13efe84d37
Merge pull request #4941 from Snuffleupagus/avoid-rendering-pages-when-home/end-keys
...
Prevent rendering unnecessary pages when the HOME/END keys are pressed
2014-06-14 11:37:07 -05:00
Jonas Jenwald
c145f0e063
Add larger zoom values to zoom dropdown box
2014-06-14 15:51:55 +02:00
Jonas Jenwald
5ac4dd9593
Prevent rendering unnecessary pages when the HOME/END keys are pressed
...
Currently (at least in Firefox) when the HOME/END keys are pressed, this will trigger unnecessary rendering of pages that lay between the current page and the first/last page. Avoid this by going straight to the first/last page instead.
2014-06-14 14:11:42 +02:00
Yury Delendik
69d722792d
Merge pull request #4936 from nnethercote/fix-cache-splice
...
Fix PageView cache re-insertions.
2014-06-13 10:19:55 -05:00
Nicholas Nethercote
5b7df1830d
Fix PageView cache re-insertions.
2014-06-13 07:57:58 -07:00
Nicholas Nethercote
f852cefdd8
Halve the size of the PageView cache.
2014-06-13 07:53:36 -07:00
Yury Delendik
2efbdfe8d4
Merge pull request #4834 from dferer/canvas-max-size
...
Limit the size of canvases to 5MP (iOS restriction)
2014-06-13 09:37:42 -05:00
Yury Delendik
cab043028b
Merge pull request #4924 from yurydelendik/fixthumb
...
Fixes drawImage for thumbs
2014-06-13 09:07:41 -05:00
Nicholas Nethercote
29d3db4422
Cache pages at the start of drawing, not the end.
2014-06-12 22:54:37 -07:00
Samuel Chantaraud
952545e20f
Limit the size of canvases to 5MP (iOS restriction)
2014-06-12 17:58:58 -04:00
Yury Delendik
d57f83e087
Reverting back disableWebGL preferences check
2014-06-12 14:47:46 -05:00
Yury Delendik
3b405cf611
Protects PDFJS.disableXXX == true from change
2014-06-12 12:40:59 -05:00
Yury Delendik
a338a7966d
Fixes drawImage for thumbs
2014-06-12 10:28:42 -05:00
Nicholas Nethercote
97cc06a7f9
Zero the height and width of the PageView canvas before deleting.
2014-06-12 16:33:30 +10:00
deathy
7d975dfe22
Fix destination name for 'Fit' zoom levels in hash params
2014-06-11 21:11:56 +03:00
Samuel Chantaraud
221d00a11f
Removed non-base64 bytes before the last 3 characters
2014-06-11 09:12:26 -04:00
Mohammed Abu-alsaad
2b595e6d32
Fixed IE links bug by adding a base64 transparent gif for anchor tags for
...
IE only.
2014-06-03 11:06:43 +12:00
Yury Delendik
5ded0ea163
Merge pull request #4866 from yurydelendik/issue4673
...
Removes mozResponseArrayBuffer
2014-06-02 12:51:29 -05:00
Yury Delendik
f9befa189b
Disables worker if XHR does not support arraybuffer
2014-05-29 20:38:50 -05:00
Yury Delendik
9c87fa24f7
Removes mozResponseArrayBuffer
2014-05-29 20:38:50 -05:00
Mohammed Abu-alsaad
e6546642db
Added more preference variables from the available hash parameters
2014-05-30 10:44:41 +12:00
Yury Delendik
34089212e0
Reverts mozRequestAnimationFrame to compatibility.js
2014-05-29 16:23:13 -05:00