Permalink
Browse files

First upload

  • Loading branch information...
attravis committed Apr 26, 2015
0 parents commit f8c27afaad09ad9e3d45d7b3ca93aea7fee562f4
Showing with 14,124 additions and 0 deletions.
  1. +10 −0 chrome.manifest
  2. BIN chrome/.DS_Store
  3. +558 −0 chrome/content/PolyBrowser.xul
  4. +101 −0 chrome/content/PolyExtensions.xul
  5. +20 −0 chrome/content/Preferences-Main.xul
  6. +12 −0 chrome/content/Preferences-Sync.xul
  7. +119 −0 chrome/content/aboutDialog.xul
  8. +17 −0 chrome/content/browser.css
  9. +1,096 −0 chrome/content/pBrowserHelper.js
  10. +346 −0 chrome/content/pButtonEvents.js
  11. +551 −0 chrome/content/pContexMenuHelper.js
  12. +36 −0 chrome/content/pFindHelper.js
  13. +32 −0 chrome/content/pInstallHelper.js
  14. +304 −0 chrome/content/pLoadHelper.js
  15. +205 −0 chrome/content/pMouseEvents.js
  16. +421 −0 chrome/content/pObserverHelper.js
  17. +10 −0 chrome/content/pSessionHelper.js
  18. +193 −0 chrome/content/pTabDragHelper.js
  19. +856 −0 chrome/content/pTabHelper.js
  20. +116 −0 chrome/content/pUpdateHelper.js
  21. +237 −0 chrome/content/pZoomHelper.js
  22. +281 −0 chrome/content/polyPrintUtils.js
  23. +5,552 −0 chrome/content/polyTabbrowser.xml
  24. +427 −0 chrome/content/polymarks.js
  25. +9 −0 chrome/content/polyname.js
  26. +19 −0 chrome/content/polyname.xul
  27. +1,948 −0 chrome/content/updates.js
  28. +282 −0 chrome/content/updates.xul
  29. BIN chrome/skin/.DS_Store
  30. BIN chrome/skin/16.png
  31. BIN chrome/skin/PolyBrowser.png
  32. BIN chrome/skin/Tab_Closehover.png
  33. BIN chrome/skin/Tab_Closenormal.png
  34. BIN chrome/skin/Tabbar_NewTabhover.png
  35. BIN chrome/skin/Tabbar_NewTabnormal.png
  36. BIN chrome/skin/Toolbar.png
  37. BIN chrome/skin/Toolbar_BackBtndown.png
  38. BIN chrome/skin/Toolbar_BackBtnhover.png
  39. BIN chrome/skin/Toolbar_BackBtnnormal.png
  40. BIN chrome/skin/Toolbar_ForwardBtndown.png
  41. BIN chrome/skin/Toolbar_ForwardBtnhover.png
  42. BIN chrome/skin/Toolbar_ForwardBtnnormal.png
  43. BIN chrome/skin/Toolbar_GoBtndown.png
  44. BIN chrome/skin/Toolbar_GoBtnhover.png
  45. BIN chrome/skin/Toolbar_GoBtnnormal.png
  46. BIN chrome/skin/Toolbar_HomeBtndown.png
  47. BIN chrome/skin/Toolbar_HomeBtnhover.png
  48. BIN chrome/skin/Toolbar_HomeBtnnormal.png
  49. BIN chrome/skin/Toolbar_NewTabBtnhover.png
  50. BIN chrome/skin/Toolbar_NewTabBtnnormal.png
  51. BIN chrome/skin/Toolbar_NewTabhover.png
  52. BIN chrome/skin/Toolbar_ReloadBtndown.png
  53. BIN chrome/skin/Toolbar_ReloadBtnhover.png
  54. BIN chrome/skin/Toolbar_ReloadBtnnormal.png
  55. BIN chrome/skin/Toolbar_StopBtndown.png
  56. BIN chrome/skin/Toolbar_StopBtnhover.png
  57. BIN chrome/skin/Toolbar_StopBtnnormal.png
  58. BIN chrome/skin/Zoom-Button.png
  59. +76 −0 chrome/skin/aboutDialog.css
  60. BIN chrome/skin/bookmarkDisable.png
  61. BIN chrome/skin/bookmarkEnable.png
  62. BIN chrome/skin/button1up.png
  63. BIN chrome/skin/favicons.png
  64. BIN chrome/skin/faviconsEnable.png
  65. BIN chrome/skin/loading.gif
  66. BIN chrome/skin/nav-bar-background.png
  67. BIN chrome/skin/newTabBgLens.png
  68. BIN chrome/skin/newTabBgPlain.png
  69. BIN chrome/skin/newTabBgPlainSmall.png
  70. BIN chrome/skin/polybrowser-logo.png
  71. BIN chrome/skin/polybrowserBg.jpg
  72. +15 −0 chrome/skin/polymarks.css
  73. BIN chrome/skin/polymsg.png
  74. BIN chrome/skin/resizer-thin.png
  75. BIN chrome/skin/resizer.png
  76. +249 −0 chrome/skin/style.css
  77. BIN chrome/skin/tBarBg.png
  78. BIN chrome/skin/tab-background-inactive.png
  79. BIN chrome/skin/tab-background_active.png
  80. BIN chrome/skin/toolbar-background.png
  81. BIN chrome/skin/zoom-scale.png
  82. +3 −0 defaults/preferences/prefWin.js
  83. +23 −0 install.rdf
@@ -0,0 +1,10 @@
+content PolyBrowser chrome/content/
+skin PolyBrowser classic/1.0 chrome/skin/
+overlay chrome://browser/content/browser.xul chrome://PolyBrowser/content/PolyBrowser.xul
+style chrome://browser/content/browser.xul chrome://PolyBrowser/content/browser.css
+override chrome://browser/content/aboutDialog.xul chrome://PolyBrowser/content/aboutDialog.xul
+overlay chrome://browser/content/preferences/main.xul chrome://PolyBrowser/content/Preferences-Main.xul
+overlay chrome://browser/content/preferences/sync.xul chrome://PolyBrowser/content/Preferences-Sync.xul
+override chrome://mozapps/content/update/updates.xul chrome://PolyBrowser/content/updates.xul
+overlay about:addons chrome://PolyBrowser/content/PolyExtensions.xul
+overlay chrome://mozapps/content/extensions/extensions.xul chrome://PolyBrowser/content/PolyExtensions.xul
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://mozapps/content/extensions/extensions.css"?>
+<?xml-stylesheet href="chrome://mozapps/skin/extensions/extensions.css"?>
+
+<!DOCTYPE page [
+<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
+%brandDTD;
+<!ENTITY % extensionsDTD SYSTEM "chrome://mozapps/locale/extensions/extensions.dtd">
+%extensionsDTD;
+]>
+
+<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ id="addons-page" title="&addons.windowTitle;"
+ role="application" windowtype="Addons:Manager"
+ disablefastfind="true"
+ ondragenter="gDragDrop.onDragOver(event)"
+ ondragover="gDragDrop.onDragOver(event)"
+ ondrop="gDragDrop.onDrop(event)"
+ onkeypress="gHeader.onKeyPress(event)">
+
+ <xhtml:link rel="shortcut icon"
+ href="chrome://mozapps/skin/extensions/extensionGeneric-16.png"/>
+
+ <script type="application/javascript"
+ src="chrome://mozapps/content/extensions/extensions.js"/>
+ <script type="application/javascript"
+ src="chrome://global/content/contentAreaUtils.js"/>
+
+
+ <!-- main header -->
+ <hbox id="header" align="left">
+ <toolbarbutton id="back-btn" class="nav-button header-button" command="cmd_back"
+ tooltiptext="&cmd.back.tooltip;" hidden="true" disabled="true"/>
+ <toolbarbutton id="forward-btn" class="nav-button header-button" command="cmd_forward"
+ tooltiptext="&cmd.forward.tooltip;" hidden="true" disabled="true"/>
+ <spacer flex="0"/>
+ <hbox id="updates-container" align="left">
+ <image class="spinner"/>
+ <label id="updates-noneFound" hidden="true"
+ value="&updates.noneFound.label;"/>
+ <button id="updates-manualUpdatesFound-btn" class="button-link"
+ hidden="true" label="&updates.manualUpdatesFound.label;"
+ command="cmd_goToAvailableUpdates"/>
+ <label id="updates-progress" hidden="true"
+ value="&updates.updating.label;"/>
+ <label id="updates-installed" hidden="true"
+ value="&updates.installed.label;"/>
+ <label id="updates-downloaded" hidden="true"
+ value="&updates.downloaded.label;"/>
+ <button id="updates-restart-btn" class="button-link" hidden="true"
+ label="&updates.restart.label;"
+ command="cmd_restartApp"/>
+ </hbox>
+
+ <toolbarbutton id="header-utils-btn" insertafter="header-search" class="header-button" type="menu"
+ tooltiptext="&toolsMenu.tooltip;">
+ <menupopup id="utils-menu">
+ <menuitem id="utils-updateNow"
+ label="&updates.checkForUpdates.label;"
+ accesskey="&updates.checkForUpdates.accesskey;"
+ command="cmd_findAllUpdates"/>
+ <menuitem id="utils-viewUpdates"
+ label="&updates.viewUpdates.label;"
+ accesskey="&updates.viewUpdates.accesskey;"
+ command="cmd_goToRecentUpdates"/>
+ <menuseparator id="utils-installFromFile-separator"/>
+ <menuitem id="utils-installFromFile"
+ label="&installAddonFromFile.label;"
+ accesskey="&installAddonFromFile.accesskey;"
+ command="cmd_installFromFile"/>
+ <menuseparator/>
+ <menuitem id="utils-autoUpdateDefault"
+ label="&updates.updateAddonsAutomatically.label;"
+ accesskey="&updates.updateAddonsAutomatically.accesskey;"
+ type="checkbox" autocheck="false"
+ command="cmd_toggleAutoUpdateDefault"/>
+ <menuitem id="utils-resetAddonUpdatesToAutomatic"
+ label="&updates.resetUpdatesToAutomatic.label;"
+ accesskey="&updates.resetUpdatesToAutomatic.accesskey;"
+ command="cmd_resetAddonAutoUpdate"/>
+ <menuitem id="utils-resetAddonUpdatesToManual"
+ label="&updates.resetUpdatesToManual.label;"
+ accesskey="&updates.resetUpdatesToManual.accesskey;"
+ command="cmd_resetAddonAutoUpdate"/>
+ </menupopup>
+ </toolbarbutton>
+
+ <textbox id="header-search" width="1" hidden="true" style="display:none"/> <!--type="search" searchbutton="true"
+ placeholder="&search.placeholder;" -->
+
+ </hbox>
+
+
+
+</page>
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+
+
+<overlay id="Preferences-Main" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+
+
+ <menulist id="browserStartupPage" preference="browser.startup.page" style="display:none;" />
+ <!-- This part isn't working yet
+ <menulist id="polyBrowserStartupPage" preference="browser.startup.page" insertafter="browserStartupPage">
+ <menupopup>
+ <menuitem label="Show My Home Page" value="1" id="browserStartupHomePage" style="display:none"/>
+ <menuitem label="Show a Blank Page" value="0" id="browserStartupBlank"/>
+ <menuitem label="Restore" value="3" id="browserStartupLastSession" />
+ </menupopup>
+ </menulist>
+ -->
+
+
+</overlay>
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+
+<?xml-stylesheet href="chrome://polybrowser/skin/style.css" type="text/css"?>
+<overlay id="PolySyncPaneOverlay"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+
+ <prefpane id="paneSync">
+ <label value="Sync between devices is coming. Stay tuned!" insertbefore="weavePrefsDeck" style="text-align:center;" />
+
+ </prefpane>
+</overlay>
@@ -0,0 +1,119 @@
+<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
+
+
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://browser/content/aboutDialog.css" type="text/css"?>
+<?xml-stylesheet href="chrome://branding/content/aboutDialog.css" type="text/css"?>
+
+<!DOCTYPE window [
+<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
+%brandDTD;
+<!ENTITY % aboutDialogDTD SYSTEM "chrome://browser/locale/aboutDialog.dtd" >
+%aboutDialogDTD;
+]>
+
+
+<window xmlns:html="http://www.w3.org/1999/xhtml"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ id="aboutDialog"
+ windowtype="Browser:About"
+ onload="pInit(event);"
+ onunload="onUnload(event);"
+ title="&aboutDialog.title;"
+ role="dialog"
+ aria-describedby="version distribution distributionId communityDesc contributeDesc trademark"
+ >
+
+ <script type="application/javascript" src="chrome://polybrowser/content/pUpdateHelper.js"/>
+
+ <vbox id="aboutDialogContainer">
+ <hbox id="clientBox">
+ <vbox id="leftBox" flex="1"/>
+ <vbox id="rightBox" flex="1">
+<label id="version">2.0</label>
+ <label id="distribution" class="text-blurb"/>
+ <label id="distributionId" class="text-blurb"/>
+
+ <vbox id="detailsBox">
+ <vbox id="updateBox">
+ <hbox id="updateButtonBox" >
+ <description class="text-blurb">
+ <label align="start" id="noUpdateAvailable">* PolyBrowser is up to date. </label>
+ <label align="start" id="updateAvailable" style="display:none;">* Update available! </label>
+ <button id="updateLink" label="Get the latest version..." align="start" style="display:none;" oncommand="downloadLatest();"/>
+ </description>
+
+ <button id="updateButton" align="start" style="display:none;"
+ oncommand="gAppUpdater.buttonOnCommand();"/>
+
+
+ <spacer flex="1"/>
+ </hbox>
+ <deck id="updateDeck" style="display:none;" orient="vertical">
+
+
+
+ <hbox id="checkingForUpdates" align="center">
+ <!-- <image class="update-throbber"/><label>&update.checkingForUpdates;</label> -->
+ </hbox>
+ <hbox id="checkingAddonCompat" align="center">
+ <!-- <image class="update-throbber"/><label>&update.checkingAddonCompat;</label> -->
+ </hbox>
+ <hbox id="downloading" align="center">
+ <!-- <image class="update-throbber"/><label>&update.downloading.start;</label><label id="downloadStatus"/><label>&update.downloading.end;</label> -->
+ </hbox>
+ <hbox id="applying" align="center">
+ <!-- <image class="update-throbber"/><label>&update.applying;</label> -->
+ </hbox>
+ <hbox id="downloadFailed" align="center">
+ <label>A new version of PolyBrowser is available.</label><label id="failedLink" class="text-link">&update.failed.linkText;</label><label>&update.failed.end;</label>
+ </hbox>
+ <hbox id="adminDisabled" align="center">
+ <!-- <label>&update.adminDisabled;</label> -->
+ </hbox>
+ <hbox id="noUpdatesFound" align="center">
+ <label>&update.noUpdatesFound;</label>
+ </hbox>
+ <hbox id="otherInstanceHandlingUpdates" align="center">
+ <label>&update.otherInstanceHandlingUpdates;</label>
+ </hbox>
+ <hbox id="manualUpdate" align="center">
+ <label>&update.manual.start;</label><label id="manualLink" class="text-link"/><label>&update.manual.end;</label>
+ </hbox>
+ <hbox id="unsupportedSystem" align="center">
+ <label>&update.unsupported.start;</label><label id="unsupportedLink" class="text-link">&update.unsupported.linkText;</label><label>&update.unsupported.end;</label>
+ </hbox>
+ </deck>
+ </vbox>
+ <!--
+ <description class="text-blurb" id="currentChannelText">
+ &channel.description.start;<label id="currentChannel"/>&channel.description.end;
+ </description>
+ -->
+ <vbox id="experimental" hidden="true">
+ <description class="text-blurb" id="warningDesc">
+ &warningDesc.version;
+ </description>
+ <description class="text-blurb" id="communityExperimentalDesc">
+ &community.exp.start;<label class="text-link" href="http://www.mozilla.org/">&community.exp.mozillaLink;</label>&community.exp.middle;<label class="text-link" href="about:credits">&community.exp.creditsLink;</label>&community.exp.end;
+ </description>
+ </vbox>
+ <description class="text-blurb" >PolyBrowser is a product of <label class="text-link" href="http://polysuite.com ">&community.mozillaLink;</label>. All rights reserved. Patent pending.</description>
+ <description class="text-blurb" id="communityDesc">
+ <!--&community.start2; -->
+ PolyBrowser is made possible through resources provided by
+ <label class="text-link" href="http://www.mozilla.org/">Mozilla</label>&community.middle2;<label class="text-link" href="about:credits">&community.creditsLink;</label>&community.end3;
+ </description>
+ </vbox>
+ </vbox>
+ </hbox>
+ <vbox id="bottomBox">
+ <description id="trademark">&trademarkInfo.part1;</description>
+ </vbox>
+ </vbox>
+
+ <keyset>
+ <key keycode="VK_ESCAPE" oncommand="window.close();"/>
+ </keyset>
+
+</window>
@@ -0,0 +1,17 @@
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+
+/* Hide Firefox tabs and content in background */
+#tabbrowser-tabs{height:1px; !important}
+#content{height:0px; !important}
+
+tabbrowser {
+ -moz-binding: url("chrome://PolyBrowser/content/polyTabbrowser.xml#tabbrowser");
+}
+
+statuspanel {
+ position: fixed;
+ bottom: 15px;
+ left: 0px;
+ z-index: 100;
+ flex: 0;
+}
Oops, something went wrong.

0 comments on commit f8c27af

Please sign in to comment.