Commit Graph

2543 Commits

Author SHA1 Message Date
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
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
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
2b18a50b6b + Also includes the jQuery inclusion text with utils.js 2010-08-02 13:38:29 -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
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
af5ffd7ce6 Remove extra spaces inside () and add spacing for before { bracket 2010-07-30 17:54:30 +08: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
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
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