Move Presentation Mode related code from viewer.js to its own file

This commit is contained in:
Jonas Jenwald 2013-10-01 23:11:46 +02:00
parent 17a953c7b3
commit bfc66626a0
6 changed files with 198 additions and 170 deletions

View file

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals PDFView, SCROLLBAR_PADDING */
/* globals PDFView, PresentationMode, SCROLLBAR_PADDING */
'use strict';
@ -59,7 +59,7 @@ var SecondaryToolbar = {
// Event handling functions.
presentationModeClick: function secondaryToolbarPresentationModeClick(evt) {
PDFView.presentationMode();
PresentationMode.request();
this.close();
},