Source Code File Contents - PolySuite/PolyBrowser GitHub Wiki
#Source Code File Contents This is a rundown of the important source code files for PolyBrowser, their function and contents.
chrome.manifest Sets which of PolyBrowser's files overlay or replace of the native Firefox files
PolyBrowser.xul Overlays Firefox's browser.xul, which is where much of the browser is defined. Includes commands, shortcuts, overall layout and menus.
pBrowserHelper.js Includes code for many core functions for PolyBrowser, including loading websites, navigating between tabs and other key utility functions.
pObserverHelper.js Contains functions that observe tabs that are opened in the background (Layer 1) and opens them in PolyBrowser (Layer 2) instead. Also observes various parts of the UI and dynamically updates them as needed.
pLoadHelper.js Functions that run at startup that reposition UI elements, activate/deactivate elements and genrally prep PolyBrowser.
pTabHelper.js Builds PolyBrowser tabs and browsers and places them into the correct location within the interface.
polyTabbrowser.xml This overwrites some key functions of Firefox's tabbrowser.xml to make them work for PolyBrowser (returns PolyBrowser references on Layer 2, instead of the Firefox Layer 1). This allows Polybrowser to be compatible with Firefox's extensions, and enables some native Firefox functions to work properly as well.
browser.css This is how PolyBrowser overwrites the native tabbrowser.xml with our own mapping.
pMouseHelper.js Controls the effects of mouse actions on UI elements, as well as dragging to scroll horizontally between websites.
pButtonHelper.js Contains functions for various buttons, including browser and tab controls.
pZoomHelper.js Controls zooming of PolyBrowser in and out, via mouse drag, UI Menu Slider or hotkeys.
pUpdateHelper.js Checks and compares the local version with a remote server to see if an update is available.
pTabDragHelper.js Used for dragging tabs to reorder or open into new windows.