Commit Graph

102 Commits

Author SHA1 Message Date
Ian Gilman
36f1f942af Bug 578553 - Implement App-Tab experience in Panorama; [a+r=dietrich] 2010-09-10 17:50:14 +08:00
Michael Yoshitaka Erlewine
e300884d8f Bug 591167 - border trenches should be triggered even if the edge only overlaps, but is not contained by the active range of the trench 2010-09-08 21:48:51 -04:00
Edward Lee
01d1bd8ecf Bug 594152 - Give function names to tabview.js objects [r=dietrich a=dietrich]
Give function names as object_func for various object prototypes and singletons. Also cleans up some var Name = function() patterns into just function Name.
2010-09-08 10:02:08 -07:00
Josh Matthews
30a0764266 Backing out ebce58252cf8, 1f94199af190, 81664d1912ee, 8e95db7adbea, f97a99ad74af, 66d12a1541f2, 6b936d1a9e65 2010-09-04 15:15:31 -04:00
Michael Yoshitaka Erlewine
8599eff086 Bug 591167: border trenches should be triggered even if the edge only overlaps, but is not contained by the active range of the trench [r+a=dietrich] 2010-09-03 14:43:24 -04:00
Michael Yoshitaka Erlewine
b5ad1eae4c Bug 591715: Utils.log: add option to use dump instead of console and add timing info [r=dao, a=gavin] 2010-09-01 16:04:12 -04:00
Michael Yoshitaka Erlewine
4723a319ae 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
Michael Yoshitaka Erlewine
034700c36b 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
2010-08-10 19:20:05 -04:00
Ian Gilman
6293c4a138 + reversed the argument order for Utils.assert and Utils.assertThrow, per Dao's review 2010-08-10 11:13:10 -07:00
Michael Yoshitaka Erlewine
76c3c39116 Bug 582023: rm Utils.timeout 2010-08-10 09:30:23 -04:00
Edward Lee
e7b9b5d394 Remove unnecessary try/catch wrapping around a timeout-ed call. 2010-08-06 17:16:28 -07:00
Aza Raskin
63e286fa84 + Also includes the jQuery inclusion text with utils.js 2010-08-02 13:38:29 -07:00
Raymond Lee
d6226d2f7e Remove extra spaces inside () and add spacing for before { bracket 2010-07-30 17:54:30 +08:00
Edward Lee
30d2018ada Just use instanceof Ci.nsIDOMElement for Utils.isDOMElement for bug 582023. 2010-07-29 13:15:21 -07:00
Edward Lee
9331adb873 Simplify Utils.merge to use Array.forEach and Array.push for bug 582023. 2010-07-29 13:02:51 -07:00
Edward Lee
157e2ebae4 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
4ba4d9d9cf Move utils.js into a javascript module that exports Point, Rect, Range, Subscribable, and Utils for bug 582023. 2010-07-28 22:21:34 -07:00
Edward Lee
4fa6a41c4d 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
48c4dc1b11 Clean up spaces around (), [], , in iq and utils for bug 577968. 2010-07-28 21:40:55 -07:00
Michael Yoshitaka Erlewine
dff3a21284 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
Frank Yan
d14c7f00bb Bug 582200: rm cross-browser code from iQ, follow Mozilla style better, r=mitcho 2010-07-27 10:07:17 -06:00
Ian Gilman
3ed8d289fd + We now do no work while the script is loading; everything waits until the UI.init() call at the very bottom 2010-07-26 17:15:19 -07:00
Edward Lee
86038ae5d6 Switch to Array.isArray from Utils.isArray. 2010-07-26 11:02:52 -07:00
Edward Lee
e563e8c95b Inline isFunction as typeof == function checks. 2010-07-23 19:29:32 -07:00
Michael Yoshitaka Erlewine
d6a5f98d75 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.
2010-07-23 17:33:02 -04:00
Edward Lee
cb2ebf25e2 Followup bug 580870 to rename gTabDeck/gTabFrame to gTabView*. 2010-07-22 22:41:58 -07:00
Michael Yoshitaka Erlewine
746ed5bc6a 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
66174ab23d 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.
2010-07-22 15:46:51 -04:00
Michael Yoshitaka Erlewine
fc651a5dc7 Bug 580878: removing some underutilized Utils functions: getMilliseconds, and testLogging 2010-07-22 15:42:29 -04:00
Edward Lee
3985c7b555 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
ad0b7a7b7c 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
Michael Yoshitaka Erlewine
79c4f17233 rm stacktrace.js! 2010-07-19 14:21:09 -04:00
Raymond Lee
d88ea99a4d Fixed Bug 579814 - Fix behavior of tab-manipulation keyboard shortcuts 2010-07-19 17:37:22 +08:00
Michael Yoshitaka Erlewine
2ce959817e rm trailing whitespace 2010-07-18 11:58:10 -04:00
Ian Gilman
4264d9b1e4 + 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
Raymond Lee
811d233d54 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
3087b7a1b6 Bug 576110: Show saved thumbnails at browser startup if tab candy was last open 2010-07-15 10:40:46 +08:00
Ian Gilman
51bfb42c75 + Cleaned up a scope issue with Subscribable and added some guards 2010-07-14 17:24:03 -07:00
Ian Gilman
8b21651f03 + 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
Michael Yoshitaka Erlewine
282af66330 cleanup: rm unused functions, constants from Utils + Mirror 2010-07-13 22:48:55 -04:00
Michael Yoshitaka Erlewine
3a482e71d9 cleanup: rm iQ.grep; using .filter instead. 2010-07-13 20:23:04 -04:00
Michael Yoshitaka Erlewine
2e4c30c94e cleanup: rm various instances of iQ.each where it's an array, so we can use .forEach 2010-07-13 19:38:51 -04:00
Raymond Lee
965f9e679f Bug 576110: Open tab candy at startup if it was last open 2010-07-13 12:04:04 +08:00
Michael Yoshitaka Erlewine
3f00362792 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
b3a9ff68e0 bug 577968: removing elses preceded by returns; replacing tabs 2010-07-11 19:48:05 -04:00
Ian Gilman
3b4090609d + 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
ac6d27c3b0 + refactored Raymond's fix to Bug 576424 2010-07-02 16:33:33 -07:00
Ian Gilman
6c76a24e0a + 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
Raymond Lee
41c4979ac1 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.
2010-06-23 17:25:34 +08:00
Ian Gilman
210dd2895e + 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