Commit Graph

2855 Commits

Author SHA1 Message Date
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
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
Aza Raskin
697bec4faa + More merging 2010-06-19 18:53:21 -07:00
Aza Raskin
edd3da1f2e + Merge 2010-06-19 18:51:57 -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
Michael Yoshitaka Erlewine
c13723d526 Rect now computes its own xRange and yRange 2010-06-19 18:47:26 -04:00
Michael Yoshitaka Erlewine
d99dee234f Range update 2010-06-19 17:37:36 -04:00
Michael Yoshitaka Erlewine
124719088a class Range 2010-06-19 16:58:51 -04: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
9d8648e238 + updated/added license blocks to all JavaScript files 2010-06-16 17:19:11 -07:00
Ian Gilman
2ba604b397 + removed unused code and reorged remainder 2010-06-16 15:46:05 -07:00
Dão Gottwald
b5cf328eea Bug 580512 - App tabs should outlive normal sessions. r=dietrich, vlad 2010-08-13 14:40:19 +02:00
Mike Connor
fb535cd8ad Bug 586094 - Enabling Sync regresses Ts on all platforms, r=dolske, a=beltzner 2010-08-11 21:28:27 -04:00
Edward Lee
124b078fce Bustage fix for alt-ctrl-space win/linux key combination. 2010-08-12 13:05:15 -07:00
Edward Lee
a4e378b366 Bug 586753 - Use ctrl-alt-space for win/linux to avoid ctrl-space 2010-08-12 12:43:31 -07:00
Edward Lee
d78c248762 Bug 581813 - Firefox with Tab Candy caused the Title and Tab Bars or the Menu and Tab Bars to appear black in colour
Push the TabView iframe down behind the tabbrowser when hiding TabView and restore the max height on show. This has slight issues in that it squishes the iframe contents as well as flashes black as we animate. Followup in bug 586679.
2010-08-12 09:38:21 -07:00
Edward Lee
fb481caa08 Merge mozilla-central to tabcandy-central. 2010-08-12 03:55:08 -07:00
Edward Lee
f282af4f77 Fix indentation in beginRemoveTab. 2010-08-12 03:32:07 -07:00
Edward Lee
2cbb4d0bee Merge backout 2010-08-12 03:29:54 -07:00
Edward Lee
ffd35d7fc4 Backed out changeset ed2484b982b9 due to accidental landing. 2010-08-12 03:24:29 -07:00
Raymond Lee
5c19510c58 Change a var to let. 2010-08-12 14:46:16 +08:00
Raymond Lee
dc1ad35b40 Bug 586522 - Leaks in Tab Candy 2010-08-12 14:39:12 +08:00
Raymond Lee
a77313ad4e Release some resources on unload 2010-08-12 12:36:58 +08:00
Michael Yoshitaka Erlewine
606e0b8349 Bug 574217: Some touchups based on comments from dolske 2010-08-11 23:08:33 -04:00
Michael Yoshitaka Erlewine
e657eee62c Fixes for Dolske's strict JS warnings 2010-08-11 22:01:29 -04:00
Michael Yoshitaka Erlewine
84b9f70725 GroupItem: unify title-setting to use setTitle (which in turn uses iQ.val). Note TabItem titles are set using iQ.text, so there is no security issue there. 2010-08-11 21:35:29 -04:00
Ian Gilman
5bf2c27f8d + I forgot to update the references to the newly renamed tabview.css files; fixed 2010-08-11 17:00:15 -07:00
Ian Gilman
5b66c2b656 + Fixes for dolske and dao comments on bug 574217:
++ Unnecessary double if in tabbrowser.xml
++ moved body styling into CSS file and simplified
++ CSS comma style
++ Renamed platform.css files to tabview.css

--HG--
rename : browser/themes/gnomestripe/browser/tabview/platform.css => browser/themes/gnomestripe/browser/tabview/tabview.css
rename : browser/themes/pinstripe/browser/tabview/platform.css => browser/themes/pinstripe/browser/tabview/tabview.css
rename : browser/themes/winstripe/browser/tabview/platform.css => browser/themes/winstripe/browser/tabview/tabview.css
2010-08-11 16:51:39 -07:00
Ian Gilman
d14feaee8f + More dolske comments for 574217
++ Initial developer
++ Cc, Ci, Cu
++ Spacing
++ Commented out code in storage.js
++ DOCTYPE
2010-08-11 15:28:45 -07:00
Ian Gilman
d410f1b82f + Saving TabView visibility status as a straight string, to save from having to JSON during start up 2010-08-11 14:48:02 -07:00
Ian Gilman
5088184930 + Addressing dolske's comments in bug 574217:
++ Using Cc and Ci
++ Using let
++ Changing getWindowTitle to a memoizing getter
++ Updated comment for key combo routine
2010-08-11 12:17:57 -07:00
Ehsan Akhgari
b74b1d6a50 Bug 586421 - Do not assume that TabView exists in tabbrowser.xml
--HG--
extra : rebase_source : 935c6e6838ab4820c526637e32d2a6073b5e9ea2
2010-08-11 16:48:38 -04:00
Edward Lee
3aac3bf665 Merge mozilla-central to tabcandy-central. 2010-08-11 11:13:46 -07:00
Ehsan Akhgari
e55869eb3a Backed out changeset 906a0b05656e because it doesn't work! 2010-08-11 14:12:15 -04:00
Ehsan Akhgari
defaa60f95 Bug 581813 - Firefox with Tab Candy caused the Title and Tab Bars or the Menu and Tab Bars to appear black in colour 2010-08-11 14:10:18 -04:00
Michael Yoshitaka Erlewine
3fefad5aab Bug 582023: making changes requested by Dao. Now iQ + Utils are ready for m-c with r=dao! 2010-08-11 13:06:49 -04:00
Raymond Lee
17caf7cc09 Bug 585854 - Test tab previews in presence of Tab 2010-08-11 17:07:38 +08:00
Raymond Lee
79de2be602 Fixed for Bug 585855 - Test that the bookmark all tabs command is disabled when we have one visible and one hidden tab 2010-08-11 14:16:02 +08:00
Edward Lee
a0f5ce049c Use preprocessor comments instead of <!-->.
--HG--
extra : rebase_source : 8908fc650096d86485d7116043dcc437095e5537
2010-08-10 21:29:08 -07:00
Edward Lee
62d60c52de Use NSINSTALL instead of directly using nsinstall.py for our flat modules structure.
--HG--
extra : rebase_source : 2c310b5ab0a256da45dff1aea2cb693ac293d573
2010-08-10 21:25:49 -07:00
Michael Yoshitaka Erlewine
87c67120aa Bug 585855: Test that the bookmark all tabs command is disabled when we have one visible and one hidden tab
Note that this test has not been added to the Makefile.
2010-08-11 00:27:42 -04:00
Michael Yoshitaka Erlewine
4a27862651 Bug 574217: fixes to "the rest of Tab Candy" based on comments from dolske 2010-08-11 00:14:53 -04:00
Raymond Lee
379ef3b4df Rename browser_bookmarkAllTabs.js to browser_visibeTabs_bookmarkAllTabs.js
--HG--
rename : browser/base/content/test/browser_bookmarkAllPages.js => browser/base/content/test/browser_visibleTabs_bookmarkAllPages.js
2010-08-11 12:02:15 +08:00
Raymond Lee
9acd746ebc Improved the test for Bug 585853 - Test 'bookmark all pages' in presence of tab candy 2010-08-11 11:50:57 +08:00
Edward Lee
33ba441530 Restore browser_visibleTabs test that accidentally got removed in 87c7be4465a4. 2010-08-10 20:39:45 -07:00
Edward Lee
762a707aaa Dummy whitespace to trigger a merge. 2010-08-10 20:39:02 -07:00
Raymond Lee
c28c2a758b Bug 585853 - Test 'bookmark all pages' in presence of tab candy 2010-08-11 11:34:38 +08:00
Ian Gilman
5060cd7f0e + removed profiling code
--HG--
extra : rebase_source : 690f1d46c2833ec2e122b53b2fbbc3b5a0e50aec
2010-08-10 18:10:21 -07:00
Edward Lee
77b3b23d1c Move visibleTabs tests back to browser/content/test out of tabview directory.
--HG--
rename : browser/base/content/test/tabview/browser_visibleTabs.js => browser/base/content/test/browser_visibleTabs.js
rename : browser/base/content/test/tabview/browser_visibleTabs_contextMenu.js => browser/base/content/test/browser_visibleTabs_contextMenu.js
2010-08-10 17:58:26 -07:00
Edward Lee
91c6e99bf6 Fix mozilla-central merge failure from 63b9ba3664a0. 2010-08-10 17:21:05 -07:00
Ian Gilman
0a89c5909a + addressing dao's comments in iQ
--HG--
extra : rebase_source : 9fd229f468514fb08326fe292434de45e6167bfb
2010-08-10 16:31:12 -07:00
Michael Yoshitaka Erlewine
3a11cdef26 Bug 582023 cleanup based on comments from Dao on things that are not iQ:
- typeof() is not a function
- formatting of && and || at the end of the line
- declaring variables more locally using let in Utils.extend
- the Initial Developer is the Mozilla Foundation

--HG--
extra : rebase_source : d1f9699fb0014c95e336c34d777ce354b141739a
2010-08-10 19:20:05 -04:00
Ehsan Akhgari
3b386c5d60 Actually enable the tests which pass 2010-08-10 19:13:13 -04:00
Ehsan Akhgari
759ca5b552 Disable all TabView tests for now 2010-08-10 18:56:11 -04:00
Ehsan Akhgari
8201d02a5f Run the TabCandy tests from the correct Makefile 2010-08-10 18:47:03 -04:00
Ian Gilman
160e4ba0ca + removed the "beforeclose" event from TabItem and cleaned up the "close" event
+ Removed the "urlChanged" event from TabItem; inlining that code instead.

--HG--
extra : rebase_source : a48f380dd98eaaa971e7e0529b6c17b674a02b9f
2010-08-10 15:36:56 -07:00
Michael Yoshitaka Erlewine
7460ba46b9 Bug 585858: fixing whitespace
--HG--
extra : rebase_source : b332e14075d7f41ab09b79265f7803d806194b5e
2010-08-10 18:09:19 -04:00
Ian Gilman
49f9880244 + TabView actions that require loading the frame (if not loaded) now wait properly until the frame is loaded before continuing. These actions are show, context menu, and "next group" key combo.
+ TabView now has explicit show and hide in addition to toggle
+ Cleaned out unused "ui" parameter to the Item drag callback

--HG--
extra : rebase_source : e8ffd468406fe1d0690e29a15ce4b431a0596371
2010-08-10 14:23:53 -07:00
Michael Yoshitaka Erlewine
c7eefd6688 Bug 585858: test tab context menu items with combinations of visible and hidden tabs 2010-08-10 15:33:08 -04:00
Raymond Lee
fe134a46da Improved the drag and drop test 2010-08-11 02:57:22 +08:00
Raymond Lee
ea3e0b1135 Fixed Bug 584627 - Tests for group 2010-08-11 02:39:28 +08:00
Ian Gilman
3381f8595e + reversed the argument order for Utils.assert and Utils.assertThrow, per Dao's review 2010-08-10 11:13:10 -07:00
Raymond Lee
7eb0f4ccb0 Removed the remaining Utils.timeout 2010-08-11 00:19:08 +08:00
Raymond Lee
4d4f929ff4 Bug 585837 - Tests for launching Tab candy 2010-08-11 00:11:06 +08:00
Raymond Lee
97140c85cf Fixed some issues in the drag and drop test 2010-08-11 00:06:04 +08:00
Michael Yoshitaka Erlewine
4645c92a6b Bug 582023: rm Utils.timeout 2010-08-10 09:30:23 -04:00
Michael Yoshitaka Erlewine
8bddd0dbe9 Bug 582023: move to use getBoundingClientRect instead of reading off the computed CSS for bounds; simplify getPropertyValue usage (based on comments from Dao) 2010-08-10 09:22:38 -04:00
Edward Lee
69650603da Address review comments from bug 584532 comment 18: !listeners, event.target, observers function. 2010-08-10 03:05:10 -07:00
Edward Lee
0f4ef556db Merge mozilla-central to tabcandy-central. 2010-08-09 23:53:52 -07:00
Ehsan Akhgari
d6b330e338 Bug 585850 - Rename TabCandy modules from *.js to *.jsm (like the rest of js modules)
--HG--
rename : browser/base/content/tabview/modules/AllTabs.js => browser/base/content/tabview/modules/AllTabs.jsm
rename : browser/base/content/tabview/modules/groups.js => browser/base/content/tabview/modules/groups.jsm
rename : browser/base/content/tabview/modules/utils.js => browser/base/content/tabview/modules/utils.jsm
2010-08-09 23:51:23 -04:00
Raymond Lee
a1bcc835c1 Fixed a test after the delay loading frame changes 2010-08-10 10:31:59 +08:00
Edward Lee
43b7d40966 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--
rename : browser/base/content/AllTabs.js => browser/base/content/tabview/modules/AllTabs.js
extra : rebase_source : 267110a1a1dd8cc8d4188f20285d688b2b901aa1
2010-08-09 17:19:04 -07:00
Ian Gilman
20a7760e76 + no longer loading the frame at all until the user needs it 2010-08-09 17:24:08 -07:00
Ian Gilman
80b2ae42e5 + Made the Groups.killNewTabGroup test a little tighter (in case someone has made a group called "new tabs")
+ Worked around bug 575672 (CSS transition assert)

--HG--
extra : rebase_source : 6f758e737c2092214ec3185be847f2c5da406be0
2010-08-09 14:57:34 -07:00
Edward Lee
a869c43b41 Merge mozilla-central to tabcandy-central. 2010-08-09 10:38:19 -07:00
Raymond Lee
07d617611a Add a licence block to a test 2010-08-09 17:00:33 +08:00
Raymond Lee
2fc3f6194d Moved tests to test/tabview folder
--HG--
rename : browser/base/content/test/browser_tabview_dragdrop.js => browser/base/content/test/tabview/browser_tabview_dragdrop.js
rename : browser/base/content/test/browser_visibleTabs.js => browser/base/content/test/tabview/browser_visibleTabs.js
2010-08-09 16:21:46 +08:00
Raymond Lee
b9c8a307e1 Another fix for the failing test 2010-08-09 15:47:52 +08:00
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
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
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
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
Edward Lee
8def981941 Merge mozilla-central to tabcandy-central. 2010-08-05 14:48:29 -07: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
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
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
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
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
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