Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jeff Gilbert
5b753da289
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Peter Van der Beken
33304e70f6
Bug 1453011 - Remove some unused nsIXPCScriptable flags. r=bz.
...
--HG--
extra : rebase_source : bd116870762e7b9b0fcae558039c3522acb30009
2018-03-22 10:37:43 +01:00
Ehsan Akhgari
7ca863c4ee
Bug 1318344 - Remove the special casing for apps not lying about battery status; r=baku
2016-11-17 12:35:51 -05:00
Tom Schuster
7314ad853b
Bug 1292655 - Limit BatteryManager chargingTime/dischargingTime precision. r=baku
2016-08-16 22:56:21 +02:00
Nicholas Nethercote
ca40b738e4
Bug 1294620 - Use infallible XPIDL attribute getters more. r=erahm.
...
This makes a lot of code more compact, and also avoids some redundant nsresult
checks.
The patch also removes a handful of redundant checks on infallible setters.
--HG--
extra : rebase_source : f82426e7584d0d5cddf7c2524356f0f318fbea7d
2016-08-12 15:19:29 +10:00
Michelangelo De Simone
3eb888db23
Bug 1250109 - Change DOMEventTargetHelper subclasses to not assume that GetOwner() is non-null, since it can be nulled out by navigation. r=bzbarsky
...
MozReview-Commit-ID: 8EGB58FWLi2
--HG--
extra : rebase_source : f8d190021ad92f707cfce554ced5c525cc528f4d
2016-03-04 13:37:50 -08:00
James Willcox
6cebeac163
Bug 1250106 - Correctly set charging status and remaining time when battery level is rounded to 1.0 r=bz
2016-03-08 09:00:37 -06:00
Wes Kocher
42a4a32f0c
Backed out changeset 7bb636bd183b (bug 1250106) for test_deprecated_battery_basics.html failures CLOSED TREE
...
MozReview-Commit-ID: GuZQHh8G8YC
2016-03-07 17:03:16 -08:00
James Willcox
9176ba0725
Bug 1250106 - Correctly set charging status and remaining time when battery level is rounded to 1.0 r=bz
2016-03-07 16:16:53 -06:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Nathan Froyd
c381a6b86c
Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
...
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
James Willcox
cc37ce9e78
Bug 1191918 - Remove printf debugging r=me
2015-09-29 16:48:04 -05:00
James Willcox
e027a0e412
Bug 1191918 - Round battery level to nearest 10% r=bz
2015-09-29 16:30:13 -05:00
Wei-Cheng Pan
78ad28ee88
Bug 1050749 - Expose BatteryManager via getBattery() returning a Promise. r=bz, r=baku, r=jgraham
2015-08-21 18:29:25 +08:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
dc24477d79
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Reuben Morais
6b28e6ff71
Bug 952486 - Use CheckPermissions instead of Func for several interfaces. r=bz
2014-05-25 15:31:11 -03:00
Fabrice Desré
2deb233e1d
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
df3026450e
Bug 952486 - Use CheckPermissions instead of Func for several interfaces. r=bz
2014-05-25 15:31:11 -03:00
Boris Zbarsky
79dab91ff6
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
d4bd64ee2c
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
930436ef24
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
08a11f7934
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
f401c6a7cc
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
b834439797
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
23ba391ec1
Bug 848339 - Remove the vestigial boolean outparam from nsWrapperCache::WrapObject. r=bz
2013-03-12 08:03:47 +09:00
Andrea Marchesini
d2702a1f80
Bug 838124 - Convert BatteryManager to WebIDL. r=peterv
2013-02-05 07:54:49 -05:00
Ms2ger
4c7f8c7ec0
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
a30e1929a4
Bug 720768 - add nsDOMEventTargetHelper::DispatchTrustedEvent; r=mounir, sr=smaug
2012-09-27 16:11:31 -04:00
Kyle Huey
3b42fbfcd1
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
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Mounir Lamouri
1aae6d606d
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
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Olli Pettay
b063392a27
Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, r=jst,bent
2012-03-13 02:56:07 +02:00
Edmund Wong
e79d1c340c
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
6562304b10
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
36656982f0
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
8829baa8cc
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
9ba6549b65
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
e5ab052440
Bug 701517 - Moz-prefix Battery API interfaces. rs+sr=smaug
2011-11-19 11:43:57 +01:00
Mounir Lamouri
cbc023ee10
Bug 700298 - r=smaug
2011-11-19 11:37:21 +01:00
Mounir Lamouri
b4692e95a1
Bug 700261 - Add .chargingTime/.dischargingTime support to hal code. r=cjones
2011-11-09 09:58:59 +01:00
Mounir Lamouri
929ef89d75
Bug 699743 - Add chargingTime attribute in BatteryManager. r=sicking
2011-11-09 09:58:18 +01:00
Mounir Lamouri
2b998bec64
Bug 699744 - Add dischargingTime attribute in BatteryManager. r=sicking
2011-11-09 09:57:57 +01:00
Mounir Lamouri
5741523317
Bug 699742 - (1/4) battery.level should be a double (DOM part). r=sicking
2011-11-09 09:56:52 +01:00
Mounir Lamouri
d2abf648c5
Bug 699459 - Add a pref to disable Battery API. r=sicking
2011-11-04 00:31:32 +01:00
Mounir Lamouri
087411f650
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
5dcf69a436
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