Commit 3d8aa088 authored by sammc's avatar sammc Committed by Commit bot

OOP PDF: Hide the loading indicator until the plugin loads.

Previously if the PDF plugin is disabled or click-to-play, the loading
indicator appeared over the click-to-play overlay. This hides the
loading indicator until a message is received from the plugin.

BUG=441132

Review URL: https://codereview.chromium.org/796223002

Cr-Commit-Position: refs/heads/master@{#308303}
parent 2a93155c
...@@ -19,6 +19,7 @@ viewer-page-indicator { ...@@ -19,6 +19,7 @@ viewer-page-indicator {
} }
viewer-progress-bar { viewer-progress-bar {
visibility: hidden;
z-index: 3; z-index: 3;
} }
......
...@@ -402,6 +402,7 @@ PDFViewer.prototype = { ...@@ -402,6 +402,7 @@ PDFViewer.prototype = {
case 'setTranslatedStrings': case 'setTranslatedStrings':
this.passwordScreen_.text = message.data.getPasswordString; this.passwordScreen_.text = message.data.getPasswordString;
this.progressBar_.text = message.data.loadingString; this.progressBar_.text = message.data.loadingString;
this.progressBar_.style.visibility = 'visible';
this.errorScreen_.text = message.data.loadFailedString; this.errorScreen_.text = message.data.loadFailedString;
break; break;
case 'cancelStreamUrl': case 'cancelStreamUrl':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment