Closed Bug 1107683 Opened 10 years ago Closed 10 years ago

[Camera][Gecko] (Finally) get rid of CameraControl callbacks

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S2 (19dec)

People

(Reporter: mikeh, Assigned: mikeh)

References

Details

(Keywords: dev-doc-needed)

Attachments

(1 file, 3 obsolete files)

      No description provided.
Assignee: nobody → mhabicher
Status: NEW → ASSIGNED
Attachment #8533972 - Flags: review?(aosmond)
Comment on attachment 8533972 [details] [diff] [review]
Remove method callbacks from CameraControl, v1

Removing r? -- this patch doesn't include the unsolicited event callback removal.
Attachment #8533972 - Flags: review?(aosmond)
Comment on attachment 8534184 [details] [diff] [review]
Remove method and attribute callbacks from CameraControl, v2

bz: this patch removes all of the method and attribute callbacks, in favour of promises and events.
Attachment #8534184 - Flags: review?(bzbarsky)
Comment on attachment 8534184 [details] [diff] [review]
Remove method and attribute callbacks from CameraControl, v2

Review of attachment 8534184 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/camera/DOMCameraControl.cpp
@@ -1701,5 @@
>        aError, aContext);
>      return;
>    }
>  
> -  DOM_CAMERA_LOGI("DOM OnUserError aContext=%u, aError=0x%x\n", aContext, aError);

We stil need this print.

::: dom/webidl/CameraControl.webidl
@@ -351,5 @@
> -     stop moving the focus position; it can be used to update a UI element to
> -     indicate that the camera is still trying to focus, or has finished. Some
> -     platforms do not support this event, in which case the callback is never
> -     invoked. */
> -  [Pref="camera.control.autofocus_moving_callback.enabled"]

Remove this pref from modules/libpref/init/all.js since we no longer use it?
Comment on attachment 8534184 [details] [diff] [review]
Remove method and attribute callbacks from CameraControl, v2

Review of attachment 8534184 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/camera/DOMCameraControl.cpp
@@ -1701,5 @@
>        aError, aContext);
>      return;
>    }
>  
> -  DOM_CAMERA_LOGI("DOM OnUserError aContext=%u, aError=0x%x\n", aContext, aError);

Missed the addition at the top sorry.
Attachment #8534184 - Flags: review?(aosmond) → review+
Comment on attachment 8534184 [details] [diff] [review]
Remove method and attribute callbacks from CameraControl, v2

r=me for the webidl changes.  I sorta-skimmed part of the rest, but if you want me to actually look at it at all carefully, please let me know.
Attachment #8534184 - Flags: review?(bzbarsky) → review+
(In reply to Boris Zbarsky [:bz] from comment #7)

> r=me for the webidl changes.  I sorta-skimmed part of the rest, but if you
> want me to actually look at it at all carefully, please let me know.

Nope -- as long as you're fine with the WebIDL, the rest is just deleting the backing code. Thanks!
https://hg.mozilla.org/mozilla-central/rev/12c5cc6e88b3
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S2 (19dec)
See Also: → 1161175
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: