Commit Graph

2439 Commits

Author SHA1 Message Date
Edward Lee
ca2e9577a7 Followup bug 580870 to rename gTabDeck/gTabFrame to gTabView*. 2010-07-22 22:41:58 -07: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
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
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
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
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
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
785e5c0ded Fixed Bug 579814 - Fix behavior of tab-manipulation keyboard shortcuts 2010-07-19 17:37:22 +08: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
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