pdf.js/web
Jonas Jenwald 67a1dfcfb5 Move the sidebar related code from viewer.js into PDFSidebar
The sidebar code has, except for minor fixes/additions (such as attachments), been largely untouch for years.
To avoid having a bunch of sidebar code sprinkled throughout viewer.js, this patch moves the sidebar code into a separate file (pdf_sidebar.js), similar to how most other functionality has been moved in the last few years.

Besides simply moving code around, this patch also has the added benefit that we now keep track of the sidebar state (not just opened/closed).
This now makes it possible to handle both `Preferences` *and* `ViewHistory` settings for the sidebar state in a cleaner way, preventing strange and confusing interactions between the two.
2016-02-27 14:13:09 +01:00
..
images Add mirrored triangle (TOC item icon) 2015-09-06 15:35:58 +02:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_layer_builder.css Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
annotation_layer_builder.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
chrome-i18n-allow-access-to-file-urls.json Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
chromecom.js Allow local PDF files to be viewed in local frames 2016-02-10 14:52:54 +01:00
compatibility.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
default_preferences.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
download_manager.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
firefoxcom.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
grab_to_pan.js Handtool: Remove focus from previous node on click 2014-09-03 16:31:47 +02:00
hand_tool.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
interfaces.js Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/ 2015-12-18 19:55:54 +01:00
mozPrintCallback_polyfill.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
overlay_manager.js Remove unused variables 2015-12-16 23:52:16 +01:00
password_prompt.js Set type="password" for the PasswordPrompt input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898) 2016-01-20 13:54:19 +01:00
pdf_attachment_viewer.js Refactor how PDFOutlineView/PDFAttachmentView is initialized in viewer.js, rename the classes, and refactor their render methods 2016-02-27 14:13:08 +01:00
pdf_document_properties.js Remove unused variables 2015-12-16 23:52:16 +01:00
pdf_find_bar.js Add a reset method to PDFFindbar, and use it to clear parts of the find UI when the document is closed 2016-02-26 18:35:45 +01:00
pdf_find_controller.js Ensure that PDFFindController_reset actually resets *all* state (issue 7034) 2016-02-26 18:35:17 +01:00
pdf_history.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_link_service.js [Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in PDFLinkService_getDestinationHash 2015-12-09 10:07:39 +01:00
pdf_outline_viewer.js Refactor how PDFOutlineView/PDFAttachmentView is initialized in viewer.js, rename the classes, and refactor their render methods 2016-02-27 14:13:08 +01:00
pdf_page_view.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
pdf_presentation_mode.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_rendering_queue.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_sidebar.js Move the sidebar related code from viewer.js into PDFSidebar 2016-02-27 14:13:09 +01:00
pdf_thumbnail_view.js Remove the hasImage property from PDFThumbnailView 2016-02-25 17:04:11 +01:00
pdf_thumbnail_viewer.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_viewer.component.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00
pdf_viewer.css Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/ 2015-12-18 19:55:54 +01:00
pdf_viewer.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
preferences.js Move the sidebar related code from viewer.js into PDFSidebar 2016-02-27 14:13:09 +01:00
secondary_toolbar.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
text_layer_builder.css Use default line height for the text layer 2015-12-02 23:00:12 +01:00
text_layer_builder.js Move text layer building logic into src/display/text_layer.js 2015-11-19 10:50:27 -06:00
ui_utils.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00
view_history.js Remove unused variables 2015-12-16 23:52:16 +01:00
viewer-snippet-chrome-extension.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-chrome-overlays.html Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
viewer-snippet-firefox-extension.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet-minified.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet-mozPrintCallback-polyfill.html Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox 2015-03-07 00:16:55 +01:00
viewer-snippet.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer.css Better "text" testing. 2015-11-19 11:03:52 -06:00
viewer.html Move the sidebar related code from viewer.js into PDFSidebar 2016-02-27 14:13:09 +01:00
viewer.js Move the sidebar related code from viewer.js into PDFSidebar 2016-02-27 14:13:09 +01:00