Merge pull request #7144 from yurydelendik/mv-viewer-2
Prepare viewer.js for async loading and module separation.
This commit is contained in:
commit
47688b655a
2135
web/app.js
Normal file
2135
web/app.js
Normal file
File diff suppressed because it is too large
Load Diff
30
web/platform_integration.js
Normal file
30
web/platform_integration.js
Normal 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
|
@ -23,6 +23,8 @@ var MAX_AUTO_SCALE = 1.25;
|
|||||||
var SCROLLBAR_PADDING = 40;
|
var SCROLLBAR_PADDING = 40;
|
||||||
var VERTICAL_PADDING = 5;
|
var VERTICAL_PADDING = 5;
|
||||||
|
|
||||||
|
var mozL10n = document.mozL10n || document.webL10n;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns scale factor for the canvas. It makes sense for the HiDPI displays.
|
* Returns scale factor for the canvas. It makes sense for the HiDPI displays.
|
||||||
* @return {Object} The object with horizontal (sx) and vertical (sy)
|
* @return {Object} The object with horizontal (sx) and vertical (sy)
|
||||||
|
@ -65,6 +65,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
<script src="default_preferences.js"></script>
|
<script src="default_preferences.js"></script>
|
||||||
<script src="preferences.js"></script>
|
<script src="preferences.js"></script>
|
||||||
<script src="download_manager.js"></script>
|
<script src="download_manager.js"></script>
|
||||||
|
<script src="platform_integration.js"></script>
|
||||||
<script src="view_history.js"></script>
|
<script src="view_history.js"></script>
|
||||||
<script src="pdf_link_service.js"></script>
|
<script src="pdf_link_service.js"></script>
|
||||||
<script src="pdf_rendering_queue.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="overlay_manager.js"></script>
|
||||||
<script src="password_prompt.js"></script>
|
<script src="password_prompt.js"></script>
|
||||||
<script src="pdf_document_properties.js"></script>
|
<script src="pdf_document_properties.js"></script>
|
||||||
|
<script src="app.js"></script>
|
||||||
<!--#endif-->
|
<!--#endif-->
|
||||||
|
|
||||||
<!--#if !MINIFIED -->
|
<!--#if !MINIFIED -->
|
||||||
|
2144
web/viewer.js
2144
web/viewer.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user