Commit Graph

32 Commits

Author SHA1 Message Date
Reuben Morais
7943a9dc65 Bug 952486 - Use CheckPermissions instead of Func for several interfaces. r=bz 2014-05-25 15:31:11 -03:00
Fabrice Desré
bed5c8c262 Bug 952486 - backout for breaking all device and emulator builds (keeping dom reviewer to land the backout...) r=bz 2014-05-26 12:11:52 -07:00
Reuben Morais
e77a142d67 Bug 952486 - Use CheckPermissions instead of Func for several interfaces. r=bz 2014-05-25 15:31:11 -03:00
Boris Zbarsky
35fca5eeeb Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
56f44fdf10 Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Masayuki Nakano
54d409dfca Bug 984269 Rename nsDOMEventTargetHelper to mozilla::DOMEventTargetHelper r=smaug
--HG--
rename : dom/events/nsDOMEventTargetHelper.cpp => dom/events/DOMEventTargetHelper.cpp
rename : dom/events/nsDOMEventTargetHelper.h => dom/events/DOMEventTargetHelper.h
2014-04-01 15:13:50 +09:00
Masayuki Nakano
d26caa0d74 Bug 975688 part.28 Rename nsDOMEvent to mozilla::dom::Event r=smaug
--HG--
rename : dom/events/nsDOMEvent.cpp => dom/events/Event.cpp
rename : dom/events/nsDOMEvent.h => dom/events/Event.h
2014-03-05 09:37:43 +09:00
Boris Zbarsky
45103f9d63 Bug 950315 part 1. Convert a bunch of event targets to passing a Window or nsDOMEventTargetHelper directly to the constructor of their ancestor nsDOMEventTargetHelper. r=smaug 2014-01-06 21:53:23 -05:00
Boris Zbarsky
9c1973b5d2 Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger 2013-04-25 12:29:54 -04:00
Masatoshi Kimura
e5e5a90814 Bug 848339 - Remove the vestigial boolean outparam from nsWrapperCache::WrapObject. r=bz 2013-03-12 08:03:47 +09:00
Andrea Marchesini
ad06a4d453 Bug 838124 - Convert BatteryManager to WebIDL. r=peterv 2013-02-05 07:54:49 -05:00
Ms2ger
fbadf3d9a2 Bug 814898 - Part c: Cleanup CC goop in B2G-specific parts of dom/; r=mccr8 2012-12-02 09:54:37 +01:00
Nathan Froyd
27b9179800 Bug 720768 - add nsDOMEventTargetHelper::DispatchTrustedEvent; r=mounir, sr=smaug 2012-09-27 16:11:31 -04:00
Kyle Huey
c25f8e64ef Bug 687332: Part 2 - Move event handlers off of DOM objects and keep track of them solely in the event listener manager. r=smaug,bz 2012-08-30 20:45:16 -07:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Mounir Lamouri
9bc8f42e69 Bug 769571 - Unprefix Battery API. r=sicking sr=smaug
--HG--
rename : dom/battery/nsIDOMNavigatorBattery.idl => dom/battery/nsINavigatorBattery.idl
2012-07-05 12:05:09 +02:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Olli Pettay
339e88ba7e Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, r=jst,bent 2012-03-13 02:56:07 +02:00
Edmund Wong
5d7814eb00 Bug 693172 - Moved all subclasses of nsDOMEventTargetWrapperCache to nsDOMEventTargetHelper and then merged the classes. r=smaug 2012-02-08 10:53:33 +08:00
Vivien Nicolas
410f52f412 Bug 711488 - Replace some forgotten PR_TRUE with true in dom/battery && dom/sms r=mounir 2011-12-19 10:11:16 +01:00
Mounir Lamouri
2aa4544938 no bug - Create batteryInfo on the stack. rs=Ms2ger a=Ms2ger
--HG--
extra : rebase_source : a67b23da903520585ac32b4113aa65d397fae94a
2011-12-14 11:40:29 +01:00
Mounir Lamouri
00113c9ae2 Bug 707870 - Disconnect mListenerManager in nsDOMEventTargetHelper instead of expecting inheriting classes to do it. r=smaug 2011-12-08 16:31:14 +08:00
Mounir Lamouri
9012bb7763 Bug 705084 - Part A - Add kDefaultRemainingTime and add guards to make sure backends are correct. r=sicking 2011-12-01 11:49:42 +01:00
Mounir Lamouri
268955b4c5 Bug 701517 - Moz-prefix Battery API interfaces. rs+sr=smaug 2011-11-19 11:43:57 +01:00
Mounir Lamouri
5dc1f60bf2 Bug 700298 - r=smaug 2011-11-19 11:37:21 +01:00
Mounir Lamouri
2193d385c3 Bug 700261 - Add .chargingTime/.dischargingTime support to hal code. r=cjones 2011-11-09 09:58:59 +01:00
Mounir Lamouri
8b8a55e897 Bug 699743 - Add chargingTime attribute in BatteryManager. r=sicking 2011-11-09 09:58:18 +01:00
Mounir Lamouri
e22b6dd831 Bug 699744 - Add dischargingTime attribute in BatteryManager. r=sicking 2011-11-09 09:57:57 +01:00
Mounir Lamouri
3eb35675ac Bug 699742 - (1/4) battery.level should be a double (DOM part). r=sicking 2011-11-09 09:56:52 +01:00
Mounir Lamouri
c82259a3f3 Bug 699459 - Add a pref to disable Battery API. r=sicking 2011-11-04 00:31:32 +01:00
Mounir Lamouri
9041b2ae2a Bug 678694 - (7/7) Interaction between DOM and hal. r=sicking
The battery status is coming from hal and when there is an update, hal informs
the DOM which then dispatch the appropriate event.
2011-11-02 16:27:06 +01:00
Mounir Lamouri
e4a26be94c Bug 678694 - (4/7) Dummy BatteryManager DOM code. r=sicking
Returns default values only and doesn't send events.
2011-11-02 16:01:32 +01:00