Merge pull request #7144 from yurydelendik/mv-viewer-2

Prepare viewer.js for async loading and module separation.
This commit is contained in:
Yury Delendik 2016-04-06 09:40:59 -05:00
commit 47688b655a
5 changed files with 2177 additions and 2138 deletions

2135
web/app.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,30 @@
/* Copyright 2016 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//#if !(FIREFOX || MOZCENTRAL)
//#include mozPrintCallback_polyfill.js
//#endif
//#if GENERIC || CHROME
//#include download_manager.js
//#endif
//#if FIREFOX || MOZCENTRAL
//#include firefoxcom.js
//#endif
//#if CHROME
//#include chromecom.js
//#endif

View File

@ -23,6 +23,8 @@ var MAX_AUTO_SCALE = 1.25;
var SCROLLBAR_PADDING = 40;
var VERTICAL_PADDING = 5;
var mozL10n = document.mozL10n || document.webL10n;
/**
* Returns scale factor for the canvas. It makes sense for the HiDPI displays.
* @return {Object} The object with horizontal (sx) and vertical (sy)

View File

@ -65,6 +65,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<script src="default_preferences.js"></script>
<script src="preferences.js"></script>
<script src="download_manager.js"></script>
<script src="platform_integration.js"></script>
<script src="view_history.js"></script>
<script src="pdf_link_service.js"></script>
<script src="pdf_rendering_queue.js"></script>
@ -87,6 +88,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<script src="overlay_manager.js"></script>
<script src="password_prompt.js"></script>
<script src="pdf_document_properties.js"></script>
<script src="app.js"></script>
<!--#endif-->
<!--#if !MINIFIED -->

File diff suppressed because it is too large Load Diff