Closed Bug 802004 Opened 12 years ago Closed 7 years ago

add support for magnetic field sensor

Categories

(Firefox OS Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gal, Assigned: ryou)

Details

Attachments

(1 file, 6 obsolete files)

See GonkSensor.cpp FIXME comment
blocking-kilimanjaro: --- → +
Assignee: nobody → ryou
Attachment #681380 - Flags: feedback?(mchen)
Attachment #681380 - Attachment is obsolete: true
Attachment #681380 - Flags: feedback?(mchen)
Attachment #681453 - Attachment is obsolete: true
Attachment #681464 - Flags: feedback?(mchen)
Attachment #681464 - Attachment is patch: true
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)
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)
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?
(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.
That's great.
Component: Hardware → General
Ray - any feedback so far?
(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?
Flags: needinfo?(doug.turner)
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)
Keywords: dev-doc-needed
(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 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)
I'm not familiar with most of the code being changed here. I don't think I'm a good reviewer.
Attachment #682382 - Flags: review?(josh)
Attachment #682382 - Flags: review?(doug.turner)
ugh. I'll look at this very soon (by Tuesday evening)
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 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+
Attachment #682382 - Attachment is obsolete: true
Blocks: 876599
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
No longer blocks: 876599
I have created bug 876599, the follow up bug for android support.
@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 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+
(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
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: