Commit Graph

4211 Commits

Author SHA1 Message Date
Edward Lee
80e523d1f2 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
eb7d36a49e 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
6aed86af34 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
7a2f35d721 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
4676cee80f 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
c19a142733 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
f5d6acf5da Fixed Bug 566865 - Define all Keyboard Shortcuts for TabCandy 2010-07-22 11:29:58 +08:00
Ian Gilman
f1e406804f + 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
6e3eb1b573 Resolve merge conflicts. 2010-07-21 00:35:09 -07:00
Edward Lee
025fe8aa96 Merge mozilla-central (4.0b2) to tabcandy-central with conflicts. 2010-07-21 00:32:53 -07:00
Raymond Lee
b65b14f504 Merge 2010-07-21 08:14:36 +08:00
Raymond Lee
5e022790c9 Merge 2010-07-21 08:09:28 +08:00
Michael Yoshitaka Erlewine
da7fb4f331 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
4731967f49 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
9abef4d54a 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
208476da6d 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
e8e6a2da9c mirror.js: rm _createEl and just create the Mirror directly in link 2010-07-20 18:54:28 -04:00
Edward Lee
9c721e78ab Remove trailing spaces/tabs from tabcandy files. 2010-07-20 10:17:29 -07:00
Michael Yoshitaka Erlewine
bd50de9920 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
1e6e779ae8 Removed some debug statements 2010-07-20 16:12:38 +08:00
Raymond Lee
1bdc28270e 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
1b960615bf 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
4b7c39f45b Change a forEach to map in the showOnlyTheseTabs() 2010-07-20 10:27:03 +08:00
Raymond Lee
70187d4745 Create a copy of tabs parameters inside the showOnlyTheseTabs() 2010-07-20 09:48:35 +08:00
Ian Gilman
b4adf9d687 + Filled out iQ.js comments 2010-07-19 15:27:19 -07:00
Ian Gilman
50ec35dc7f + Removed the vestigial $content property from Group 2010-07-19 12:02:57 -07:00
Michael Yoshitaka Erlewine
c6e5b5aca4 rm stacktrace.js!
--HG--
extra : rebase_source : ee145386d3b3836f0c02005c1f4f7ef517377b7e
2010-07-19 14:21:09 -04:00
Raymond Lee
340142f4cc Improve the key combination detection code 2010-07-19 18:44:11 +08:00
Raymond Lee
a74f56c59a Fixed Bug 579814 - Fix behavior of tab-manipulation keyboard shortcuts 2010-07-19 17:37:22 +08:00
Michael Yoshitaka Erlewine
061c70e020 rm trailing whitespace 2010-07-18 11:58:10 -04:00
Michael Yoshitaka Erlewine
2be7d1674c quick code cleanup suggestion by Steffen Wilberg 2010-07-18 11:16:32 -04:00
Michael Yoshitaka Erlewine
e8014d0a21 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
82b473e0e6 - 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
9b69f0ea6a + 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
93103884b7 Make close boxes appear on Linux as well. 2010-07-17 23:17:27 +02:00
Michael Yoshitaka Erlewine
b6767df11d - 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
18ba7c9b84 Refactor Tabs.onReady method 2010-07-18 00:12:31 +08:00
Raymond Lee
a65b1e2d88 Remove a 'for each' which we don't need 2010-07-17 10:58:11 +08:00
Raymond Lee
fe43613a28 Merge 2010-07-17 10:40:08 +08:00
Ian Gilman
fb7ce8ecdf + 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
Edward Lee
22fb634ba6 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
2cabd967a0 Refactor the code which loads cached images at browser startup 2010-07-16 23:52:06 +08:00
Raymond Lee
615d822ba2 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
d1f875965f + Fixed some commit collisions. 2010-07-16 00:27:28 -07:00
Aza Raskin
cf8ef6f93d + 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
037c52e6a1 Fixed Bug 579192: Fix keyboard navigation of Tabcand 2010-07-16 15:00:20 +08:00
Ian Gilman
d43662bb09 + 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
692588a847 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
24e44cd95b Bug 576110: Show saved thumbnails at browser startup if tab candy was last open 2010-07-15 10:40:46 +08:00
Ian Gilman
58b5e5aa05 + Cleaned up a scope issue with Subscribable and added some guards 2010-07-14 17:24:03 -07:00