Aza Raskin
553422408d
+ Removed the big reset button (it is still available in the dev menu)
2010-07-29 13:58:02 -07:00
Edward Lee
bfec53a2a0
Just use instanceof Ci.nsIDOMElement for Utils.isDOMElement for bug 582023.
2010-07-29 13:15:21 -07:00
Edward Lee
371bc096ca
Simplify Utils.merge to use Array.forEach and Array.push for bug 582023.
2010-07-29 13:02:51 -07:00
Edward Lee
eee4049234
Bug 583044 - Rename code references of TabCandy to TabView
...
Move files and update references to tabview from tabcandy. Only remaining candy reference is the link to aza's webm video.
--HG--
rename : browser/base/content/browser-tabcandy.js => browser/base/content/browser-tabview.js
rename : browser/base/content/tabcandy/app/drag.js => browser/base/content/tabview/drag.js
rename : browser/base/content/tabcandy/app/groups.js => browser/base/content/tabview/groups.js
rename : browser/base/content/tabcandy/app/infoitems.js => browser/base/content/tabview/infoitems.js
rename : browser/base/content/tabcandy/core/iq.js => browser/base/content/tabview/iq.js
rename : browser/base/content/tabcandy/app/items.js => browser/base/content/tabview/items.js
rename : browser/base/content/tabcandy/core/profile.js => browser/base/content/tabview/profile.js
rename : browser/base/content/tabcandy/app/storage.js => browser/base/content/tabview/storage.js
rename : browser/base/content/tabcandy/app/tabitems.js => browser/base/content/tabview/tabitems.js
rename : browser/base/content/tabcandy/tabcandy.css => browser/base/content/tabview/tabview.css
rename : browser/base/content/tabcandy/tabcandy.html => browser/base/content/tabview/tabview.html
rename : browser/base/content/tabcandy/tabcandy.js => browser/base/content/tabview/tabview.js
rename : browser/base/content/tabcandy/app/trench.js => browser/base/content/tabview/trench.js
rename : browser/base/content/tabcandy/app/ui.js => browser/base/content/tabview/ui.js
rename : browser/themes/gnomestripe/browser/tabcandy/edit-light.png => browser/themes/gnomestripe/browser/tabview/edit-light.png
rename : browser/themes/gnomestripe/browser/tabcandy/edit.png => browser/themes/gnomestripe/browser/tabview/edit.png
rename : browser/themes/gnomestripe/browser/tabcandy/new-tab.png => browser/themes/gnomestripe/browser/tabview/new-tab.png
rename : browser/themes/gnomestripe/browser/tabcandy/platform.css => browser/themes/gnomestripe/browser/tabview/platform.css
rename : browser/themes/gnomestripe/browser/tabcandy/stack-expander.png => browser/themes/gnomestripe/browser/tabview/stack-expander.png
rename : browser/themes/gnomestripe/browser/tabcandy/tabcandy.png => browser/themes/gnomestripe/browser/tabview/tabview.png
rename : browser/themes/pinstripe/browser/tabcandy/edit-light.png => browser/themes/pinstripe/browser/tabview/edit-light.png
rename : browser/themes/pinstripe/browser/tabcandy/edit.png => browser/themes/pinstripe/browser/tabview/edit.png
rename : browser/themes/pinstripe/browser/tabcandy/new-tab.png => browser/themes/pinstripe/browser/tabview/new-tab.png
rename : browser/themes/pinstripe/browser/tabcandy/platform.css => browser/themes/pinstripe/browser/tabview/platform.css
rename : browser/themes/pinstripe/browser/tabcandy/stack-expander.png => browser/themes/pinstripe/browser/tabview/stack-expander.png
rename : browser/themes/pinstripe/browser/tabcandy/tabcandy.png => browser/themes/pinstripe/browser/tabview/tabview.png
rename : browser/themes/winstripe/browser/tabcandy/edit-light.png => browser/themes/winstripe/browser/tabview/edit-light.png
rename : browser/themes/winstripe/browser/tabcandy/edit.png => browser/themes/winstripe/browser/tabview/edit.png
rename : browser/themes/winstripe/browser/tabcandy/new-tab.png => browser/themes/winstripe/browser/tabview/new-tab.png
rename : browser/themes/winstripe/browser/tabcandy/platform.css => browser/themes/winstripe/browser/tabview/platform.css
rename : browser/themes/winstripe/browser/tabcandy/stack-expander.png => browser/themes/winstripe/browser/tabview/stack-expander.png
rename : browser/themes/winstripe/browser/tabcandy/tabcandy.png => browser/themes/winstripe/browser/tabview/tabview.png
2010-07-29 12:37:25 -07:00
Edward Lee
09f7fbde67
Move utils.js into a javascript module that exports Point, Rect, Range, Subscribable, and Utils for bug 582023.
...
--HG--
rename : browser/base/content/tabcandy/core/utils.js => browser/base/content/tabview/modules/utils.js
extra : rebase_source : 8fea0b5439bcc45464f029609ff125e284b74731
2010-07-28 22:21:34 -07:00
Raymond Lee
d5545c461c
Update the Tabs.onClose() to fix the unit test issues
2010-07-29 13:06:03 +08:00
Michael Yoshitaka Erlewine
e0e34848a1
Bug 582023: rm iQ.get, as we were only using it in one way.
2010-07-28 23:02:26 -06:00
Edward Lee
cb84d4296b
Move lazy gWindow, gBrowser, etc into tabcandy.js out of utils.js for bug 582023.
2010-07-28 21:56:31 -07:00
Edward Lee
60558ea46b
Clean up spaces around (), [], , in iq and utils for bug 577968.
2010-07-28 21:40:55 -07:00
Michael Yoshitaka Erlewine
b8235bf5e5
Bug 582023: iQ changes based on comments from gavin
...
- let is the new var, no multiple declarations on the same line.
- renamed iQ.fn.init to be iQClass, iQ.fn to be iQClass.prototype, to look much more normal. iQ now just creates a new iQClass. No more brain hurt.
- no more (function(){...}) closure
- Array.prototype.xxx.call replaced by Array.xxx
- a couple other changes recommended by gavin.
- Utils: rm some comments, but haven't touched JSM, isDOMElement, or merge.
2010-07-28 21:33:43 -06:00
Edward Lee
70617a58a7
Followup to bug 580952 so that only tabs from the current window are handled.
2010-07-28 14:20:41 -07:00
Edward Lee
9d56185052
Merge mozilla-central to tabcandy-central.
2010-07-27 21:39:47 -07:00
Michael Yoshitaka Erlewine
6af815e8ba
Merge: reimplementing some changes to mirror.js by Mardak into the corresponding parts of tabitems.js
2010-07-27 22:13:02 -06:00
Michael Yoshitaka Erlewine
6e27f57913
Merge mirror.js + tabitems.js:
...
- Merge TabMirror into TabItems
- Merge Mirror into TabItem
- TabItem now implements Subscribable, just like Group and InfoItem; rm addOnClose, removeOnClose and use addSubscriber, removeSubscriber directly; Item now checks that subclasses implement Subscribable
- merge Mirror + TabItem constructors; rm TabMirror/TabItems.createNewTab
- xul:tab no longer gets a .mirror added to it. Instead it now gets its TabItem set to .tabItem
- rm TabItems.getItemByTabElement, as it is no longer necessary
- Mirror used .el to store its DOM element... now just using .container, which TabItem used
--HG--
extra : rebase_source : 140e5bcdd89cf9ea4e1eb1dafc4da56aa164669b
2010-07-27 21:02:51 -06:00
Aza Raskin
91c8a69ebb
+ Switched the help video in the first-run experience to a draft video.
...
--HG--
extra : rebase_source : a3e26f399e58d5c19de94f068ace3d139487c369
2010-07-27 18:38:27 -07:00
Raymond Lee
01085f6a20
Don't show tab candy if closing the last tab and not in the tab candy view
2010-07-28 09:24:52 +08:00
Edward Lee
056d0e40d3
Bug 580952 - Expose an Tabs module that handles tabs from all browser windows
...
Replace the existing Tabs/TabsManager object with the Tabs module that exposes allTabs, onChange, onClose, onMove, onOpen, onSelect.
2010-07-22 12:35:11 -07:00
Raymond Lee
61defd5174
Bug 581894 - App tabs appear on top of normal tabs on startup [r=iangilman]
2010-07-26 15:38:34 +08:00
Ian Gilman
219035b240
+ merge (forgot to rebase)
2010-07-27 16:20:14 -07:00
Ian Gilman
0fceaf9723
+ Added some simple time profiling. Set Profile.silent to false to see it in the message log in the JavaScript console
2010-07-27 16:18:55 -07:00
Michael Yoshitaka Erlewine
60bd2fb2ac
UI: merge init and _secondaryInit
2010-07-27 17:17:56 -06:00
Michael Yoshitaka Erlewine
92f033eb27
Frank Yan
2010-07-27 10:38:21 -06:00
Frank Yan
3a7ae7cc0f
Bug 582200: rm cross-browser code from iQ, follow Mozilla style better, r=mitcho
2010-07-27 10:07:17 -06:00
Raymond Lee
15aec25111
Call setReorderTabsOnHide() when Groups.add() is called
2010-07-27 09:30:56 +08:00
Ian Gilman
7567c47a98
+ We now do no work while the script is loading; everything waits until the UI.init() call at the very bottom
...
--HG--
extra : rebase_source : 301788f78500bfe57512b0df396cb6be2ca8a02f
2010-07-26 17:15:19 -07:00
Ian Gilman
9bfa6cdfd4
+ A tab's thumbnail canvas its cached thumbnail image are now stacked on top of each other, which fixes some dragging bugs (during the brief time in the cached image is visible)
...
--HG--
extra : rebase_source : 8ae2fc050dfd81e9c4797e7c0790a0c9a677f336
2010-07-26 10:54:25 -07:00
Edward Lee
bdda5ebf55
Bug 578147 - Backout tabbrowser.xml changes from bug 576393.
2010-07-26 16:02:14 -07:00
Edward Lee
7044d8a070
Prepare to backout d4a42b589b7c from bug 576393.
2010-07-26 15:56:25 -07:00
Edward Lee
5e3e74abe5
Call updateTabBarForActiveGroup so that Group is correctly set for this.
2010-07-26 13:37:51 -07:00
Edward Lee
1cdc11aa6d
Merge mozilla-central to tabcandy-central.
2010-07-26 11:05:28 -07:00
Edward Lee
daf47c6635
Switch to Array.isArray from Utils.isArray.
2010-07-26 11:02:52 -07:00
Raymond Lee
913bb33177
Remove a legacy statement
2010-07-26 17:27:21 +08:00
Edward Lee
1230b6cdb2
Bug 581612 - Add showOnlyTheseTabs functionality to tabbrowser
...
Move and simplify showOnlyTheseTabs functionality into tabbrowser now that there's no reordering happening on show.
2010-07-25 22:01:11 -07:00
Raymond Lee
d3a413c7e6
Bug 580847 - Lots of unnecessary TabMove events
2010-07-26 11:53:21 +08:00
Edward Lee
98aff850d0
Bug 581736 - Show app tabs from any group
...
Don't hide app tabs but this will cause strange reorderings for now.
2010-07-24 17:13:06 -07:00
Edward Lee
781cd6dc0d
Resolve merge conflicts for bug 581732.
2010-07-24 16:54:21 -07:00
Edward Lee
fc3df268de
Bug 581732 - Merge mozilla-central to tabcandy-central 2010/07/24 (with conflicts).
2010-07-24 16:48:38 -07:00
Edward Lee
04122a215d
Don't save a tab that has no parent (it's closing).
2010-07-24 16:28:17 -07:00
Edward Lee
09f130d786
Inline isFunction as typeof == function checks.
2010-07-23 19:29:32 -07:00
Raymond Lee
50ded64f4e
Roll Tabbar methods into UIManager
2010-07-24 09:43:02 +08:00
Michael Yoshitaka Erlewine
04c55c2585
Utils + iQ cleanup!
...
- utility functions in iQ have been moved to Utils: isFunction, isArray, isPlainObject, isEmptyObject, merge, extend, timeout
- iQ depends on Utils. Utils no longer depends on iQ.
- simplified Utils.extend. Deep copy is no longer supported, nor is extending iQ and iQ.fn using extend. They were not being used.
--HG--
extra : rebase_source : ab8f86e4e6a65cb747bc79ae0aa36cb39819421a
2010-07-23 17:33:02 -04:00
Edward Lee
a6ee144dd3
Merge "backout" of TabItem.close removal.
2010-07-23 14:27:41 -07:00
Edward Lee
100e588c2d
Followup to bug 580937 to implement TabItem.close with xul:tabs instead of BrowserTab.
2010-07-23 14:26:17 -07:00
Raymond Lee
eab27dab9e
Bug 581267: Merge Page and UIClass
2010-07-23 15:03:40 +08:00
Edward Lee
6610e8bf00
Bug 581286 - Don't duplicate tabbox.advanceSelectedTab and key handling code
...
Prevent tabs from showing up in the tabbar by hiding them instead of collapsing so that existing tabbox code knows to skip over them. Remove key handling code except for activating tabcandy and switching groups.
2010-07-22 23:33:07 -07:00
Edward Lee
fe98e5c9fe
Remove unnecessary isIframe as tab content document will be just inside a browser.
2010-07-22 22:45:03 -07:00
Edward Lee
ca2e9577a7
Followup bug 580870 to rename gTabDeck/gTabFrame to gTabView*.
2010-07-22 22:41:58 -07:00
Michael Yoshitaka Erlewine
193a5976c1
Rewrote various scaling/easing functions in terms of the Range's, with the new proportion and scale methods.
...
- removed Math.tanh, instead moving it into the Range proportion method for its "smooth" option
+ rewrote TabItem close button opacity and title font size using the new Range utilities. Should make code a tad easier to follow.
2010-07-23 00:35:07 -04:00
Michael Yoshitaka Erlewine
000664e278
Bug 579223: got snapping to work for tab-on-tab phantom groups.
2010-07-22 23:40:25 -04:00
Michael Yoshitaka Erlewine
2077c04503
Bug 579223: using Aza's recommendation, centering tab-on-tab phantom group around the drop target tab (no snapping yet).
...
+ fixing font size adjustment while tabitem is resized
--HG--
extra : rebase_source : b93cafa6f0601c9609d362a2312c1abe70fe3346
2010-07-22 22:24:31 -04:00