[Pkg-javascript-commits] [pdf.js] 222/246: Bug 1054590 - [pdf.js] Update to use gaia-header

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit d8bc16362cc42c7c30fe5874501f51e29a41389f
Author: Yan Or <yor at mozilla.com>
Date:   Fri Aug 15 17:57:07 2014 -0700

    Bug 1054590 - [pdf.js] Update to use gaia-header
---
 extensions/b2g/viewer.html | 14 +++++++++-----
 web/viewer.js              |  4 ++--
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/extensions/b2g/viewer.html b/extensions/b2g/viewer.html
index 4240bbb..d68b4fc 100644
--- a/extensions/b2g/viewer.html
+++ b/extensions/b2g/viewer.html
@@ -23,21 +23,25 @@ limitations under the License.
 
     <link rel="stylesheet" href="viewer.css"/>
     <link rel="resource" type="application/l10n" href="locale/locale.properties"/>
-    <link rel="stylesheet" href="/shared/style/headers.css" type="text/css" />
     <script src="l10n.js"></script>
     <script src="../build/pdf.js"></script>
     <script src="/shared/js/async_storage.js"></script>
 
     <script src="viewer.js"></script>
+
+    <!-- Web Components -->
+    <link rel="stylesheet" type="text/css" href="/shared/elements/gaia-theme/style.css" />
+    <!-- <link rel="stylesheet" type="text/css" href="/shared/elements/gaia-icons/style.css" /> -->
+    <script type="text/javascript" src="/shared/elements/config.js"></script>
+    <script type="text/javascript" src="/shared/elements/gaia-header/dist/script.js"></script>
   </head>
 
 
   <body>
-    <section role="region" id="activityHeader" class="skin-organic">
-      <header>
-        <button id="activityClose"><span class="icon icon-close"></span></button>
+    <section role="region" id="activityHeader" class="skin-organic theme-settings">
+      <gaia-header id="header" action="close">
         <h1 id="activityTitle"></h1>
-      </header>
+      </gaia-header>
 
       <footer id="open-toolbar">
         <button class="toolbarButton pageUp" title="Previous Page" id="previous" data-l10n-id="previous"></button>
diff --git a/web/viewer.js b/web/viewer.js
index 49d7968..06dd580 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -2512,8 +2512,8 @@ window.addEventListener('afterprint', function afterPrint(evt) {
 //  var url = URL.createObjectURL(blob);
 //  PDFView.open(url);
 //
-//  var cancelButton = document.getElementById('activityClose');
-//  cancelButton.addEventListener('click', function() {
+//  var header = document.getElementById('header');
+//  header.addEventListener('action', function() {
 //    activity.postResult('close');
 //  });
 //});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list