Closed
Bug 802004
Opened 12 years ago
Closed 7 years ago
add support for magnetic field sensor
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: gal, Assigned: ryou)
Details
Attachments
(1 file, 6 obsolete files)
12.72 KB,
patch
|
Details | Diff | Splinter Review |
See GonkSensor.cpp FIXME comment
Reporter | ||
Updated•12 years ago
|
blocking-kilimanjaro: --- → +
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → ryou
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #681380 -
Flags: feedback?(mchen)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #681380 -
Attachment is obsolete: true
Attachment #681380 -
Flags: feedback?(mchen)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #681453 -
Attachment is obsolete: true
Attachment #681464 -
Flags: feedback?(mchen)
Assignee | ||
Updated•12 years ago
|
Attachment #681464 -
Attachment is patch: true
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #681464 -
Attachment is obsolete: true
Attachment #681464 -
Flags: feedback?(mchen)
Attachment #682382 -
Flags: review?(mounir)
Attachment #682382 -
Flags: review?(bugs)
Attachment #682382 -
Flags: review?(blassey.bugs)
Attachment #682382 -
Flags: feedback?(mchen)
Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 682382 [details] [diff] [review]
Add support for magnetic field sensor
TBPL results: https://tbpl.mozilla.org/?tree=Try&rev=4919fa858271
Attachment #682382 -
Flags: review?(mounir)
Attachment #682382 -
Flags: review?(doug.turner)
Attachment #682382 -
Flags: review?(bugs)
Attachment #682382 -
Flags: review?(blassey.bugs)
Attachment #682382 -
Flags: feedback?(mchen)
Comment 6•12 years ago
|
||
Ray - We should propose this as another device sensor to the DAP W3C WG. Did you want to send an email to that list, or should I?
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Doug Turner (:dougt) from comment #6)
> Ray - We should propose this as another device sensor to the DAP W3C WG.
> Did you want to send an email to that list, or should I?
Hi Doug, if it's OK, I would like to start a discussion on the mailing list of DAP.
Comment 8•12 years ago
|
||
That's great.
Updated•12 years ago
|
Component: Hardware → General
Comment 9•12 years ago
|
||
Ray - any feedback so far?
Assignee | ||
Comment 10•12 years ago
|
||
(In reply to Doug Turner (:dougt) from comment #9)
> Ray - any feedback so far?
Hi Doug,
We are working on a wiki page to prepare for the discussion on proposal: https://wiki.mozilla.org/Magnetic_Field_Events
Any advice?
Updated•12 years ago
|
Flags: needinfo?(doug.turner)
Comment 11•12 years ago
|
||
clearing blocking-kilimanjaro flag, I have no idea what it means.
Ray You, great! Do you want to send an email to the dap wg regarding this API? It is very fitting with the rest of the Device APIs. You can send mail to: public-device-apis@w3.org.
blocking-kilimanjaro: + → ---
Flags: needinfo?(doug.turner)
Updated•12 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 12•12 years ago
|
||
(In reply to Doug Turner (:dougt) from comment #11)
> clearing blocking-kilimanjaro flag, I have no idea what it means.
>
> Ray You, great! Do you want to send an email to the dap wg regarding this
> API? It is very fitting with the rest of the Device APIs. You can send
> mail to: public-device-apis@w3.org.
I have sent the email. Thanks.
http://lists.w3.org/Archives/Public/public-device-apis/2012Dec/0072.html
Comment 13•12 years ago
|
||
Comment on attachment 682382 [details] [diff] [review]
Add support for magnetic field sensor
Review of attachment 682382 [details] [diff] [review]:
-----------------------------------------------------------------
i am passing the review here -- sorry that I have sat on this, i was waiting for w3 feedback. I think we probably can go ahead an impl.
josh - would you mind reviewing here?
Attachment #682382 -
Flags: review?(doug.turner) → review?(josh)
Comment 14•12 years ago
|
||
I'm not familiar with most of the code being changed here. I don't think I'm a good reviewer.
Updated•12 years ago
|
Attachment #682382 -
Flags: review?(josh)
Reporter | ||
Updated•12 years ago
|
Attachment #682382 -
Flags: review?(doug.turner)
Comment 15•12 years ago
|
||
ugh. I'll look at this very soon (by Tuesday evening)
Comment 16•12 years ago
|
||
Comment on attachment 682382 [details] [diff] [review]
Add support for magnetic field sensor
Review of attachment 682382 [details] [diff] [review]:
-----------------------------------------------------------------
At a high level, this looks great. Please create a follow up bug for android support.
I am asking smaug to review the event changes. I am thinking we probably want to add this as a webidl, but not sure.
::: dom/interfaces/events/nsIDOMDeviceMagneticFieldEvent.idl
@@ +13,5 @@
> + in double x,
> + in double y,
> + in double z);
> +
> + readonly attribute double x;
These are all in micro Tesla units, right? probably want to say that here.
::: dom/system/nsDeviceSensors.h
@@ +74,5 @@
> + double x,
> + double y,
> + double z);
> +
> +
extra new line.
::: widget/android/nsAppShell.cpp
@@ +381,2 @@
> values.AppendElement(curEvent->X());
> values.AppendElement(curEvent->Y());
Please kill this trailing white space since you're here.
Attachment #682382 -
Flags: review?(doug.turner)
Attachment #682382 -
Flags: review?(bugs)
Attachment #682382 -
Flags: review+
Comment 17•12 years ago
|
||
Comment on attachment 682382 [details] [diff] [review]
Add support for magnetic field sensor
update uuid of nsIDOMWindow.
The patch to make event codegen to handle both .idl and .webidl is still waiting for a review, so no need to add .webidl now. (I'll do it later)
You don't need to add anything to nsIDOMEvent. GeneratedEvents.h will have
NS_NewDOMDeviceMagneticFieldEvent method.
Parameter names in C++ should be in form aParamName
Attachment #682382 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 18•12 years ago
|
||
Attachment #682382 -
Attachment is obsolete: true
Assignee | ||
Comment 19•12 years ago
|
||
Comment on attachment 754699 [details] [diff] [review]
Add support for magnetic field sensor
Sorry for bothering. I uploaded the wrong patch. New patch will be updated later.
Attachment #754699 -
Attachment is obsolete: true
Assignee | ||
Comment 20•12 years ago
|
||
I have created bug 876599, the follow up bug for android support.
Assignee | ||
Comment 21•12 years ago
|
||
@dougt
1. Yes, all values are in micro Tesla units. Document added in nsIDOMDeviceMagneticFieldEvent.idl
2. Extra new line removed.
3. Trailing white space killed.
@smaug
(In reply to Olli Pettay [:smaug] from comment #17)
> Comment on attachment 682382 [details] [diff] [review]
> Add support for magnetic field sensor
>
> update uuid of nsIDOMWindow.
Done.
>
> The patch to make event codegen to handle both .idl and .webidl is still
> waiting for a review, so no need to add .webidl now. (I'll do it later)
>
> You don't need to add anything to nsIDOMEvent. GeneratedEvents.h will have
> NS_NewDOMDeviceMagneticFieldEvent method.
Remove NS_NewDOMDeviceMagneticFieldEvent in nsIDOMEvent.idl
>
> Parameter names in C++ should be in form aParamName
Change the parameter names of initDeviceMagneticFieldEvent in nsIDOMDeviceMagneticFieldEvent.idl
Attachment #755165 -
Flags: review?(bugs)
Comment 22•12 years ago
|
||
Comment on attachment 755165 [details] [diff] [review]
Add support for magnetic field sensor
>+nsDeviceSensors::FireDOMMagneticFieldEvent(mozilla::dom::EventTarget* aTarget,
>+ double x,
>+ double y,
>+ double z)
aX, aY, aZ
Doug, do we have a spec for magnetic field?
Attachment #755165 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 23•12 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #22)
> Comment on attachment 755165 [details] [diff] [review]
> Add support for magnetic field sensor
>
> >+nsDeviceSensors::FireDOMMagneticFieldEvent(mozilla::dom::EventTarget* aTarget,
> >+ double x,
> >+ double y,
> >+ double z)
> aX, aY, aZ
>
Done.
>
> Doug, do we have a spec for magnetic field?
Attachment #755165 -
Attachment is obsolete: true
Comment 24•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Updated•7 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•