Contact emails
rijubrat...@intel.com (eng)
Spec
Candidate Recommendation:
http://www.w3.org/TR/ambient-light/ Editor's Draft:
https://dvcs.w3.org/hg/dap/raw-file/default/light/Overview.html
Summary
Implement Ambient Light Event API which is a handy way to make a web page or web app aware of any change in light intensity.
Motivation
The idea with this API is to detect light level from the surroundings and preferably adapt the user experience based on this information. Different user experiences can be created if say the user is outside in sunlight or if the user is under low light conditions like inside a car.
Compatibility Risk
This is a new API and Mozilla has already implemented and shipped it in Firefox 22.0 for Mac OS X and Firefox Mobile 15.0 for Android.
https://developer.mozilla.org/en-US/docs/WebAPI/Using_Light_Events#Browser_compatibility
Implementation details :
https://bugzilla.mozilla.org/show_bug.cgi?id=738465
I will be implementing it behind a runtime flag.
Ongoing technical constraints
None
Will this feature be supported on all five Blink platforms (Windows, Mac, Linux, Chrome OS and Android)?
Yes. (Android and Mac implementations first)
OWP launch tracking bug?
https://code.google.com/p/chromium/issues/detail?id=336424
Link to entry on the feature dashboard
http://www.chromestatus.com/admin/features/edit/5298357018820608
Requesting approval to ship?
No.
Thanks,
-Anssi
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Hi,
I feel we could retrofit the request*() or similar into a Level 2 spec in this case. Implementations could then consider the operations noop and fire no events, if the request does not resolve successfully.
That said, am I hearing no concerns in enabling the feature by default now given we can retrofit?
> To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
>
>
>
> --
> - Riju
>
>
> To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
On Wed, 5 Mar 2014, at 10:19, Alex Russell wrote:My understanding is that listening to devicelight event would be an
> Once again, delivery of ondevicelight events should be guarded by a
> request
> (even if we choose to enable it by default for now in Chrome). E.g.:
>
> navigator.requestDeviceLight().then(...);
implicit request .
Hi Alex,
As Mounir pointed out the requestPermission/hasPermission should be applied to other related APIs also, e.g. device motion/ orientation which are status=stable now.
How about we land this feature in this form (as per the spec) behind the experimental flag and get some feedback from web app developers.
In the meantime, Anssi takes this permission discussion to W3C, and when there is some kind of consensus there, he changes the spec and we change the implementation.
Does it sound like a plan ?
Cheers,
Riju.
Sounds good.