Closed
Bug 1109458
Opened 11 years ago
Closed 11 years ago
Let privilege App know if NFC is enabled or not.
Categories
(Firefox OS Graveyard :: NFC, defect)
Tracking
(feature-b2g:2.2+)
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
Details
(Whiteboard: [p=1])
Attachments
(1 file, 2 obsolete files)
|
4.80 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
App should know current hardware state of NFC, so when NFC is OFF, the app could tell the user to enable it.
Updated•11 years ago
|
feature-b2g: --- → 2.2+
| Assignee | ||
Comment 1•11 years ago
|
||
Just dicussed with Dimi, we plan to add a method 'isEnabled()' to do this.
Although we already have an attribute called rfState in NfcOptions.webidl, but that seems overkill.
Assignee: nobody → allstars.chh
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8535426 -
Flags: review?(dlee)
Updated•11 years ago
|
Attachment #8535426 -
Flags: review?(dlee) → review+
| Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8535426 [details] [diff] [review]
Patch.
Review of attachment 8535426 [details] [diff] [review]:
-----------------------------------------------------------------
Add r? to smaug for the WebIDL change.
Attachment #8535426 -
Flags: review?(bugs)
| Assignee | ||
Updated•11 years ago
|
Attachment #8535426 -
Flags: review?(bugs)
| Assignee | ||
Comment 4•11 years ago
|
||
updated default value in parent process.
Attachment #8535426 -
Attachment is obsolete: true
Attachment #8535494 -
Flags: review?(dlee)
Updated•11 years ago
|
Attachment #8535494 -
Flags: review?(dlee) → review+
| Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 8535494 [details] [diff] [review]
Patch v2.
r? to smaug for WebIDL change
Attachment #8535494 -
Flags: review?(bugs)
Comment 6•11 years ago
|
||
Comment on attachment 8535494 [details] [diff] [review]
Patch v2.
Why method and why not readonly attribute?
But I don't have strong feeling which one would be better.
Attachment #8535494 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #6)
> Why method and why not readonly attribute?
> But I don't have strong feeling which one would be better.
readonly attribute sounds better.
I'll upload another patch.
Thanks
| Assignee | ||
Comment 8•11 years ago
|
||
using readonly attribute.
Attachment #8535494 -
Attachment is obsolete: true
Attachment #8536296 -
Flags: review?(bugs)
Updated•11 years ago
|
Attachment #8536296 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 9•11 years ago
|
||
Whiteboard: [p=1]
Target Milestone: --- → 2.2 S2 (19dec)
Comment 10•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•