summaryrefslogtreecommitdiff
path: root/third-party/pdfjs/web/viewer.html
diff options
context:
space:
mode:
Diffstat (limited to 'third-party/pdfjs/web/viewer.html')
-rw-r--r--third-party/pdfjs/web/viewer.html61
1 files changed, 30 insertions, 31 deletions
diff --git a/third-party/pdfjs/web/viewer.html b/third-party/pdfjs/web/viewer.html
index ed57f3f1c..db9b7427a 100644
--- a/third-party/pdfjs/web/viewer.html
+++ b/third-party/pdfjs/web/viewer.html
@@ -26,7 +26,6 @@ See https://github.com/adobe-type-tools/cmap-resources
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="google" content="notranslate">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PDF.js viewer</title>
<base href="ephy-resource:///org/gnome/epiphany/pdfjs/web/">
@@ -42,24 +41,36 @@ See https://github.com/adobe-type-tools/cmap-resources
</head>
- <body tabindex="1" class="loadingInProgress">
+ <body tabindex="1">
<div id="outerContainer">
<div id="sidebarContainer">
<div id="toolbarSidebar">
- <div class="splitToolbarButton toggled">
- <button id="viewThumbnail" class="toolbarButton toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs">
- <span data-l10n-id="thumbs_label">Thumbnails</span>
- </button>
- <button id="viewOutline" class="toolbarButton" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="document_outline">
- <span data-l10n-id="document_outline_label">Document Outline</span>
- </button>
- <button id="viewAttachments" class="toolbarButton" title="Show Attachments" tabindex="4" data-l10n-id="attachments">
- <span data-l10n-id="attachments_label">Attachments</span>
- </button>
- <button id="viewLayers" class="toolbarButton" title="Show Layers (double-click to reset all layers to the default state)" tabindex="5" data-l10n-id="layers">
- <span data-l10n-id="layers_label">Layers</span>
- </button>
+ <div id="toolbarSidebarLeft">
+ <div class="splitToolbarButton toggled">
+ <button id="viewThumbnail" class="toolbarButton toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs">
+ <span data-l10n-id="thumbs_label">Thumbnails</span>
+ </button>
+ <button id="viewOutline" class="toolbarButton" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="document_outline">
+ <span data-l10n-id="document_outline_label">Document Outline</span>
+ </button>
+ <button id="viewAttachments" class="toolbarButton" title="Show Attachments" tabindex="4" data-l10n-id="attachments">
+ <span data-l10n-id="attachments_label">Attachments</span>
+ </button>
+ <button id="viewLayers" class="toolbarButton" title="Show Layers (double-click to reset all layers to the default state)" tabindex="5" data-l10n-id="layers">
+ <span data-l10n-id="layers_label">Layers</span>
+ </button>
+ </div>
+ </div>
+
+ <div id="toolbarSidebarRight">
+ <div id="outlineOptionsContainer" class="hidden">
+ <div class="verticalToolbarSeparator"></div>
+
+ <button id="currentOutlineItem" class="toolbarButton" disabled="disabled" title="Find Current Outline Item" tabindex="6" data-l10n-id="current_outline_item">
+ <span data-l10n-id="current_outline_item_label">Current Outline Item</span>
+ </button>
+ </div>
</div>
</div>
<div id="sidebarContent">
@@ -72,7 +83,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<div id="layersView" class="hidden">
</div>
</div>
- <div id="sidebarResizer" class="hidden"></div>
+ <div id="sidebarResizer"></div>
</div> <!-- sidebarContainer -->
<div id="mainContainer">
@@ -192,11 +203,11 @@ See https://github.com/adobe-type-tools/cmap-resources
<div id="toolbarContainer">
<div id="toolbarViewer">
<div id="toolbarViewerLeft">
- <button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="11" data-l10n-id="toggle_sidebar">
+ <button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="11" data-l10n-id="toggle_sidebar" aria-expanded="false" aria-controls="sidebarContainer">
<span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span>
</button>
<div class="toolbarButtonSpacer"></div>
- <button id="viewFind" class="toolbarButton" title="Find in Document" tabindex="12" data-l10n-id="findbar">
+ <button id="viewFind" class="toolbarButton" title="Find in Document" tabindex="12" data-l10n-id="findbar" aria-expanded="false" aria-controls="findbar">
<span data-l10n-id="findbar_label">Find</span>
</button>
<div class="splitToolbarButton hiddenSmallView">
@@ -233,7 +244,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<div class="verticalToolbarSeparator hiddenSmallView"></div>
- <button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="36" data-l10n-id="tools">
+ <button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="36" data-l10n-id="tools" aria-expanded="false" aria-controls="secondaryToolbar">
<span data-l10n-id="tools_label">Tools</span>
</button>
</div>
@@ -275,17 +286,6 @@ See https://github.com/adobe-type-tools/cmap-resources
</div>
</div>
- <menu type="context" id="viewerContextMenu">
- <menuitem id="contextFirstPage" label="First Page"
- data-l10n-id="first_page"></menuitem>
- <menuitem id="contextLastPage" label="Last Page"
- data-l10n-id="last_page"></menuitem>
- <menuitem id="contextPageRotateCw" label="Rotate Clockwise"
- data-l10n-id="page_rotate_cw"></menuitem>
- <menuitem id="contextPageRotateCcw" label="Rotate Counter-Clockwise"
- data-l10n-id="page_rotate_ccw"></menuitem>
- </menu>
-
<div id="viewerContainer" tabindex="0">
<div id="viewer" class="pdfViewer"></div>
</div>
@@ -397,4 +397,3 @@ See https://github.com/adobe-type-tools/cmap-resources
<div id="printContainer"></div>
</body>
</html>
-