Commit Graph

3153 Commits

Author SHA1 Message Date
Raymond Lee
5689b68708 Fixed failing test after the name change to GroupItem(s) (Bug 583414) 2010-08-09 15:29:42 +08:00
Raymond Lee
b24a21ba0d Bug 585155 - Zoom in animation doesn't work when adding a new tab in tab candy interface 2010-08-09 15:01:30 +08:00
Raymond Lee
0832814e00 Initialize frame if needed when user is switching to another group using keyboard combination 2010-08-09 13:16:39 +08:00
Michael Yoshitaka Erlewine
ac9f4d6a09 rm setSize during tabs' group-removal. Bottom line: tabs no longer shrink and block jerk the dragging when being dragged out of a group. 2010-08-09 00:17:03 -04:00
Michael Yoshitaka Erlewine
2c33d9a516 Bug 584699: quick fix to -moz-transform rendering bug
--HG--
extra : rebase_source : 89019c5a0acff884ab47f18b96503435c6a56e7e
2010-08-09 00:06:54 -04:00
Michael Yoshitaka Erlewine
79731acdaa Bug 584699: quick fix to -moz-transform rendering bug
--HG--
extra : rebase_source : 89019c5a0acff884ab47f18b96503435c6a56e7e
2010-08-09 00:06:54 -04:00
Raymond Lee
5b0ae1ddd6 Bug 585148 - Showing tabcandy for the first time results in many showOnlyTheseTabs 2010-08-09 11:52:26 +08:00
Michael Yoshitaka Erlewine
25cd73765e quick touchup to GroupItems.getnextGroupItemTab 2010-08-08 23:41:07 -04:00
Michael Yoshitaka Erlewine
4f7f711946 s/updateTabBarForActiveGroupItem/updateTabBar/; rm some tabs (don't worry, the whitespace kind) 2010-08-08 21:54:22 -04:00
Michael Yoshitaka Erlewine
18ca5dc914 Bug 567391 + 575851: If we enter an orphan tab, only that tab should show up in the tab bar. 2010-08-08 21:49:43 -04:00
Michael Yoshitaka Erlewine
f59d44241d Bug 575851: Are You Experienced? The New Tab Experience
- refine the use of the "active group item", with differential styling, and not clearing when we enter the tab view
- set the active group item in other cases, like when we drag out groups, when we resize or move a group, or when a group is a drop target
2010-08-08 20:27:47 -04:00
Michael Yoshitaka Erlewine
aec521be06 Bug 575851: kill the now defunct New Tab Group. 2010-08-08 18:47:06 -04:00
Michael Yoshitaka Erlewine
355fe0818e Bug 575851: some touchups to previous New Tab Experience code, based on comments by Ian 2010-08-08 18:32:08 -04:00
Raymond Lee
29c9156549 Ensure the frame is initialized when user accesses the tab context menu 2010-08-09 01:28:24 +08:00
Raymond Lee
8ffe9bee30 Fixed some references after the name change to GroupItem(s) (Bug 583414) 2010-08-09 01:03:11 +08:00
Michael Yoshitaka Erlewine
99d738c1ed Fixed failing test after the name change to GroupItem(s) (Bug 583414) 2010-08-07 22:51:20 -04:00
Edward Lee
e5816558b6 Merge mozilla-central to tabcandy-central. 2010-08-07 16:44:33 -07:00
Ehsan Akhgari
1675bf808b Bug 583388 - Delay loading the Tab Candy frame 2010-08-07 18:32:17 -04:00
Dão Gottwald
f7b55ef5dd browser_bug380960.js debug spew 2010-08-07 23:19:18 +02:00
Kurt Schultz
65445d4623 Bug 571782 - Make "New Tab" a split menu button that includes "New Tab" and "New Window" options. ui-r=faaborg r=dao 2010-08-07 09:08:47 +02:00
Edward Lee
33f364fd3d Remove unnecessary try/catch wrapping around a timeout-ed call.
--HG--
extra : rebase_source : 3b608473ff899668acea4e0e6964734c9db4d01d
2010-08-06 17:16:28 -07:00
Edward Lee
699692f9eb Remove unnecessary try/catch wrapping around a timeout-ed call.
--HG--
extra : rebase_source : 3b608473ff899668acea4e0e6964734c9db4d01d
2010-08-06 17:16:28 -07:00
Ian Gilman
cd78c7f4dc + Started groups.js module (nothing to see yet)
+ Fixed assert caused by the recent change from Tabs to AllTabs
2010-08-06 17:02:21 -07:00
Ian Gilman
502cc2969a + Renamed Group and Groups to GroupItem and GroupItems, respectively
+ Fixed a bug in "group sites"

--HG--
rename : browser/base/content/tabview/groups.js => browser/base/content/tabview/groupitems.js
extra : rebase_source : 06525a410c9f3a7d3a3f3023d6b1b520295a8fe6
2010-08-06 15:46:55 -07:00
Edward Lee
0abeebc996 Prepare for bug 584532 by renaming Tabs and T -> AllTabs, allTabs -> tabs, browsers -> browserWindows, and removing QI(nsIObserver).
--HG--
rename : browser/base/content/tabview/modules/tabs.js => browser/base/content/AllTabs.js
extra : rebase_source : 1eedbcbdbda0895f12170f93c55b6946612d8819
2010-08-06 15:19:57 -07:00
Ian Gilman
c6989ca261 + a little cleanup for Bug 575851 - Implement the revised New Tab Experience
--HG--
extra : rebase_source : e0a4063328d2019eaf375a57b85a7b4617fabc4a
2010-08-06 14:22:56 -07:00
Dão Gottwald
1c5b4b905e Bug 380960 - Implement closing tabs animation. r=fyan,gavin
--HG--
extra : rebase_source : c0d4192450a1017be7c8907a0cba6c9afab1028e
2010-08-06 22:15:18 +02:00
Raymond Lee
fdcae00d85 Fixed a typo for Bug 576408 - Implement the downgraded tab triage experience 2010-08-07 03:52:14 +08:00
Edward Lee
c3c6e69bb9 Backout d6a355524fcb from bug 581894 now that bug 579869 is fixed. 2010-08-06 12:47:16 -07:00
Robert Sayre
ca10e5d657 Merge mozilla-central to tracemonkey. 2010-08-06 15:41:41 -07:00
Blake Kaplan
1d50e48fc8 Bug 584261 - Initialize the tab element before attaching the browser. r=gavin 2010-08-05 12:38:07 -07:00
Ian Gilman
832cb80a90 + We now update the thumbnail for the current tab (so the zoom down looks right)
--HG--
extra : rebase_source : cb1888e26493760207e9c94697a93b1863036b79
2010-08-05 10:39:33 -07:00
Raymond Lee
bb9eacc9c1 Bug 576408 - Implement the downgraded tab triage experience 2010-08-06 22:17:01 +08:00
Edward Lee
e63983ad17 Merge mozilla-central to tabcandy-central. 2010-08-06 00:25:54 -07:00
Dão Gottwald
712036f4f2 Bug 425575 - Huge context menu when holding right-click on a page, dragging mouse and letting go anywhere out of content area. r=mano 2010-08-06 08:55:42 +02:00
Edward Lee
8def981941 Merge mozilla-central to tabcandy-central. 2010-08-05 14:48:29 -07:00
Dão Gottwald
227d73cd1d Bug 579869 - Skip the tab opening animation if the new tab has been pinned. r=gavin
--HG--
extra : rebase_source : 4406ddd65a67e9c65705f65172afe6af1ded1c17
2010-08-05 22:18:17 +02:00
Bobby Holley
27a2d4812b Bug 343515 - need API for tabbrowsers to tell docshells they're visible/hidden.r=gavin,sr=bz,a=blocker 2010-08-05 11:27:52 -04:00
Michael Yoshitaka Erlewine
4736622e1b Bug 575851: new tab experience, part 1:
- removed new tab group (you may have to clear storage to get rid of your locked New Tabs group at the bottom of your screen)
- rm various special casing for the new tab group
- new tab experience for tabs-off-of-orphaned-tabs is implemented: they magically turn into a group, and it even snaps!
- broken: new tabs made with no active context
- broken: closing the last tab in a group: should go back to tab candy view
- broken: first run experience grouping of orphaned tabs
2010-08-05 01:43:05 -04:00
Raymond Lee
f87aff3a6f Bug 582677 - Test for dragging and dropping item from one group to another group 2010-08-05 08:12:08 +08:00
Ian Gilman
badcd877d6 + Tab thumbnails once again update themselves when their size changes
+ TabItem updates (painting, etc) no longer happen when the Tab Candy UI is not visible; they're queued up and happen when you return to the UI
+ Fixed a couple problems with the TabItems pause painting mechanism
+ If a whole bunch of TabItem updates come at the same time, we spread them out (using a heartbeat that lasts until we run out of backlog)
+ This should fix both Bug 580954 (Replace the heartbeat with something smarter) and Bug 583420 (Tab thumbnails don't repaint after being resized)
2010-08-04 16:42:36 -07:00
Ian Gilman
3436bf6284 + Commented out the "refresh" and "reset" items on the dev menu in response to Bug 584372 (Firefox will crash if either Refresh or Reset in the Dev menu of the Visual Tab Interface is selected); we may bring these back in the future if needed for dev work, but they won't be in the shipping version. 2010-08-04 11:09:06 -07:00
Raymond Lee
c962044a9a Bug 583711 - name field for tab group in candy 2010-08-04 09:42:46 +08:00
Aza Raskin
5eaa96c725 + Also includes the jQuery inclusion text with utils.js 2010-08-02 13:38:29 -07:00
Aza Raskin
2b18a50b6b + Also includes the jQuery inclusion text with utils.js 2010-08-02 13:38:29 -07:00
Aza Raskin
c75b7f6613 + Updated the iQ license block as specified in https://bugzilla.mozilla.org/show_bug.cgi?id=582025 2010-08-02 13:29:46 -07:00
Aza Raskin
4700a06db7 + Updated the iQ license block as specified in https://bugzilla.mozilla.org/show_bug.cgi?id=582025 2010-08-02 13:29:46 -07:00
Markus Stange
0b3b3a96eb Bug 580957 - Inside the toolbar customization panel the labels of the back/forward buttons and of the bookmarks menu button should be outside the button. r=dao 2010-08-05 12:08:12 +02:00
Sindre Dammann
2981cc9442 Bug 581242 - about:addons should open in the current tab if that tab is blank. r=dao 2010-08-05 09:11:25 +02:00
Dão Gottwald
e8ac3c378b Bug 583516 - First tab shouldn't animate on window open. r=dolske 2010-08-05 09:10:16 +02:00
Edward Lee
9ddbae2026 Merge mozilla-central and bug 582116 to tabcandy-central. 2010-08-02 10:33:16 -07:00
Raymond Lee
11274f0ba8 Bug 583434 - Unable to deselect tab group title when giving new title or renaming 2010-08-02 14:34:52 +08:00
Dão Gottwald
ae131eaee2 Bug 585361 - Increase delay tolerance in browser_bug380960.js
--HG--
extra : rebase_source : 41873fe6b398f5eaae101107597e7e5dbb08de10
2010-08-08 20:53:35 +02:00
Dão Gottwald
e0742d48df Bug 585361 - Increase delay tolerance in browser_bug380960.js 2010-08-08 09:41:15 +02:00
Michael Yoshitaka Erlewine
683ce00b36 Groups cleanup: rm min, max, numCmp, replaced with trivial native JS. 2010-07-31 15:24:29 -04:00
Edward Lee
41bbe1bcb1 Make sure user facing names refer to Tab Sets for now for bug 583044.
--HG--
extra : rebase_source : daab3ae1a9b34eaf80b80f1476e57bce3fcaad8b
2010-07-30 14:56:33 -07:00
Raymond Lee
cedee7ad88 Bug 577323 - Use services.jsm instead of getService() 2010-07-30 19:19:52 +08:00
Raymond Lee
86b8a0caa3 Remove extra spaces inside () and add spacing for before { bracket 2010-07-30 17:54:30 +08:00
Raymond Lee
af5ffd7ce6 Remove extra spaces inside () and add spacing for before { bracket 2010-07-30 17:54:30 +08:00
Ian Gilman
7ea1d9208c + Improved startup sequence: don't do anything until sessionstore is available, and then do only minimal work if we're not loading directly into the UI; most setup now happens when we first show the UI. Known issue: tabs aren't set up properly in the tab bar until after you go to the UI once.
+ fixed our use of undefined in iq.js
+ more tabItems cleanup, including removing a stray call to the now non-existent TabCanvas.detach()
+ "Group sites" no longer makes a "mixed" group if it would be empty
2010-07-29 17:23:49 -07:00
Ian Gilman
dcc39df804 + Improved startup sequence: don't do anything until sessionstore is available, and then do only minimal work if we're not loading directly into the UI; most setup now happens when we first show the UI. Known issue: tabs aren't set up properly in the tab bar until after you go to the UI once.
+ fixed our use of undefined in iq.js
+ more tabItems cleanup, including removing a stray call to the now non-existent TabCanvas.detach()
+ "Group sites" no longer makes a "mixed" group if it would be empty
2010-07-29 17:23:49 -07:00
Edward Lee
7f341af8ce Bug 582116 - Provide a way to show certain tabs and get visible tabs [r=dao a=beltzner]
Add showOnlyTheseTabs and visibleTabs to tabbrowser and update various uses such as tab selection. Test that tabs get hidden/shown when using this API and tab selection only deal with visible tabs while making sure there's always a visible tab.
2010-07-29 16:39:57 -07:00
Dão Gottwald
ddbf1e4462 Bug 585361 - Handle requests for synchronously removing an already asynchronously closing tab. r=gavin
--HG--
extra : rebase_source : 6f9c8f691706b63e70c2fc0d91b115e8894d5e0a
2010-08-11 15:12:54 +02:00
Dão Gottwald
6852eaac62 Bug 585021 - Animate when opening the Home page in a new tab. r=gavin
--HG--
extra : rebase_source : 069d2f3763662312c50eebdeb918cd7a6134c06f
2010-08-11 15:12:41 +02:00
Edward Lee
218442df21 Bug 582116 - Provide a way to show certain tabs and get visible tabs
Add showOnlyTheseTabs and visibleTabs to tabbrowser and update various uses such as tab selection. Test that tabs get hidden/shown when using this API and tab selection only deal with visible tabs while making sure there's always a visible tab.
2010-07-29 16:39:57 -07:00
Ian Gilman
09b9ab0f1c + Removed TabItems._heartbeat, in favor of a more direct event-based approach (more to come on this front)
+ Cleaned up a bunch of unneeded properties and methods in tabitems.js
+ moved profile.js to the top of tabcandy.js, so the script loading timer is accurate

--HG--
rename : browser/base/content/tabcandy/app/tabitems.js => browser/base/content/tabview/tabitems.js
rename : browser/base/content/tabcandy/tabcandy.js => browser/base/content/tabview/tabview.js
extra : rebase_source : de7687f5c22881edb1d0c463348e6176a0440587
2010-07-29 14:45:08 -07:00
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
372847d3c9 Just use instanceof Ci.nsIDOMElement for Utils.isDOMElement for bug 582023. 2010-07-29 13:15:21 -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
af28fc4805 Simplify Utils.merge to use Array.forEach and Array.push for bug 582023. 2010-07-29 13:02:51 -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
008bda58ad 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.
2010-07-29 12:37:25 -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
56533364ab Move utils.js into a javascript module that exports Point, Rect, Range, Subscribable, and Utils for bug 582023.
--HG--
extra : rebase_source : 8fea0b5439bcc45464f029609ff125e284b74731
2010-07-28 22:21:34 -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
a11a1183cc Bug 582023: rm iQ.get, as we were only using it in one way. 2010-07-28 23:02:26 -06: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
74886aae53 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
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
19de9aa83c Clean up spaces around (), [], , in iq and utils for bug 577968. 2010-07-28 21:40:55 -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
fef600d3f8 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
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
Frank Yan
f9af53a378 Bug 582200: rm cross-browser code from iQ, follow Mozilla style better, r=mitcho 2010-07-27 10:07:17 -06:00
Ian Gilman
76ec7ed3de + 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
Edward Lee
17317f2e9e Switch to Array.isArray from Utils.isArray. 2010-07-26 11:02:52 -07:00
Edward Lee
d1da1e712c Inline isFunction as typeof == function checks. 2010-07-23 19:29:32 -07:00
Michael Yoshitaka Erlewine
9a7ccab778 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
74d4851978 Followup bug 580870 to rename gTabDeck/gTabFrame to gTabView*. 2010-07-22 22:41:58 -07:00
Michael Yoshitaka Erlewine
d393fc5668 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
bbeb43d86a Bug 581143: Cleanup geometry utilities in utils.js
1. Move isRect, isPoint, isRange to Utils, to facilitate JSMing and to clean up
namespace
2. Remove unused/underutilized methods of Rect/Point/Range
3. Use QuickDraw-style comparison of pixel overlap (using < instead of <=)
throughout.
4. Range.overlaps is now Range.contains, to be more consistent with Rect.

--HG--
extra : rebase_source : cc3507bb3bbe92f922d3147cc9130c1f713391b2
2010-07-22 15:46:51 -04:00
Michael Yoshitaka Erlewine
8dd2ae9572 Bug 580878: removing some underutilized Utils functions: getMilliseconds, and testLogging
--HG--
extra : rebase_source : 28ff49903f395240a3aca3b3761c7638ee6d4b7d
2010-07-22 15:42:29 -04:00
Edward Lee
ff7ecda676 Bug 581078 - Get rid of Utils.activeTab to avoid iterating over all Tabs
Directly access gBrowser.selectedTab and compare other raw tabs against it until BrowserTab goes away. Get the reference to the BrowserTab instead of iterating over Tabs through .tabcandyBrowserTab.
2010-07-22 12:36:17 -07: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
Michael Yoshitaka Erlewine
3a798eb16a Bug 579223: a new approach (on Aza's recommendation): simply take the target (drop target) bounds and expand it a bit, rather than trying to do a union of the areas.
Also, fixed font size changing on tab resizing.

--HG--
extra : rebase_source : ba5db5468f9e9c9f823f352757eb06d198618003
2010-07-22 22:20:44 -04:00
Raymond Lee
b116ab9675 Bug 580919 - Fold Storage.saveVisibilityData into saveUIData 2010-07-23 10:05:22 +08:00
Edward Lee
204f54654c Bug 580937 - Use plain xul:tabs instead of wrapping with BrowserTab
Don't expose BrowserTab and have Tabs give sugarless xul:tabs that don't need .raw-ing. Remove most of the BrowserTab functionality only to leave the event bits.

--HG--
extra : rebase_source : 13f8e857fa94f4e252ca3ed1c55e017314951d17
2010-07-22 15:09:36 -07:00
Philipp von Weitershausen
9c5ea22294 Bug 581917 - OSX theme, about:robots use -moz-background-origin, r=dao, a=johnath 2010-07-26 14:09:21 +02:00
Michael Yoshitaka Erlewine
66708b572d Bug 580878: simplifying date expression 2010-07-22 15:58:10 -04:00
Michael Yoshitaka Erlewine
e383ba9f49 Bug 581143: Cleanup geometry utilities in utils.js
1. Move isRect, isPoint, isRange to Utils, to facilitate JSMing and to clean up
namespace
2. Remove unused/underutilized methods of Rect/Point/Range
3. Use QuickDraw-style comparison of pixel overlap (using < instead of <=)
throughout.
4. Range.overlaps is now Range.contains, to be more consistent with Rect.

--HG--
extra : rebase_source : cc3507bb3bbe92f922d3147cc9130c1f713391b2
2010-07-22 15:46:51 -04:00
Michael Yoshitaka Erlewine
61cc3c2e3a Bug 580878: removing some underutilized Utils functions: getMilliseconds, and testLogging
--HG--
extra : rebase_source : 28ff49903f395240a3aca3b3761c7638ee6d4b7d
2010-07-22 15:42:29 -04:00
Edward Lee
81b6842558 Bug 581078 - Get rid of Utils.activeTab to avoid iterating over all Tabs
Directly access gBrowser.selectedTab and compare other raw tabs against it until BrowserTab goes away. Get the reference to the BrowserTab instead of iterating over Tabs through .tabcandyBrowserTab.
2010-07-22 12:36:17 -07:00
Edward Lee
6d2a905722 Bug 581052 - Don't grab Tabs[0] to get the tabbar for its tabs
Just grab gBrowser.tabs to get an array-list of tabs instead of jumping through Tabs[0].raw.parentNode.children hoops.
2010-07-22 12:35:56 -07:00
Edward Lee
d9a96fbc65 Bug 580905 - Remove unused Tabs.focused window/tab and BrowserWindow reference
Don't save gWindow.tabcandyBrowserWindow but still create the BrowserWindow object for events.
2010-07-22 12:34:52 -07:00
Edward Lee
c7e09a7426 Bug 580901 - Directly call loadOneTab instead of Tabs.open
Remove Tabs.open and BrowserWindow.addTab and directly deal with xul tabs.
2010-07-22 12:34:23 -07:00
Edward Lee
b3a2d799b2 Bug 580870 - Alias gBrowser to the tabcandy context to remove getCurrentWindow
Add aliases for gWindow, gBrowser, gTabDeck, gTabFrame for the tabcandy chrome context. Update uses and simplify some code like removing Navbar.
2010-07-22 12:34:13 -07:00
Edward Lee
feb4cee8cc Bug 580870 - Alias gBrowser to the tabcandy context to remove getCurrentWindow
Add aliases for gWindow, gBrowser, gTabDeck, gTabFrame for the tabcandy chrome context. Update uses and simplify some code like removing Navbar.
2010-07-22 12:34:13 -07:00
Edward Lee
da3121a2f7 Bug 580900 - Remove feedback and dev doc links
Get rid of _newTab to create tabs from the ui and remove feedback references.

--HG--
extra : rebase_source : 5fb505427e1353127e7dcba1ab1b8c634b13221b
2010-07-22 12:31:39 -07:00
Raymond Lee
c204b9953f Fixed Bug 566865 - Define all Keyboard Shortcuts for TabCandy 2010-07-22 11:29:58 +08:00
Ian Gilman
a163564f6e + Removed the animation from Mirror.hideCachedData()
+ Removed the tab argument from Mirror.hideCachedData and Mirror.showCachedData, as it's already part of the object
+ Improve the logic for when to hide the cached data

--HG--
extra : rebase_source : 7b18b5880990bd0807413297012c1cdd98ac267b
2010-07-21 16:44:11 -07:00
Edward Lee
4069566fcd Resolve merge conflicts. 2010-07-21 00:35:09 -07:00
Edward Lee
ecdccfd682 Merge mozilla-central (4.0b2) to tabcandy-central with conflicts. 2010-07-21 00:32:53 -07:00
Blake Kaplan
45243e880e Bug 546573 - EnsureInnerWindow from wrappers. r=jst sr=bzbarsky 2010-07-20 21:05:11 -07:00
Patrick Walton
80891835f4 Bug 582664 - Add a Developer menu to the app button. r=dolske, ui-r=limi, a2.0=gavin [initially landed incorrect patch; now landing the differences between the wrong version and the right version] 2010-07-30 20:50:52 -07:00
Patrick Walton
d77f64f0ab Bug 582664 - Add a Developer menu to the app button. r=dolske, ui-r=limi, a2.0=gavin 2010-07-30 16:48:57 -07:00
Dave Townsend
9bd11df7f9 Fix a merge failure in the test from bug 581229. 2010-07-30 08:36:35 -07:00
Mihai Sucan
475f933020 Bug 566081 - Inspect doesn't work inside iframes, r=gavin 2010-07-30 08:30:55 -03:00
Rob Campbell
51bdfe060e Bug 574408 - Make use of titlebar attributes in Inspector to allow panel positioning, r=gavin, a=bsmedberg 2010-07-30 08:30:55 -03:00
Dão Gottwald
34bce9400e Bug 581475 - Bail out early if the context menu isn't going to be displayed, remove duplicate property initialization. r=mano 2010-07-30 08:53:13 +02:00
Dão Gottwald
3c7e9b7e4c Bug 579472 - Dragging an app tab does not show the drop indicator in the correct location. r=gavin 2010-07-30 08:51:25 +02:00
Dão Gottwald
8101db7fb0 Bug 555904 - When closing a tab, remove the browser and the tabpanel in two steps. r=mano 2010-07-30 08:50:08 +02:00
Kyle Huey
f24d25b6ba Fix syntax error in test 2010-07-29 19:35:05 -07:00
Dave Townsend
f96454bd40 Bug 581229: Allow popup notifications to persist across page loads. r=gavin 2010-07-29 15:59:55 -07:00
Dave Townsend
6f2ff7bdf9 Bug 577048: Notifications about add-on installs and errors aren't shown if the source tab has no host. r=gavin 2010-07-29 15:59:39 -07:00
Frank Yan
75a9921fa1 Bug 580956: 'Undo Close Tab' should not be hidden when there are none to undo. r=dao
--HG--
extra : rebase_source : ae5bdfa5f4c169127f4b59e805a333ff148c3ca2
2010-07-29 14:36:42 -07:00
Raymond Lee
7b66d693f7 Merge 2010-07-21 08:14:36 +08:00
Raymond Lee
d8dbc8d97f Merge 2010-07-21 08:09:28 +08:00
Michael Yoshitaka Erlewine
069bbf103d removing trailing whitespace. I bow down to the Great Mardak and ask for his mercy. 2010-07-20 20:09:17 -04:00
Raymond Lee
a79fae854a Fixed Bug 580419 - Using option-space to enter Tabcandy doesn't work when in the the Awesome Bar or Search Bar 2010-07-21 07:58:50 +08:00
Michael Yoshitaka Erlewine
0ae2508904 tabs cleanup: conservative commit 2
rm Extension, Dictionary. We are now attaching the BrowserTab and BrowserWindow objects to their respective chromeTab and chrome window objects as an attribute for lookup purposes.
The unload management is now gone, which means this may break reset/reload.
2010-07-20 19:44:05 -04:00
Michael Yoshitaka Erlewine
e5ea672325 tabs cleanup: conservative commit 1
rm ImmutableArray, XULApp, Tabs.tab, and some other unused things.
2010-07-20 19:02:08 -04:00
Michael Yoshitaka Erlewine
30eb0303a8 mirror.js: rm _createEl and just create the Mirror directly in link 2010-07-20 18:54:28 -04:00
Edward Lee
4d059c1a7b Remove trailing spaces/tabs from tabcandy files. 2010-07-20 10:17:29 -07:00
Edward Lee
e6cc65e517 Remove trailing spaces/tabs from tabcandy files. 2010-07-20 10:17:29 -07:00
Michael Yoshitaka Erlewine
ca15c6dfc4 rm TabMirror.customize abstraction, meaning we got rid of the only use of Tabs.tab() .
To get things to load correctly (after their dependencies have been loaded), the order of #includes was changed. We now load mirror.js right after tabitems.js, hopefully making it a bit easier to later merge them.
2010-07-20 12:46:01 -04:00
Raymond Lee
713d62c60e Removed some debug statements 2010-07-20 16:12:38 +08:00
Raymond Lee
8c5feed937 Moved the hideCachedData call to the tabs.onLoad() and added an animation for switching from cached image to canvas 2010-07-20 16:08:03 +08:00
Raymond Lee
3d55822723 Added some docuemation, added _ for some private methods in UI.js and remove all iQ.isAnimating calls 2010-07-20 13:26:27 +08:00
Raymond Lee
16e5abcb1b Change a forEach to map in the showOnlyTheseTabs() 2010-07-20 10:27:03 +08:00
Raymond Lee
bcf74cbcd7 Create a copy of tabs parameters inside the showOnlyTheseTabs() 2010-07-20 09:48:35 +08:00
Ian Gilman
b804f44e13 + Filled out iQ.js comments 2010-07-19 15:27:19 -07:00
Ian Gilman
69b9f27b74 + Filled out iQ.js comments 2010-07-19 15:27:19 -07:00
Ian Gilman
f7eee2b556 + Removed the vestigial $content property from Group 2010-07-19 12:02:57 -07:00
Michael Yoshitaka Erlewine
5715d04263 rm stacktrace.js!
--HG--
extra : rebase_source : ee145386d3b3836f0c02005c1f4f7ef517377b7e
2010-07-19 14:21:09 -04:00
Michael Yoshitaka Erlewine
b88a6190eb rm stacktrace.js!
--HG--
extra : rebase_source : ee145386d3b3836f0c02005c1f4f7ef517377b7e
2010-07-19 14:21:09 -04:00
Raymond Lee
caaa2c29dd Improve the key combination detection code 2010-07-19 18:44:11 +08:00
Raymond Lee
49b66e7e06 Fixed Bug 579814 - Fix behavior of tab-manipulation keyboard shortcuts 2010-07-19 17:37:22 +08:00
Raymond Lee
785e5c0ded Fixed Bug 579814 - Fix behavior of tab-manipulation keyboard shortcuts 2010-07-19 17:37:22 +08:00
Michael Yoshitaka Erlewine
226027a6be rm trailing whitespace 2010-07-18 11:58:10 -04:00
Michael Yoshitaka Erlewine
3f1281a3c8 rm trailing whitespace 2010-07-18 11:58:10 -04:00
Michael Yoshitaka Erlewine
8f8f973a69 quick code cleanup suggestion by Steffen Wilberg 2010-07-18 11:16:32 -04:00
Michael Yoshitaka Erlewine
40194dc588 Bug 579223: improved tab-dragged-onto-other-tab groups
+ size of phantom group is preserved in final group
+ trenches are no longer activated if the item they projected from is a faux item or is being dragged
+ improved styling of such groups
2010-07-18 01:03:31 -04:00
Michael Yoshitaka Erlewine
a783f53efd - Drag: split snap into snapBounds and snap which uses the current item's bounds as snapBounds' input 2010-07-18 00:52:47 -04:00
Michael Yoshitaka Erlewine
bd61e43a49 + trenches now come registered with the Item that projects them, not just the DOM element 2010-07-17 23:18:43 -04:00
Steffen Wilberg
c51d2bc4fd Make close boxes appear on Linux as well. 2010-07-17 23:17:27 +02:00
Michael Yoshitaka Erlewine
0ec4fa2542 - Use Rect.css more consistently: gets rid of some spurious CSS unknown value warnings when moving trenches, and simplifies Item._updateDebugBounds and Group.setNewTabButtonBounds
- Some cleanup and better docs for Group.setBounds

--HG--
extra : rebase_source : c21758828da2f282a3fba53c50247def35ae5af3
2010-07-17 17:10:29 -04:00
Raymond Lee
70122320f5 Refactor Tabs.onReady method 2010-07-18 00:12:31 +08:00
Raymond Lee
4465ef38f0 Remove a 'for each' which we don't need 2010-07-17 10:58:11 +08:00
Raymond Lee
6bcbc5928b Merge 2010-07-17 10:40:08 +08:00
Ian Gilman
1347f6d788 + Finished documenting all of the app code, plus utils.js. Remaining: iq.js, mirror.js, tabs.js 2010-07-16 17:27:01 -07:00
Ian Gilman
de5267e13f + Finished documenting all of the app code, plus utils.js. Remaining: iq.js, mirror.js, tabs.js 2010-07-16 17:27:01 -07:00
Neil Deakin
b698859822 Bug 585841 - Right click, 'copy link location' no longer works
r=Neil
a=blocking2.0
a=sheriff for landing
2010-08-10 13:55:31 -07:00
Dão Gottwald
37d1198fb2 Bug 587999 - Knock "Move This Tab To..." context menu item into shape. r=gavin, ui-r=faaborg 2010-08-18 08:57:59 +02:00
Mounir Lamouri
c99e7ead20 Bug 561623 - Test tooltip for HTMLInputElement. r=gavin 2010-07-26 16:53:22 +02:00
Edward Lee
105d128811 Bug 587922 - Tabs are not actually closed after using TabCandy interface [r=dão a=blocking2.0:beta4]
Skip hiding tabs that are being removed to let it finish animating instead of hiding it to prevent the animation from finishing.
2010-08-17 11:39:17 -07:00
Masatoshi Kimura
acfc13f487 Bug 582186 - Render Zero-Width-Non-Joiner correctly in the address bar. r=smontagu 2010-08-17 14:35:24 +02:00
Raymond Lee
acbf492610 Bug 585855 - Test that the bookmark all tabs command is disabled when we have one visible and one hidden tab [r=dão sr=vlad a=gavin]
--HG--
extra : rebase_source : 728aa27e7ffdf08359c26fe709cac925c0d0f344
2010-08-14 02:36:40 +08:00
Edward Lee
54bce5078c Bug 586198 - Incorrect placement of tab after Undo Close Tab in Tab Candy [r=dolske a=blocking2.0:beta4]
Explicitly wipe out tab storage data on close so that undo close tab acts like a brand new tab.

--HG--
extra : rebase_source : f05ab57dff8a10be9df9e93bb128a4b716336c7a
2010-08-16 16:56:28 -07:00
Dão Gottwald
70ec0a7aa5 Bug 586666 - When new tab is opened, close button of inactive tab disappears; r=gavin.sharp approval2.0=gavin.sharp a=blocking-beta5+ 2010-08-16 16:43:04 -04:00
Frank Yan
0738155f43 Bug 587267 - Display the Firefox button when in TabView; r=dao approval2.0=gavin.sharp 2010-08-16 16:33:32 -04:00
Raymond Lee
33afd2d26f Bug 586693 - Do we still need to marshal browser events? [r=dolske a=blocking2.0]
* Removed some timeouts and fixed some broken user interactions that fixes various other bugs and test failures.
Bug 587029 - Tab Candy : closing last tab of a group leads to an isolated tab
Bug 586552 - GroupItem.newTab feedback should be immediate
* Init TabItems before handling firstrun tab grouping
* Removed _stopZoomPreparation related code since we are not using it anymore.
* Fixed the issue related to using move to other group feature. The moved tab is still visible in the tab bar after moving it to other group.

--HG--
extra : rebase_source : 9784acd2df5be4be5016cf15d52dabaccd68e2a5
2010-08-16 12:46:22 +08:00
Dave Townsend
6b4bdba8e0 Bug 579779: Installing a new theme should mark it to be enabled. r=robstrong 2010-08-13 10:47:17 -07:00
Frank Yan
98f073e813 Bug 581820 - Minimize/Maximize/Close buttons missing when Firefox is in TabView [r=dolske a=dolske]
Give some margin to show the buttons even when in TabView.

--HG--
extra : rebase_source : 45918646e8b111deb67a1695faaaaada6c5ff6e8
2010-08-13 19:36:47 -07:00
Ehsan Akhgari
a36a7f466d Bug 587039 - Rename View > TabView And All Instances of Tab Sets to "Group my tabs..." [r=dolske a=dolske]
--HG--
extra : rebase_source : 2bbd91c3222fe301f75870a07ee84fb1947d748d
2010-08-13 18:51:32 -07:00
Ian Gilman
6fe43828a9 Bug 587187 - test for window.TabView rather than just TabView [r=dolske a=dolske]
Check the global object for existence to avoid ReferenceError.

--HG--
extra : rebase_source : 71a843015f6c58795ce1eb543762df61679baf46
2010-08-13 18:37:13 -07:00
Edward Lee
e8beed1cf3 Bug 586777 - Restore ctrl-space activation for on windows/linux [r=dolske a=dolske]
Switch back to ctrl-space and check for certain nodes where we shouldn't handle it.

--HG--
extra : rebase_source : 8ee74987148606472893f5230eaf4486f431c1fc
2010-08-12 15:00:39 -07:00
Ian Gilman
2d9735e96a Bug 586834 - Reinstate the Tab Candy bounce [r=dolske a=dolske]
--HG--
extra : rebase_source : c855277103725aa905c4adba18b1f0b6cc65e2ad
2010-08-12 17:37:22 -07:00
Ian Gilman
d703a36164 + partial fix for 586721: Kill dev menu [r=dolske a=dolske]
--HG--
extra : rebase_source : 9ee847d90a3f517474e6982e6d0b3ae8a8f2ec9c
2010-08-12 17:28:45 -07:00
Michael Yoshitaka Erlewine
afa4684a96 Bug 586685: All user-facing strings in JS are now localizable via stringbundle [r=dolske a=dolske]
NOT.
Everything but user facing strings being localized.
Random whitespace fixes.
Random styling changes.
Also has Bug 587158 - Update intro-video URL to CDN'ed version
And string changes.
And Bug 586814 - Unable to close Tab groups

--HG--
extra : rebase_source : 75a5ef7e1cedfd180358b0fb2e6ea02b1ecb8f0e
2010-08-12 18:32:18 -05:00
Edward Lee
861720eb07 Backout changesets a8b5109c2a6c to 6281bc7f1bbf. 2010-08-13 21:51:48 -07:00
Frank Yan
e1beba2680 Bug 581820 - Minimize/Maximize/Close buttons missing when Firefox is in TabView [r=dolske a=dolske]
Give some margin to show the buttons even when in TabView.
2010-08-13 19:36:47 -07:00
Ehsan Akhgari
25c4de9f77 Bug 587039 - Rename View > TabView And All Instances of Tab Sets to "Group my tabs..." [r=dolske a=dolske]
--HG--
extra : rebase_source : aeca423391f9edbb44c6bb9618657646576d06c0
2010-08-13 18:51:32 -07:00
Ian Gilman
54f8cd0989 Bug 587187 - test for window.TabView rather than just TabView [r=dolske a=dolske]
Check the global object for existence to avoid ReferenceError.

--HG--
extra : rebase_source : 2b5ddb6a8050a3d1407d94cc4381a90bec906a3a
2010-08-13 18:37:13 -07:00
Raymond Lee
c7fd4c4fd2 Bug 587029 - Tab Candy : closing last tab of a group leads to an isolated tab [r=dolske a=dolske]
--HG--
extra : rebase_source : eb46ebd833b5014bb8536c8570a9e727cf16ddbe
2010-08-14 03:58:25 +08:00
Edward Lee
2a8332a24d Bug 586777 - Restore ctrl-space activation for on windows/linux [r=dolske a=dolske]
Switch back to ctrl-space and check for certain nodes where we shouldn't handle it.

--HG--
extra : rebase_source : 4b27a80e90b3e3d9bbfd98150a977dcc853f2180
2010-08-12 15:00:39 -07:00
Ian Gilman
fb53102575 Bug 586834 - Reinstate the Tab Candy bounce [r=dolske a=dolske]
--HG--
extra : rebase_source : c7351eee04263119ea4ef692a2b89e1719c20da0
2010-08-12 17:37:22 -07:00
Ian Gilman
87045679b3 + partial fix for 586721: Kill dev menu [r=dolske a=dolske]
--HG--
extra : rebase_source : 484290df6e525072053f5cb7786908e90fe2e0a0
2010-08-12 17:28:45 -07:00
Michael Yoshitaka Erlewine
d4e1a50954 Bug 586685: All user-facing strings in JS are now localizable via stringbundle [r=dolske a=dolske]
NOT.
Everything but user facing strings being localized.
Random whitespace fixes.
Random styling changes.
Also has Bug 587158 - Update intro-video URL to CDN'ed version
And string changes.
And Bug 586814 - Unable to close Tab groups

--HG--
extra : rebase_source : bc46adb3b3acc2e4daee067e9209d049fe1a8970
2010-08-12 18:32:18 -05:00
Michael Yoshitaka Erlewine
9a992624e0 Bug 574875: First run experience: tabs are put together into a single group--now without unnecessary animation! [r=dolske a=dolske]
--HG--
extra : rebase_source : 4f06fbe6cd2e0a4463f33ba0d8f13f494126ec83
2010-08-12 16:20:59 -05:00
Marco Bonardo
49550d2b5c Bug 546253 - moz_openpages_temp table needs to describe pages that may not be in moz_places. r=sdwilsh a=blocking 2010-08-13 21:53:05 -04:00
Marco Bonardo
52aa8e345c Bug 586506 - unregisterOpenPage should not be called before registerOpenPage if removeTab is called immediately. r=dao a=dietrich 2010-08-13 21:52:30 -04:00
Robert Sayre
f80324a33f Merge tracemonkey to mozilla-central. 2010-08-13 12:45:44 -07:00
Rob Campbell
23a1bafc4d Bug 584344 - Inspector Panels become top-most window.And Active application window is covered by Inspector Panels. r+a=dolkse 2010-08-13 14:36:05 -03:00
Robert Sayre
ff3fd8aeaf Merge mozilla-central to tracemonkey. 2010-08-12 10:12:04 -07:00
Chris Leary
e0ace5bc86 Bug 564953: Port YARR! Lands macroassembler. (r=gal) 2010-08-11 13:30:07 -07:00
Dão Gottwald
a81ecb4fab Back out bogus change from bug 574217. Can't have a window without tabs. 2010-08-13 16:22:31 +02:00
Edward Lee
b5609139aa Bug 579222 - Expose a .visibleTabs property on the tabbrowser [r=iangilman]
Add .visibleTabs to tabbrowser and use local dereferences instead of gBrowser when possible.

--HG--
extra : rebase_source : c64695d6b437927a0d6fbae1b37ad2e17dc690c7
2010-07-16 13:23:03 -07:00
Raymond Lee
5f784b5308 Refactor the code which loads cached images at browser startup 2010-07-16 23:52:06 +08:00
Raymond Lee
fe8b15a1c8 Fixed Bug 578927: Re-order tabs in a group in Tab Candy doesn't reflect on the tab bar 2010-07-16 18:00:46 +08:00
Aza Raskin
6018174bc3 + Fixed some commit collisions. 2010-07-16 00:27:28 -07:00
Aza Raskin
f8e82869f3 + Clicking on a non-stacked group now brings you to the last active tab in that group. 2010-07-16 00:17:19 -07:00
Raymond Lee
503fab5e2a Fixed Bug 579192: Fix keyboard navigation of Tabcand 2010-07-16 15:00:20 +08:00
Ian Gilman
6947d7e436 + Group.add now refuses to add a tab if it was already attached to another group, instead of just warning about it. Though maybe it should automatically remove it from the previous group?
+ Documentation updates
2010-07-15 17:23:39 -07:00
Raymond Lee
689f8adb2e Bug 577445: Show tab candy title in the tab candy interface and change 'let' to 'var' 2010-07-15 16:41:08 +08:00
Raymond Lee
90c8dafa68 Bug 577445: Show tab candy title in the tab candy interface and change 'let' to 'var' 2010-07-15 16:41:08 +08:00
Raymond Lee
764afcb66c Bug 576110: Show saved thumbnails at browser startup if tab candy was last open 2010-07-15 10:40:46 +08:00
Raymond Lee
4b67bddcd5 Bug 576110: Show saved thumbnails at browser startup if tab candy was last open 2010-07-15 10:40:46 +08:00
Ian Gilman
a04cd8087e + Cleaned up a scope issue with Subscribable and added some guards 2010-07-14 17:24:03 -07:00
Ian Gilman
ab38dee7c5 + Cleaned up a scope issue with Subscribable and added some guards 2010-07-14 17:24:03 -07:00
Ian Gilman
5a5575f98e + Subscribable (in utils.js) no longer has a separate onClose path
+ My recent addition of a "content" div broke dragging to make a new group; fixed
2010-07-14 16:59:37 -07:00
Ian Gilman
45b7957307 + Subscribable (in utils.js) no longer has a separate onClose path
+ My recent addition of a "content" div broke dragging to make a new group; fixed
2010-07-14 16:59:37 -07:00
Ian Gilman
1626f53a85 + Fixed: Bug 577164 - 0 height body leaving feedback and reset buttons stranded? 2010-07-14 15:17:28 -07:00
Ian Gilman
d936a625ad + Fixed a typo in iQ.each that was breaking everything
+ Rearranged the UIClass initialization sequence a little, to make sure everything happens in the right sequence
2010-07-14 11:21:07 -07:00
Ian Gilman
0896f3fae1 + Fixed a typo in iQ.each that was breaking everything
+ Rearranged the UIClass initialization sequence a little, to make sure everything happens in the right sequence
2010-07-14 11:21:07 -07:00
Michael Yoshitaka Erlewine
5d1dca9ba4 Bug 577387: cleanup of the new iQ(...).each 2010-07-14 00:08:45 -04:00
Michael Yoshitaka Erlewine
8e3ec23810 Bug 577387: cleanup of the new iQ(...).each 2010-07-14 00:08:45 -04:00
Michael Yoshitaka Erlewine
b9bfb1304b Bug 577387: iQ.each is gone! iQ(...).each still exists, and its callback must now explicitly take the element as its argument 2010-07-14 00:03:47 -04:00
Michael Yoshitaka Erlewine
379654bd6e Bug 577387: iQ.each is gone! iQ(...).each still exists, and its callback must now explicitly take the element as its argument 2010-07-14 00:03:47 -04:00
Michael Yoshitaka Erlewine
c149a313d3 - TabItems: fixed bug where phantom trenches were created when a tab in a group is closed, but the group was not closed.
- Items: docs update
- BrowserTab: cleanup of getters
2010-07-13 23:48:22 -04:00
Michael Yoshitaka Erlewine
d02d1fb82e Bug 577387: cleanup: removed a couple other instances of iQ.each 2010-07-13 22:58:30 -04:00
Michael Yoshitaka Erlewine
297f6910f6 cleanup: rm unused functions, constants from Utils + Mirror 2010-07-13 22:48:55 -04:00
Michael Yoshitaka Erlewine
838d1d56b5 cleanup: rm unused functions, constants from Utils + Mirror 2010-07-13 22:48:55 -04:00
Michael Yoshitaka Erlewine
f2a8ac2cbc iQ cleanup: of course we're Gecko > 1.9.2 so we have classList! use it in .{add,remove,has}Class 2010-07-13 22:17:35 -04:00
Michael Yoshitaka Erlewine
34b3ad74df iQ cleanup: of course we're Gecko > 1.9.2 so we have classList! use it in .{add,remove,has}Class 2010-07-13 22:17:35 -04:00
Michael Yoshitaka Erlewine
8bc50f5562 iQ cleanup: rm unused regexps and other constants; rm iQ.toArray, iQ.pushStack, iQ.slice, iQ.trim 2010-07-13 22:02:11 -04:00
Michael Yoshitaka Erlewine
6b651d1c73 iQ cleanup: rm unused regexps and other constants; rm iQ.toArray, iQ.pushStack, iQ.slice, iQ.trim 2010-07-13 22:02:11 -04:00
Michael Yoshitaka Erlewine
c472a09334 cleanup: iQ.each: never used with args, so that code is removed 2010-07-13 20:28:36 -04:00
Michael Yoshitaka Erlewine
2892c8fc8c cleanup: iQ.each: never used with args, so that code is removed 2010-07-13 20:28:36 -04:00
Michael Yoshitaka Erlewine
39a1f66dc2 cleanup: rm iQ.grep; using .filter instead. 2010-07-13 20:23:04 -04:00
Michael Yoshitaka Erlewine
426e63d8c5 cleanup: rm iQ.grep; using .filter instead. 2010-07-13 20:23:04 -04:00
Michael Yoshitaka Erlewine
b261f72a79 cleanup: rm iQ.inArray 2010-07-13 20:10:53 -04:00
Michael Yoshitaka Erlewine
0782572076 cleanup: rm iQ.inArray 2010-07-13 20:10:53 -04:00
Michael Yoshitaka Erlewine
ce70751467 cleanup: rm various instances of iQ.each where it's an array, so we can use .forEach
--HG--
extra : rebase_source : f41f088641f71aba6796092766b0645fca925ad1
2010-07-13 19:38:51 -04:00
Michael Yoshitaka Erlewine
016c8b0232 cleanup: rm various instances of iQ.each where it's an array, so we can use .forEach
--HG--
extra : rebase_source : f41f088641f71aba6796092766b0645fca925ad1
2010-07-13 19:38:51 -04:00
Ian Gilman
9f80cd7e4a + I don't think we need the timeout in Page.showChrome; commented out now.
+ Added a video to the "first run" panel
2010-07-13 16:25:35 -07:00
Michael Yoshitaka Erlewine
8e181c230e cleanup: rm iQ.makeArray 2010-07-13 17:39:46 -04:00
Michael Yoshitaka Erlewine
33de2bb1cc cleanup: rm iQ.makeArray 2010-07-13 17:39:46 -04:00
Edward Lee
4c95bcef00 Merge mozilla-central to tabcandy-central. 2010-07-13 12:23:12 -07:00
Michael Yoshitaka Erlewine
7700b1d014 UI: tabOnFocus: refactored to no longer use doSetup; saveVisibility: no longer print log 2010-07-13 15:07:24 -04:00
Raymond Lee
1edcad44f0 Bug 576110: Open tab candy at startup if it was last open 2010-07-13 12:04:04 +08:00
Raymond Lee
deb9aa2b41 Bug 576110: Open tab candy at startup if it was last open 2010-07-13 12:04:04 +08:00
Michael Yoshitaka Erlewine
91c301e374 bug 577968: remove references to == true, == false 2010-07-11 21:08:33 -04:00
Michael Yoshitaka Erlewine
f11f97f9db bug 577968: control words like if, switch, etc. should have a space after them 2010-07-11 20:54:42 -04:00
Michael Yoshitaka Erlewine
c4b43fe6c7 bug 577968: control words like if, switch, etc. should have a space after them 2010-07-11 20:54:42 -04:00
Michael Yoshitaka Erlewine
7ecfb07c00 bug 577968: removing elses preceded by returns; replacing tabs 2010-07-11 19:48:05 -04:00
Michael Yoshitaka Erlewine
466ead9f58 bug 577968: removing elses preceded by returns; replacing tabs 2010-07-11 19:48:05 -04:00
Michael Yoshitaka Erlewine
f12581ce6b UI: showOnlyTheseTabs: a faster way to find visibleTabs, by checking the associated tabbrowser 2010-07-11 15:20:25 -04:00
Shawn Wilsher
07e60c28d9 Merge for back out of changeset a0d6e4d37273 (bug 575870)
a=sheriff
2010-08-10 13:05:42 -07:00
Shawn Wilsher
16d0373258 Backed out changeset a0d6e4d37273 (bug 575870) for possibly being the cause of the following performance regression:
Talos Regression: Txul increase 4.57% on Win7 Firefox
Other possible culprits:
bug 574454
2010-08-10 13:03:32 -07:00
Edward Lee
e58cc6a2c2 Bug 584532 - Land Tabs module to get Tab* events from any window [r=dao] 2010-08-10 03:24:45 -07:00
Edward Lee
9a3e72dd17 Address review comments from bug 584532 comment 18: !listeners, event.target, observers function. 2010-08-10 03:05:10 -07:00
Edward Lee
3151daddfb Move private variables/methods into local declarations not exported by AllTabs and change the interface to .register("change") instead of .onChange() for bug 584532.
--HG--
extra : rebase_source : 267110a1a1dd8cc8d4188f20285d688b2b901aa1
2010-08-09 17:19:04 -07:00
Edward Lee
b9dfc5a60b Prepare for bug 584532 by renaming Tabs and T -> AllTabs, allTabs -> tabs, browsers -> browserWindows, and removing QI(nsIObserver).
--HG--
extra : rebase_source : 1eedbcbdbda0895f12170f93c55b6946612d8819
2010-08-06 15:19:57 -07:00
Edward Lee
52718c79e9 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
Michael Yoshitaka Erlewine
21cc2176e4 UI: bugfix: rm reference to getVisibleTab(); doc fix 2010-07-10 22:26:12 -05:00
Raymond Lee
811527b078 patch for bug #577651
* Create a new tab in a group which has  more than one tab. While in
tabcandy, close that tab. Now you're zoomed into the tab to its left.
You should instead remain in TabCandy.
* Another improvement for the command+e keyboard combination.
2010-07-09 12:44:59 -07:00
Michael Yoshitaka Erlewine
c62b1af41d UI: reusing getAllTabs more; killed getVisibleTabs as it was not doing what it stated... replaced with getVisibleTabCount 2010-07-09 12:17:51 -07:00
Raymond Lee
64dd8a900b some patches for bug #577650
+ Create two groups; one with a single tab and another with several
tabs. Go into the single tab and then close the tab. You return to the
TabCandy interface as you should, but you see one of the other tabs
zooming out. There should be no zoom out in this case. [RAYMOND]
+ Cmd+e key combination is not working in the tab candy.
+ close buttons on tabs are still not showing correctly.  Add a bunch
of tabs to the tabstrip so all close buttons for background tabs are
hidden, go into Tab Candy interface and remove tabs until you know the
close buttons should appear.  Then, zoom into a tab and the close
buttons on back
2010-07-09 12:02:32 -07:00
Michael Yoshitaka Erlewine
2c8c88ab14 quickly patching a bug for new tab position in tab bar 2010-07-09 11:43:07 -07:00
Michael Yoshitaka Erlewine
b56a8a5657 UI: added getAllTabs, inspired by Raymond's patch. cleaned up urlbar method. 2010-07-09 10:09:32 -07:00
Raymond Lee
95e29d68f5 refactored showOnlyTheseTabs (bug #577649) 2010-07-09 09:53:19 -07:00
Ian Gilman
e6bcbe3409 + The first-run help item now has a close box (that works) 2010-07-07 17:19:28 -07:00
Ian Gilman
990ad5280a + started work on the first run experience: everything goes into a single new group, and there is an info item as well
+ Added "reset" to the dev menu so we can test first run (since the reset button is currently AWOL)
+ Added Utils.assertThrow(), an assert that throws an exception
2010-07-07 17:04:01 -07:00
Ian Gilman
43ef3bc936 + started work on the first run experience: everything goes into a single new group, and there is an info item as well
+ Added "reset" to the dev menu so we can test first run (since the reset button is currently AWOL)
+ Added Utils.assertThrow(), an assert that throws an exception
2010-07-07 17:04:01 -07:00
Ian Gilman
73eb5512e6 + Moved our platform-independent tabcandy.css to browser/base/content/tabcandy/
+ Created a platform-specific css file for tabcandy in the theme directory.
+ Copied the Mac TabCandy theme additions into the Windows and Linux themes.

--HG--
rename : browser/themes/pinstripe/browser/tabcandy/tabcandy.css => browser/base/content/tabcandy/tabcandy.css
2010-07-07 15:00:11 -07:00
Ian Gilman
b98aeb2479 + Now storing item z separately from the DOM (as the DOM appears to be unreliable in our new world, at least at startup). This fixes issues with tabs not appearing in their groups at startup 2010-07-07 14:12:04 -07:00
Ian Gilman
91df08be9d + fixed: Bug 576786 - Resizing sometimes gets stuck in a state where it thinks we're still dragging, though we're not. 2010-07-07 11:09:04 -07:00
Bobby Holley
0d93ccdb3d Bug 576621 - clearing cache does NOT clear cached images.r=joe,gavin 2010-07-11 21:01:53 -04:00
Raymond Lee
6fef79f3dd Update several features for visible tabs: bookmark all tabs, reload all tabs, close other tabs, list all tabs drop down menu and tab context-menu 2010-07-07 10:32:42 +08:00
Raymond Lee
632add3587 Another patch for bug 576393 2010-07-07 09:50:15 +08:00
Ian Gilman
2bab7da787 + Hack to get dev menu to appear: stuck it at the top
+ Misc documentation fixes
2010-07-06 16:22:57 -07:00
Ian Gilman
047e6bcb2c + The dev menu isn't appearing. Added a try/catch to see if that would illuminate anything. It did not. Will dig in more after applying all the patches. 2010-07-06 14:53:40 -07:00
Aza Raskin
7c0ecb3956 + Slightly darker lines
--HG--
extra : rebase_source : f8c0a1c8fbd9bf40331d1a12306faf4e45d1e8f3
2010-07-06 00:41:27 -07:00
Raymond Lee
ca5975eebb Another fix for Bug 576393 2010-07-03 15:03:56 +08:00
Raymond Lee
0cb80921f3 Another fix for Bug 576424 2010-07-03 12:33:33 +08:00
Raymond Lee
22a24b4fb6 Partial fix for Bug 576427 2010-07-04 00:08:34 +08:00
Ian Gilman
2d3ecbef1b + merge 2010-07-06 14:14:01 -07:00
Ian Gilman
ad3ed778dd + added "all tabs" button back to the tab bar (restore defaults to see) 2010-07-06 14:10:55 -07:00
Michael Yoshitaka Erlewine
157598362d + xDensity and yDensity computation for Group's 2010-07-06 11:42:23 -07:00
Raymond Lee
2705814563 Show the tabcandy button at the right end of tabstrip 2010-07-05 12:18:12 +08:00
Michael Yoshitaka Erlewine
d1c290c236 UIClass.resize now triggers Item.snap on each resized item. But in general, UIClass.resize/Item.squish/unsquish logic is crazy, should be rewritten. 2010-07-03 21:41:31 -04:00
Michael Yoshitaka Erlewine
aa9e3d4ae4 - moved Trench.radius to be a getter and always reflect Trenches.defaultRadius.
- moved Group._getBoundingBox to Groups.getBoundingBox; now a better algorithm which is order-independent.
- modified "drag tab onto another tab" action's phantom group computation using getBoundingBox: now a touch more realistic.
+ Item.snap, which is used to instantaneously resituate oneself into a more trench-inspired position, using wider radius trenches.
- Group constructor now runs Item.snap, so all new groups are marginally better positioned.
- correcting my foolish ways: replacing some tabs with spaces.
2010-07-03 21:13:31 -04:00
Michael Yoshitaka Erlewine
341b61b6a2 quick bugfix to an assert in Drag 2010-07-03 21:01:57 -04:00
Michael Yoshitaka Erlewine
4fa62b5156 fixed a bug in delayInit 2010-07-03 21:00:43 -04:00
Michael Yoshitaka Erlewine
b52289b78b Group.isEmpty 2010-07-03 17:55:19 -04:00
Michael Yoshitaka Erlewine
1927ab2f59 + the notion of stationaryCorner to the Trench logic. this value specifies which corner of a bound must remain stationary while resizing. Normally this is the topleft, but in the case of dragging out new tab groups, it actually could be another corner, which means the snapping computation is different. Fixes a couple minor resizing bugs. 2010-07-03 16:55:54 -04:00
Michael Yoshitaka Erlewine
0b67b35c37 createGroupOnDrag now snaps with trenches! 2010-07-03 15:44:35 -04:00
Ian Gilman
8a017fdd19 + refactored Raymond's fix to Bug 576424 2010-07-02 16:33:33 -07:00
Ehsan Akhgari
0ad0994cc4 Bug 577685 - Do not allow adding search engines during private browsing mode; r=gavin.sharp ui-r=beltzner approval2.0=beltzner 2010-07-27 16:21:29 -04:00
Frank Yan
e47b5c73e8 Bug 580956 - 'Undo Close Tab' should be disabled not hidden when there are none to undo. r=dao 2010-07-27 17:01:16 +02:00
Alice0775 White
a607370f37 Bug 579095 - Setting the identity label fails when the container is hidden. Collapse it instead. r=dao 2010-07-27 16:54:05 +02:00
Dão Gottwald
f7d3ed83ed Bug 581654 - Fix places in browser-places.js that use for each...in to loop over arrays. r=mak
--HG--
extra : rebase_source : a247af92a67ed44f605a21486759e8c7c779dffc
2010-07-27 01:04:13 +02:00
Dão Gottwald
6b20cad565 Bug 581653 - Remove XPCOM cruft from StarUI. r=mak
--HG--
extra : rebase_source : fbbb7640edc47a9d55ee2f7b9056beedb7ae9f39
2010-07-27 01:02:06 +02:00
Raymond Lee
93e563c3c7 Fixed Bug 576393 - Tabs.onFocus() isn't working reliably 2010-07-02 17:28:53 +08:00
Ian Gilman
dbd70f1265 + refactored Raymond's fix to Bug 576424 2010-07-02 16:33:33 -07:00
Raymond Lee
e33aa7ca0a Fix Bug 576424 - We need to know when sessionstore is available 2010-07-02 13:27:49 +08:00
Ian Gilman
97ead3a57c + Removed placebo hack from Storage.wipe()
+ Removed TabItems.reconstitute(), which we haven't actually needed for a while, but now it's also causing trouble
+ Removed Utils.activeWindow, which doesn't seem to work, and replaced its use in Utils.activeTab (the only remaining place it was being used) with Utils.getCurrentWindow(), which does seem to work
+ Utils.assert() now dumps a trace
+ Fixed paths to the edit pencil and new tab button images; they should now show up properly
2010-07-01 17:05:46 -07:00
Ian Gilman
540981fd54 + Removed placebo hack from Storage.wipe()
+ Removed TabItems.reconstitute(), which we haven't actually needed for a while, but now it's also causing trouble
+ Removed Utils.activeWindow, which doesn't seem to work, and replaced its use in Utils.activeTab (the only remaining place it was being used) with Utils.getCurrentWindow(), which does seem to work
+ Utils.assert() now dumps a trace
+ Fixed paths to the edit pencil and new tab button images; they should now show up properly
2010-07-01 17:05:46 -07:00
Ian Gilman
79cedb9ca3 + merge 2010-06-30 11:49:31 -07:00
Ian Gilman
3edfaf4202 + Just a little documentation update 2010-06-30 11:05:01 -07:00
Michael Yoshitaka Erlewine
9c5149bab4 pulling out extending guide trenches as per Aza's feedback. revert to 787f64274830 to try them again. keeping some bugfixes which were made during extending guide trench dev, though. 2010-06-30 11:32:17 -04:00
Michael Yoshitaka Erlewine
51a6895e12 changing pageBounds and default guide ranges so that the extend animation looks better 2010-06-30 01:06:36 -04:00
Michael Yoshitaka Erlewine
8ffb32bd67 fixed a bug where showing a guide trench and then dragging over it slowly allows it to extend, even though it no longer is snapped to. 2010-06-30 00:49:30 -04:00
Michael Yoshitaka Erlewine
67871964e5 guide trenches now originally start at their minRange range and then extend after a second 2010-06-30 00:46:15 -04:00
Michael Yoshitaka Erlewine
b88167bb8b I was getting some errors about illegal values in arguments of getWindowValue; this seems to fix it. 2010-06-29 21:58:15 -04:00
Aza Raskin
138ce40654 + Trivial change 2010-06-29 16:39:48 -07:00
Ian Gilman
b36a491ea7 + Fixed: Bug 575675 - FindChildWithRules aRelevantLinkVisited assertion when loading tabcandy page
+ The "code docs" item on the dev menu now opens the documentation from the repository into a new tab (used to open the local documentation, which doesn't exist in this new context, and replace the tab candy tab)
+ Removed the "tests" item from the dev menu, as they don't apply to this new context
+ Fixed an accidental comma in tabcandy.css (was disabling the pointer cursor for tabs)
2010-06-29 14:39:37 -07:00
Edward Lee
77ed94ee3c Bug 574188 - Include individual js pieces into tabcandy.js and expose content and skin files with jar.mn
--HG--
rename : browser/base/content/tabcandy/tabcandy.xhtml => browser/base/content/tabcandy/tabcandy.html
2010-06-29 01:04:26 -07:00
Edward Lee
951edd39c8 Bug 574188 - Add UI hooks to trigger tab candy 2010-06-29 01:04:22 -07:00
Edward Lee
cdce020195 Merge updates to tabcandy to mozilla-central. 2010-06-28 16:18:47 -07:00
Raymond Lee
045cf1a746 Bug 572889 - Move TabCandy out of a tab and into a per-window xul:deck
Wrap the browser in a deck with an iframe for tabcandy.
2010-06-28 16:15:37 -07:00
Ian Gilman
68589ba178 + Items no longer have reloadBounds; once the item is set up, we never pull location data off of the div 2010-06-28 16:11:22 -07:00
Ian Gilman
76617fe78a + Cleaned up inelegant box shadows per fryn's suggestion
+ Made the snap guides a little more subtle
2010-06-28 14:56:20 -07:00
Ian Gilman
1e217dd346 + applying Raymond's fix for Bug 565968 - tab-switching keyboard shortcuts iterate over all tabs not just the active subset 2010-06-28 13:47:25 -07:00
Michael Yoshitaka Erlewine
2aeca5ec1f move trench styling into CSS; fix trenches so that, if in showDebug mode, the trenches will stay drawn 2010-06-28 02:55:26 -04:00
Ian Gilman
95b7cd38f1 + merge 2010-06-25 16:10:52 -07:00
Ian Gilman
d2bd3d9691 + Removed icons that exist elsewhere in the browser; now using them instead
+ Our toolbar button now uses the standard toolbar button styling; we just apply a glyph to it
+ Went through the code with http://caja.appspot.com/tools/index and fixed a number of minor issues it found
+ Added "refresh" to the dev menu (since you won't be able to just refresh the tabcandy page once it's in the xul:deck)
2010-06-25 16:00:51 -07:00
Aza Raskin
76fbf5a368 + Added a minimum size for groups. 2010-06-25 15:47:34 -07:00
Aza Raskin
d7e757ad96 + Cleaned up the code which changes the styling of a tabitems fav icon.
- The bite still exist, it just gets smaller.
2010-06-25 15:15:51 -07:00
Aza Raskin
0b70f644f5 + Updated the spec
+ Modified the tabitem layout code so that favicons are more sensibly handled at smaller sizes.
2010-06-24 23:59:32 -07:00
Ian Gilman
922535a30a + If a dragged item overlaps more than one droppable, the largest intersection wins
+ Added intersection and area to Rect
+ Cleaned out a little debug code
2010-06-23 17:10:16 -07:00
Gavin Sharp
188ed458a3 Bug 572967: don't remove notifications once dismissed, and instead allow them to be re-opened from the anchor icon, r=dolske 2010-06-23 12:53:09 -04:00
Raymond Lee
2f6fe85723 Bug 572889 - Move TabCandy out of a tab and into a per-window xul:deck [r=iangilman]
Update code for tabCandy in xul:deck to not assume it's living in a tab and update various events and callbacks.

--HG--
extra : rebase_source : 7007f13f4e9e3ebd0eb38f91d41bccfa68b3099d
2010-06-23 17:25:34 +08:00
Ian Gilman
e970534171 + Removed icons that exist elsewhere in the browser; now using them instead
+ Our toolbar button now uses the standard toolbar button styling; we just apply a glyph to it
+ Went through the code with http://caja.appspot.com/tools/index and fixed a number of minor issues it found
+ Added "refresh" to the dev menu (since you won't be able to just refresh the tabcandy page once it's in the xul:deck)
2010-06-25 16:00:51 -07:00
Ian Gilman
bab211ee39 + If a dragged item overlaps more than one droppable, the largest intersection wins
+ Added intersection and area to Rect
+ Cleaned out a little debug code
2010-06-23 17:10:16 -07:00
Raymond Lee
c12c95019c Bug 572889 - Move TabCandy out of a tab and into a per-window xul:deck [r=iangilman]
Update code for tabCandy in xul:deck to not assume it's living in a tab and update various events and callbacks.

--HG--
extra : rebase_source : 7007f13f4e9e3ebd0eb38f91d41bccfa68b3099d
2010-06-23 17:25:34 +08:00
Edward Lee
3f94e7a630 Merge tabcandy to mozilla-central. 2010-06-28 15:47:09 -07:00
Michael Yoshitaka Erlewine
3c78dad6c8 much better tracking of exactly which trench did the snapping 2010-06-23 00:19:10 -04:00
Michael Yoshitaka Erlewine
cef22ee195 previous fix to new tab tray allowed tabs to be *resized* into the new tab tray as well. fixed. 2010-06-22 23:52:40 -04:00
Michael Yoshitaka Erlewine
d4ae73a50a some edges of TabItems were not projecting trenches on startup 2010-06-22 23:45:51 -04:00
Michael Yoshitaka Erlewine
4f0bcda9c4 now can drag tabs onto new tab tray... now getSafeWindowBounds does *not* use getPageBounds at all. 2010-06-22 23:35:38 -04:00
Michael Yoshitaka Erlewine
a327ab3b58 first pass at drawing "guides" when you snap. In reality, they should only show up after you hold it in position for a half second or so, and the identification of which trench was actually used in snapping must be improved. Recommendation: do not ship this in this current iteration. 2010-06-22 23:18:40 -04:00
Michael Yoshitaka Erlewine
d0875e4220 don't snap to anything (except edges) if you're on top of another group (fixes bug reported by Aza: snapping onto another group) 2010-06-22 23:16:49 -04:00
Michael Yoshitaka Erlewine
d0fc5f695d just some comments to pushAway and related functions; rm legacy squishModes; pushAway now uses Trenches.gutter for margins, and respects safe window bounds 2010-06-22 19:50:37 -04:00
Michael Yoshitaka Erlewine
81aa471969 just some comments to pushAway and related functions; rm legacy squishModes; pushAway now uses Trenches.gutter for margins, and respects safe window bounds 2010-06-22 19:50:37 -04:00
Michael Yoshitaka Erlewine
b6cecaceed moved close button outside of the title bar so that it doesn't jump around on squish. 2010-06-22 19:47:02 -04:00
Ian Gilman
501a7c0e98 + merge 2010-06-22 16:43:44 -07:00
Ian Gilman
33f1e545e4 + In the quest to abolish reloadBounds(), I've rewritten draggable, droppable and resizable to operate on an item's bounds rather than directly on the div. I've also removed those routines from iQ, and integrated them into Item. Additional related cleanup and documentation.
+ Removed a little bit of aza debug code
+ Added size and position routines to Rect
2010-06-22 16:42:06 -07:00
Ian Gilman
688afd22c9 + In the quest to abolish reloadBounds(), I've rewritten draggable, droppable and resizable to operate on an item's bounds rather than directly on the div. I've also removed those routines from iQ, and integrated them into Item. Additional related cleanup and documentation.
+ Removed a little bit of aza debug code
+ Added size and position routines to Rect
2010-06-22 16:42:06 -07:00
Michael Yoshitaka Erlewine
d16ab92084 don't snap if we're dragging over a drop-site. 2010-06-22 15:52:34 -04:00
Michael Yoshitaka Erlewine
742604caa6 + Range.overlaps; bugfix: border trenches unfortunately had an inappropriately large activeRange... fixed. This fixes the long-distance border-snapping which unfortunately shipped with 0.4 2010-06-21 22:32:07 -04:00
Michael Yoshitaka Erlewine
f894f8646f + Range.overlaps; bugfix: border trenches unfortunately had an inappropriately large activeRange... fixed. This fixes the long-distance border-snapping which unfortunately shipped with 0.4 2010-06-21 22:32:07 -04:00
Aza Raskin
0389be08a6 + Opacity was effected, so backed out my iQ change. 2010-06-21 18:05:46 -07:00
Aza Raskin
bfc003aaea + Opacity was effected, so backed out my iQ change. 2010-06-21 18:05:46 -07:00
Aza Raskin
9af8ecdef1 +merge 2010-06-21 17:34:52 -07:00
Aza Raskin
040e3e38b2 +merge 2010-06-21 17:34:52 -07:00
Aza Raskin
32751045e2 + Fixed a bug in iQ whereby unadorend numbers in animations wouldn't get a "px" suffix.
+ This fixes the title's strange placement.
2010-06-21 17:34:34 -07:00
Aza Raskin
32de3bb9dd + Fixed a bug in iQ whereby unadorend numbers in animations wouldn't get a "px" suffix.
+ This fixes the title's strange placement.
2010-06-21 17:34:34 -07:00
Ian Gilman
27094a5d62 + Added attr to iQ, plus a unit test for it
+ Fixed click handler for expand button (it was allowing drag, and also it was on mousedown)
+ Added Ehsan and Raymond to the install.rdf contributors list
2010-06-21 17:27:12 -07:00
Ian Gilman
fb396964b7 + Added attr to iQ, plus a unit test for it
+ Fixed click handler for expand button (it was allowing drag, and also it was on mousedown)
+ Added Ehsan and Raymond to the install.rdf contributors list
2010-06-21 17:27:12 -07:00
Ian Gilman
4031df8b62 + Raymond's close button fix missed a couple cases: creating new tabs with command+click, and closing non-selected tabs with the close buttons in the tabbar. Fixed. 2010-06-21 16:35:29 -07:00
Ian Gilman
b392d4b51f + merge 2010-06-21 15:37:56 -07:00
Ian Gilman
96a9536bd8 + applied patch: Temp Fix: Bug 570565 - Background Tab Close buttons disappear 2010-06-21 15:17:23 -07:00
Aza Raskin
fb5c0336c1 + Fixed the minVersion of the XPI as per Mitcho's suggestion
+ Bumped XPI version to 0.4
+ Commented out the click-on-group to zoom into the last active tab
2010-06-21 14:49:38 -07:00
Michael Yoshitaka Erlewine
4752f94d2b deprecating iQ.fn.data isDragging flag... instead, using Item.isDragging flag 2010-06-21 16:38:33 -04:00
Aza Raskin
697bec4faa + More merging 2010-06-19 18:53:21 -07:00
Aza Raskin
da01ed2bf8 + More merging 2010-06-19 18:53:21 -07:00
Aza Raskin
edd3da1f2e + Merge 2010-06-19 18:51:57 -07:00
Aza Raskin
5a5d0efce8 + Merge 2010-06-19 18:51:57 -07:00
Aza Raskin
115cf08a6a + Removed the unused getChildrenBounds() method of a group. 2010-06-19 18:49:33 -07:00
Aza Raskin
8872ac2b18 + Added documentation for the hide/show expand control functions. 2010-06-19 18:49:08 -07:00
Aza Raskin
7c687aab87 -- Stacked Group Behavior --
+ Removed the command-click quasimode for showing the tray version of stacked groups.
+ Added a new expand icon for showing the tray version of stacked groups
+ Refactored the Group.js code so that we now have both group.collapse() and group.expand()

-- Website Behavior --
+ Updated the website to pull the documentation section from the Etherpad
+ Some general DRY-based cleanup

-- Install.rdf --
+ Fiddled with the min/max version
2010-06-19 18:46:39 -07:00
Aza Raskin
0168865d37 -- Stacked Group Behavior --
+ Removed the command-click quasimode for showing the tray version of stacked groups.
+ Added a new expand icon for showing the tray version of stacked groups
+ Refactored the Group.js code so that we now have both group.collapse() and group.expand()

-- Website Behavior --
+ Updated the website to pull the documentation section from the Etherpad
+ Some general DRY-based cleanup

-- Install.rdf --
+ Fiddled with the min/max version
2010-06-19 18:46:39 -07:00
Michael Yoshitaka Erlewine
d9518d92ca make sure to call Drag.stop at the end of resizing 2010-06-19 21:12:40 -04:00
Michael Yoshitaka Erlewine
400cd9dfac moved shared resizeOptions core into Items; move edge-snapping code out into Drag.snapToEdge; make resizeOptions invoke Drag.snap so that it can take advantage of the advances in drag-snapping technology; made snapToEdge work with resizeable rects 2010-06-19 20:45:23 -04:00
Michael Yoshitaka Erlewine
3c30b91f84 fixed regression of improper resizing on movement 2010-06-19 19:05:23 -04:00
Michael Yoshitaka Erlewine
c13723d526 Rect now computes its own xRange and yRange 2010-06-19 18:47:26 -04:00
Michael Yoshitaka Erlewine
93f7526e64 Rect now computes its own xRange and yRange 2010-06-19 18:47:26 -04:00
Michael Yoshitaka Erlewine
bf91b97286 trench.js docs 2010-06-19 18:39:55 -04:00
Michael Yoshitaka Erlewine
056efe34fb trust the Rect and use .right and .bottom 2010-06-19 17:44:19 -04:00
Michael Yoshitaka Erlewine
b3b3268172 some Trench docs; using Range 2010-06-19 17:40:14 -04:00
Michael Yoshitaka Erlewine
d99dee234f Range update 2010-06-19 17:37:36 -04:00
Michael Yoshitaka Erlewine
4c071f8bd0 Range update 2010-06-19 17:37:36 -04:00
Michael Yoshitaka Erlewine
124719088a class Range 2010-06-19 16:58:51 -04:00
Michael Yoshitaka Erlewine
b2a3e332f5 class Range 2010-06-19 16:58:51 -04:00
Michael Yoshitaka Erlewine
30bf9cdc1e snap to the edges of the window; don't snap if the meta (command) key is being held down 2010-06-19 16:18:30 -04:00
Michael Yoshitaka Erlewine
48f161ea75 move defaultGutter into Items; defaultRadius into Trenches; now items cannot escape the window when dragged (bug 572919) 2010-06-19 16:08:14 -04:00
Michael Yoshitaka Erlewine
bc361d27b2 one more tweak for "Only snap to a trench when it is physically proximate" 2010-06-19 15:35:27 -04:00
Michael Yoshitaka Erlewine
6431e8bbec more tabs into spaces 2010-06-19 15:05:36 -04:00
Michael Yoshitaka Erlewine
9cde4b0d11 turned tabs into spaces; "Only snap to a trench when it is physically proximate" (result: http://img.skitch.com/20100619-cp6pdsbrien3phhi9rbn85jr3t.jpg); added isDragging flag to item itself 2010-06-19 14:56:07 -04:00
Ian Gilman
dafde1fa03 + Fixed: Bug 569846 - No hover help for "new tab" icons in tab group 2010-06-18 14:59:24 -07:00
Ian Gilman
67b8dee295 + merge 2010-06-18 14:42:51 -07:00
Ian Gilman
19713fb918 + Fixed: Bug 570089 - Dragging northwest in tabcandy area creates zero-area tab group 2010-06-18 14:42:06 -07:00
Ian Gilman
59c05bb4e5 + Fixed: Bug 570089 - Dragging northwest in tabcandy area creates zero-area tab group 2010-06-18 14:42:06 -07:00
Michael Yoshitaka Erlewine
18bac5c387 fixed bug 572888: groups resizing when stuck in trench and moved slowly 2010-06-18 00:50:42 -04:00
Aza Raskin
8f15801ccc Fixed the incorrect timing of the tray when fanning out a stacked group. 2010-06-17 17:31:03 -07:00
Ian Gilman
40432d1f5c + Fixed Bug 568882 - TabCandy should not reorder tabs 2010-06-17 16:38:07 -07:00
Ian Gilman
d5a59dd7d3 + groups.js is now fully documented (except for member variables) 2010-06-17 15:57:45 -07:00
Ian Gilman
6e83727250 + Moved "show trenches" to the dev menu
+ No longer messing with the tabbar order for ungrouped tabs
+ More documentation in groups.js
2010-06-17 14:52:25 -07:00
Ian Gilman
9d8648e238 + updated/added license blocks to all JavaScript files 2010-06-16 17:19:11 -07:00
Ian Gilman
65e85064e7 + updated/added license blocks to all JavaScript files 2010-06-16 17:19:11 -07:00
Ian Gilman
b35293d149 + fixed scoping issue that caused all tabs dropped in any group to return to a single group
+ fixed a bug causing tabs in the "new tabs" group to be huge
2010-06-16 16:30:48 -07:00
Ian Gilman
2ba604b397 + removed unused code and reorged remainder 2010-06-16 15:46:05 -07:00
Ian Gilman
9650718be6 + removed unused code and reorged remainder
--HG--
rename : browser/themes/pinstripe/browser/tabcandy/shared/candybutton.png => browser/themes/pinstripe/browser/tabcandy/candybutton.png
2010-06-16 15:46:05 -07:00
Michael Yoshitaka Erlewine
02976e5207 reverted to previous version of the trench checking algorithm 2010-06-16 00:21:34 -04:00
Michael Yoshitaka Erlewine
92ff278dcd moved to tracking trenches by id; better trench cleanup and garbage collection; refactored a bit to make things faster? but with questionable results 2010-06-16 00:08:39 -04:00
Michael Yoshitaka Erlewine
5b061bfccc new tab group should not project trenches 2010-06-15 22:27:03 -04:00
Ian Gilman
735726ec57 + fixed broken unit test 2010-06-15 17:14:41 -07:00
Ian Gilman
b2cdae5bb4 + merge 2010-06-15 16:52:30 -07:00
Ian Gilman
2b75e3834d + merge 2010-06-15 16:33:58 -07:00
Michael Yoshitaka Erlewine
ae66951d56 quick bugfix for resizing 2010-06-15 19:11:58 -04:00
Michael Yoshitaka Erlewine
ea88675f6d tabs now also project trenches; unregistering trenches on group/tab close; allow proportional resizing while snapping; preferLeft and preferTop flags for which edges to preferentially snap to 2010-06-15 19:08:21 -04:00
Ian Gilman
feff0a9435 + Cleaned up TabItem bounds getting and setting (the translation between our coordinates and the div style needs to be done carefully, in particular due to the padding in the tab style), and added a unit test for it 2010-06-15 15:55:47 -07:00
Ian Gilman
9e9765eb7a + Cleaned up TabItem bounds getting and setting (the translation between our coordinates and the div style needs to be done carefully, in particular due to the padding in the tab style), and added a unit test for it 2010-06-15 15:55:47 -07:00
Michael Yoshitaka Erlewine
bc4b8a9b47 snapping for tabs as well as groups 2010-06-15 17:45:49 -04:00
Michael Yoshitaka Erlewine
55567c549e refactoring dragOptions, dropOptions 2010-06-15 17:38:55 -04:00
Ian Gilman
40dd78661c + merge 2010-06-15 13:51:24 -07:00
Ian Gilman
5b37c18c7d + tweak to how we deal with laying out small numbers of tabs in a group 2010-06-15 13:48:37 -07:00
Michael Yoshitaka Erlewine
ac1bf91ea4 quick refactoring 2010-06-15 15:26:35 -04:00
Ian Gilman
76e48ebb74 + mitcho's first pass at group snapping 2010-06-15 11:53:53 -07:00