Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed size and pined size of VerticalTabs #40

Open
wants to merge 86 commits into
base: apptabs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
dbb4047
Ensure that statuspanel doesn't overflow and expand the browser window.
Feb 25, 2011
e20a693
Update tab close buttons on OS X.
Feb 25, 2011
74adc7e
Revert "Update tab close buttons on OS X."
Feb 25, 2011
9f6f581
Accomodate recent theme changes on Windows and OS X.
Feb 25, 2011
9d05725
Prepare 0.7.3 release
philikon Feb 25, 2011
706f1b0
Bump version number after release
philikon Feb 25, 2011
14cb09e
Fix statuspanel, especially its right-aligned state.
Feb 26, 2011
0980e85
Prepare 0.7.4 release
philikon Feb 26, 2011
786ce54
Bump version number after release
philikon Feb 26, 2011
0f9d35d
Adjust Tabs Toolbar and addon-bar height.
Mar 5, 2011
97e1ffa
Native tooltip look + drop shadow for links.
Mar 6, 2011
d9b4f08
cosmetic changes
Mar 6, 2011
541e3ef
fix bottom of splitter
Mar 6, 2011
d954975
Removed border and splitter hack.
Mar 6, 2011
77c0afc
Added left border and border radius to Tab toolbar style.
Mar 6, 2011
65a516d
Better margins and padding for link display.
Mar 6, 2011
05fc59f
More margin adjustments for link display.
Mar 6, 2011
b3f2fc3
Fix styling with Persona
philikon Mar 15, 2011
0e548b8
Allow tabs to be placed on the right, using a l33t haxx0r pref.
philikon Mar 15, 2011
7fdde68
Fixes to make the toolbar and splitter fullscreen friendly. Also fixe…
Mar 15, 2011
00842d4
Fixed small regression in previous commit.
Mar 15, 2011
770810e
Added adjustments for link display on linux.
Mar 19, 2011
a941e21
Merge bb10's theming improvements
philikon Mar 25, 2011
cb67e85
Bump compatibility
philikon Mar 25, 2011
8be2d68
Prepare 0.8 release
philikon Mar 25, 2011
38e3511
Bump version number after release
philikon Mar 25, 2011
cfe7b9d
Get rid of unused file
philikon Mar 27, 2011
b104ee1
First stab at making VT restartless
philikon Apr 4, 2011
386fbbd
Bump compatibility
philikon Apr 14, 2011
6a58168
Fix pref clean up
philikon Jun 20, 2011
d38ce43
Bump compat
philikon Jun 20, 2011
33ddd45
Factor out window-based loading to Labs's utils.js
philikon Jun 20, 2011
37e4f49
Streamline bootstrap code
philikon Jun 20, 2011
68cbe57
Implement unloaders (except for tabs on top)
philikon Jun 20, 2011
3d18f51
Install the right stylesheet on Linux
philikon Jun 26, 2011
42e457e
Get rid of useless files.
philikon Jun 26, 2011
7a9dc4b
Restore tabs on top functionality on unload, too
philikon Jun 26, 2011
755e8f2
Fix Windows styling
philikon Jun 26, 2011
ee4113c
Combine all the patch-y stuff into one JSM
philikon Jun 27, 2011
2d931bb
Don't expose the group feature in the UI anymore
philikon Jun 27, 2011
f7e25d9
Get rid of useless file
philikon Jun 27, 2011
390e575
Flatten dir hierarchy a bit for JSMs, add MPL tri licence header
philikon Jun 27, 2011
6f0bf3d
Get rid of 'content' dir altogether
philikon Jun 27, 2011
39c4529
Let's not promise too much
philikon Jun 27, 2011
a756811
Update tab drag'n'drop monkey patches for the changes bug 455694 intr…
philikon Aug 18, 2011
d120d58
Some drag'n'drop fixes related to scrolling.
philikon Aug 18, 2011
5bca928
Disable tab animations. They're wonky and not really needed for verti…
philikon Aug 18, 2011
66cb1c4
Don't force all tabs preview
philikon Sep 13, 2011
2e89e31
Properly restore 'browser.tabs.animate' pref.
philikon Sep 13, 2011
066059e
Prepare release
philikon Sep 13, 2011
1214194
Bump version after release
philikon Sep 13, 2011
91272b8
Register the event handler the same way we're unregistering it, so th…
philikon Sep 13, 2011
9f17814
Add inline option for tabs on the right to the add-on manager page
philikon Sep 13, 2011
f8ca36b
Observe the change for the tabs on the right pref and apply it immedi…
philikon Sep 13, 2011
83ee882
Prepare release
philikon Sep 13, 2011
918c59c
Bump version number after release
philikon Sep 13, 2011
49ecc1b
Avoid AddonManager.getAddon() call on startup.
philikon Sep 14, 2011
aec8cf8
Bring back old tab dragging code since bug 455694 got backed out.
philikon Nov 19, 2011
29eccf2
Prepare release
philikon Nov 19, 2011
35d2d59
Bump version number after release
philikon Nov 19, 2011
e1614fe
Assume browser supports orient=vertical sanely for drag and drop and …
Oct 2, 2012
5a3582b
Fix theme uglyness
vvuk Oct 3, 2012
b5e8e34
fix up install.rdf
vvuk Oct 3, 2012
7645329
Change the way this works; import local tabbrowser.xml and override t…
Oct 3, 2012
566d828
Fixed tabs move (for FF17+), and added tabs copy (press Ctrl while dr…
Tey Jan 5, 2013
54644a8
Fixed the display of the tab drop indicator for both tab copy and move.
Tey Jan 8, 2013
1af85af
Update for Fx 22
vvuk Mar 25, 2013
b6f398f
Don't init stale group code.
philikon Apr 14, 2013
a004eb0
Death to anonymous functions.
philikon Apr 14, 2013
298680a
Prepare release.
philikon Apr 14, 2013
84811f8
Bump version number after release.
philikon Apr 14, 2013
72e3061
Update for Nightly 27
vvuk Sep 26, 2013
a106fd6
Preliminary work to support Australis/28
vvuk Nov 19, 2013
206e04f
Fixes to tab dragging for Australis
vvuk Nov 19, 2013
8f8e5a5
Keep the default link display look
damag Dec 8, 2013
132da20
Merge pull request #30 from damag/patch-1
philikon Dec 9, 2013
b764b0a
More Australis fixes. Core vertical tabs are usable.
vvuk Dec 22, 2013
2943dd5
Make room for window buttons on the right side of window
vvuk Dec 23, 2013
9dc7d90
Bump install.rdf version number
vvuk Dec 23, 2013
1b89833
Update SOURCES to included skin files as dependencies
Jan 8, 2014
990a410
Fix up drawing of address bar, etc in titlebar on OSX
Feb 18, 2014
27a5d5f
Merge pull request #2 from djg/fix-draw-in-titlebar
vvuk Mar 13, 2014
c08b666
Switch to vvuk's fork
philikon Mar 13, 2014
ca13c9d
Align tab label left on OSX
philikon Mar 13, 2014
4e8a4f8
Prepare beta release
philikon Mar 13, 2014
34f11cf
Bump version number after release
philikon Mar 13, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build
release.xpi
*~
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

SOURCES = \
README.txt \
bootstrap.js \
chrome.manifest \
groups.jsm \
install.rdf \
multiselect.jsm \
options.xul \
override-bindings.css \
skin/base.css \
skin/bindings.css \
skin/groups.xml \
skin/linux/linux.css \
skin/osx/closetab-white.png \
skin/osx/closetab.png \
skin/osx/dropmarker.png \
skin/osx/osx.css \
skin/osx/twisty.png \
skin/win7/dropmarker.png \
skin/win7/twisty-collapsed.png \
skin/win7/twisty.png \
skin/win7/win7.css \
tabdatastore.jsm \
utils.js \
vertical-tabbrowser.xml \
verticaltabs.jsm \
$(NULL)

all: release.xpi

release.xpi: $(SOURCES)
rm -f $@
zip -9r $@ $(SOURCES)
6 changes: 3 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Vertical Tabs for Firefox 4
===========================
Vertical Tabs for Firefox 27 and beyond
=======================================

This Firefox add-on arranges tabs in a vertical rather than horizontal
fashion. It is heavily inspired by and borrows ideas from the excellent
Expand All @@ -11,7 +11,7 @@ Goals:
some group-related features (collapse group, tab previews, etc.)

* Very few other features and hopefully little or no preference settings.
Instead a good JavaScript API shall be provided for other extensions
Instead a good JavaScript API might be provided for other extensions
(e.g. JetPack SDK based) to provide additional features.

* Native look and feel.
Expand Down
122 changes: 122 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Vertical Tabs.
*
* The Initial Developer of the Original Code is
* Philipp von Weitershausen.
* Portions created by the Initial Developer are Copyright (C) 2011
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */

const {classes: Cc, interfaces: Ci, utils: Cu} = Components;

Cu.import("resource://gre/modules/Services.jsm");

const RESOURCE_HOST = "verticaltabs";
const PREF_BRANCH = "extensions.verticaltabs.";
const DEFAULT_PREFS = {
"extensions.verticaltabs.width": 250,
"extensions.verticaltabs.right": false,
};

/**
* Load and execute another file.
*/
let GLOBAL_SCOPE = this;
function include(src) {
Services.scriptloader.loadSubScript(src, GLOBAL_SCOPE);
}

/**
* Declare a bunch of default preferences.
*/
function setDefaultPrefs() {
let branch = Services.prefs.getDefaultBranch("");
for (let [name, value] in Iterator(DEFAULT_PREFS)) {
switch (typeof value) {
case "boolean":
branch.setBoolPref(name, value);
break;
case "number":
branch.setIntPref(name, value);
break;
case "string":
branch.setCharPref(name, value);
break;
}
}
}

function install() {
}

function startup(data, reason) {
// Load helpers from utils.js.
include(data.resourceURI.spec + "utils.js");

// Back up 'browser.tabs.animate' pref before overwriting it.
try {
Services.prefs.getBoolPref("extensions.verticaltabs.animate");
} catch (ex if (ex.result == Components.results.NS_ERROR_UNEXPECTED)) {
let animate = Services.prefs.getBoolPref("browser.tabs.animate");
Services.prefs.setBoolPref("extensions.verticaltabs.animate", animate);
Services.prefs.setBoolPref("browser.tabs.animate", false);
}
unload(function () {
let animate = Services.prefs.getBoolPref("extensions.verticaltabs.animate");
Services.prefs.setBoolPref("browser.tabs.animate", animate);
});

// Set default preferences.
setDefaultPrefs();

// Register the resource:// alias.
let resource = Services.io.getProtocolHandler("resource")
.QueryInterface(Ci.nsIResProtocolHandler);
resource.setSubstitution(RESOURCE_HOST, data.resourceURI);
unload(function () {
resource.setSubstitution(RESOURCE_HOST, null);
});

// Initialize VerticalTabs object for each window.
Cu.import("resource://verticaltabs/verticaltabs.jsm");
watchWindows(function(window) {
let vt = new VerticalTabs(window);
unload(vt.unload.bind(vt), window);
}, "navigator:browser");
};

function shutdown(data, reason) {
if (reason == APP_SHUTDOWN) {
return;
}
unload();
// Unloaders might want access to prefs, so do this last
Services.prefs.getDefaultBranch(PREF_BRANCH).deleteBranch("");
}
10 changes: 1 addition & 9 deletions chrome.manifest
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
content verticaltabs content/
skin verticaltabs classic/1.0 skin/
locale verticaltabs en-US locale/en-US/

overlay chrome://browser/content/browser.xul chrome://verticaltabs/content/browser.xul

override chrome://verticaltabs/skin/platform.css chrome://verticaltabs/skin/osx/osx.css os=Darwin
override chrome://verticaltabs/skin/platform.css chrome://verticaltabs/skin/win7/win7.css os=WINNT
override chrome://verticaltabs/skin/platform.css chrome://verticaltabs/skin/linux/linux.css os=Linux
content verticaltabs vertical-tabbrowser.xml
3 changes: 0 additions & 3 deletions content/bindings.css

This file was deleted.

62 changes: 0 additions & 62 deletions content/browser.xul

This file was deleted.

103 changes: 0 additions & 103 deletions content/tabbrowser.js

This file was deleted.

Loading