Closed Bug 1070831 Opened 10 years ago Closed 10 years ago

Deprecate MozMobileConnection.sendMMI, cancelMMI

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S3 (9jan)

People

(Reporter: aknow, Assigned: bhsu)

References

Details

(Keywords: dev-doc-needed)

Attachments

(8 files, 27 obsolete files)

4.34 KB, patch
bhsu
: review+
Details | Diff | Splinter Review
13.48 KB, patch
bhsu
: review+
Details | Diff | Splinter Review
14.00 KB, patch
bhsu
: review+
Details | Diff | Splinter Review
11.91 KB, patch
bhsu
: review+
Details | Diff | Splinter Review
22.82 KB, patch
bhsu
: review+
Details | Diff | Splinter Review
1.69 KB, patch
bhsu
: review+
Details | Diff | Splinter Review
15.28 KB, patch
bhsu
: review+
Details | Diff | Splinter Review
5.57 KB, patch
bhsu
: review+
Details | Diff | Splinter Review
Once we finish Bug 1058398 and all the gaia related changes, the following interface should be deprecated. - MozMobileConnection.sendMMI - MozMobileConnection.cancelMMI - MozMobileConnection.onussdreceived - USSDReceivedEvent.sessionEnded
Assignee: szchen → bhsu
We also need to... 1. Move notifyUssdReceived from MobileConnectionService.js to TelephonyService.js. Remember to handle the interface as well. 2. Move gMobileConnectionMessenger.notifyUssdReceived from nsIMobileConnectionMessenger to nsITelephonyMessenger.
Attachment #8536485 - Flags: review?(szchen)
Attachment #8536486 - Flags: review?(szchen)
Attachment #8536489 - Flags: review?(szchen)
Attachment #8536491 - Flags: review?(szchen)
Attachment #8536493 - Flags: review?(szchen)
Attachment #8536494 - Flags: review?(szchen)
Attachment #8536495 - Flags: review?(szchen)
Comment on attachment 8536485 [details] [diff] [review] Part 1-1: Remove sendMMI() and cancelMMI() (WebIDL) Review of attachment 8536485 [details] [diff] [review]: ----------------------------------------------------------------- looks good. r? hsinyi for the formal review
Attachment #8536485 - Flags: review?(szchen) → review?(htsai)
Attachment #8536495 - Flags: review?(szchen) → review+
Attachment #8536494 - Flags: review?(szchen) → review+
Attachment #8536489 - Flags: review?(szchen) → review+
Comment on attachment 8536485 [details] [diff] [review] Part 1-1: Remove sendMMI() and cancelMMI() (WebIDL) Review of attachment 8536485 [details] [diff] [review]: ----------------------------------------------------------------- According to comment 0, I would expect to see mobileConnection.onussdreceived and USSDReceivedEvent.sessionEnded being removed, too.
Attachment #8536485 - Flags: review?(htsai)
Comment on attachment 8536485 [details] [diff] [review] Part 1-1: Remove sendMMI() and cancelMMI() (WebIDL) Review of attachment 8536485 [details] [diff] [review]: ----------------------------------------------------------------- According to comment 0, I would expect to see mobileConnection.onussdreceived and USSDReceivedEvent.sessionEnded being removed, too. r=me with following parts for onussdreceived and sessionEnded :)
Attachment #8536485 - Flags: review+
Attachment #8537007 - Flags: review?(htsai)
Attachment #8537008 - Flags: review?(szchen)
Attachment #8537009 - Flags: review?(szchen)
Attachment #8537013 - Flags: review?(szchen)
Comment on attachment 8537007 [details] [diff] [review] Part 2-1: Migrate onussdreceived (WebIDL) Review of attachment 8537007 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/webidl/Telephony.webidl @@ +57,5 @@ > + /** > + * The 'ussdreceived' event is notified whenever a new USSD message is > + * received. > + */ > + attribute EventHandler onussdreceived; Per bug 1058397 comment 15, we are fine without telephony.onussdreceived. Let's just ignore it for now, thank you.
Attachment #8537007 - Flags: review?(htsai)
Attachment #8537014 - Flags: review?(szchen)
Attachment #8537008 - Flags: review?(szchen)
Attachment #8537009 - Flags: review?(szchen)
Attachment #8537013 - Flags: review?(szchen)
Attachment #8537014 - Flags: review?(szchen)
Attachment #8537007 - Attachment is obsolete: true
Attachment #8537073 - Flags: review?(htsai)
Attachment #8537073 - Attachment description: Remove onussdreceived (WebIDL) → Part 2-1: Remove onussdreceived (WebIDL)
Attachment #8537008 - Attachment is obsolete: true
Attachment #8537078 - Flags: review?(szchen)
Attachment #8537009 - Attachment is obsolete: true
Attachment #8537081 - Flags: review?(szchen)
Attachment #8537013 - Attachment is obsolete: true
Attachment #8537083 - Flags: review?(szchen)
Attachment #8537014 - Attachment is obsolete: true
Attachment #8537086 - Flags: review?(szchen)
Attachment #8537090 - Flags: review?(szchen)
Comment on attachment 8537081 [details] [diff] [review] Part 2-3: Remove onussdreceived (IDL) Review of attachment 8537081 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/telephony/nsITelephonyMessenger.idl @@ +44,5 @@ > + * @param message > + * The ussd request in string format. > + * @param sessionEnded > + * Indicates whether the session is ended. > + */ 1. Comment is not correct. You miss one parameter and the description for message is not appropriate. Please refer to the original comment written in nsIMobileConnectionMessenger.idl. 2. You should use "aServiceId" instead of "clientId". Follow the style as notifyCallEnded and make sure the consistency of serviceId 3. Follow the coding style. Use "aXXXX" for the name of parameters
Attachment #8537081 - Flags: review?(szchen)
Comment on attachment 8537073 [details] [diff] [review] Part 2-1: Remove onussdreceived (WebIDL) Review of attachment 8537073 [details] [diff] [review]: ----------------------------------------------------------------- Thank you.
Attachment #8537073 - Flags: review?(htsai) → review+
Attachment #8537081 - Attachment is obsolete: true
Attachment #8537614 - Flags: review?(szchen)
Attachment #8537760 - Flags: review?(htsai)
Attachment #8537762 - Flags: review?(szchen)
Attachment #8536491 - Attachment is obsolete: true
Attachment #8536491 - Flags: review?(szchen)
Attachment #8537769 - Flags: review?(szchen)
Attachment #8537774 - Flags: review?(szchen)
Comment on attachment 8537760 [details] [diff] [review] Part 3-1: Remove sessionEnded (WebIDL) Review of attachment 8537760 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, thank you.
Attachment #8537760 - Flags: review?(htsai) → review+
Comment on attachment 8537614 [details] [diff] [review] Part 2-3: Remove onussdreceived (IDL) (V2) Review of attachment 8537614 [details] [diff] [review]: ----------------------------------------------------------------- Good. Thank you.
Attachment #8537614 - Flags: review?(szchen) → review+
Attachment #8536486 - Flags: review?(szchen) → review+
Attachment #8537769 - Flags: review?(szchen) → review+
Comment on attachment 8536489 [details] [diff] [review] Part 1-3: Remove sendMMI() and cancelMMI() (IDL) Review of attachment 8536489 [details] [diff] [review]: ----------------------------------------------------------------- You'll need to remove dialMMI from nsIGonkTelephonyService.idl
Attachment #8536489 - Flags: review+
Attachment #8537774 - Flags: review?(szchen) → review+
Attachment #8536493 - Flags: review?(szchen) → review+
Attachment #8536489 - Attachment is obsolete: true
Attachment #8538221 - Flags: review?(szchen)
Attachment #8538221 - Flags: review?(szchen) → review+
Attachment #8537762 - Flags: review?(szchen) → review+
Attachment #8537078 - Flags: review?(szchen) → review+
Attachment #8537083 - Flags: review?(szchen) → review+
Attachment #8537086 - Flags: review?(szchen) → review+
Attachment #8537090 - Flags: review?(szchen) → review+
Hi Ben, For bluetooth, remember that there are two folders. You'll need to modify the file under dom/bluetooth2 as well. Then, you can use "git blame" or "hg annotate" to find the original author (I guess it's Ben[:btian])of that piece of code and request the person for review. Ex: http://hg.mozilla.org/mozilla-central/annotate/0e441ff66c5e/dom/bluetooth/BluetoothRilListener.cpp I appreciate you separating the patches into several small chunks. It's really easy for me to review them and I like it. However, for the final version of patches, maybe you could merge several patches into one and organized them by file or by functionality. I don't know the exact rule or preference for formating the patches. It's just my personal feeling because the number of patches you have now looks scary.
Hi Aknow, Thanks for your advice, and I totally agree with you that the number of the patches is scary. I'll organize those patches right after the the patch for bluetooth is review granted.
Hi, Ben Since the internal interface of mobileConnection has been redesigned, we have to remove some code from BluetoothRilListener.cpp. Can you review this patch?
Attachment #8537098 - Attachment is obsolete: true
Attachment #8538944 - Flags: review?(btian)
Comment on attachment 8538944 [details] [diff] [review] Part 2-7: Remove onussdreceived (BluetoothRilListener) (V2) Review of attachment 8538944 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Attachment #8538944 - Flags: review?(btian) → review+
Keywords: checkin-needed
Attachment #8536485 - Attachment is obsolete: true
Attachment #8537073 - Attachment is obsolete: true
Attachment #8537760 - Attachment is obsolete: true
Attachment #8539868 - Flags: review+
Attachment #8536486 - Attachment is obsolete: true
Attachment #8537078 - Attachment is obsolete: true
Attachment #8539869 - Flags: review+
Attachment #8539869 - Attachment description: Part 2: Part 2: Clean up the DOM implementation → Part 2: Clean up the DOM implementation
Attachment #8537614 - Attachment is obsolete: true
Attachment #8538221 - Attachment is obsolete: true
Attachment #8539870 - Flags: review+
Attachment #8537083 - Attachment is obsolete: true
Attachment #8537090 - Attachment is obsolete: true
Attachment #8537762 - Attachment is obsolete: true
Attachment #8537769 - Attachment is obsolete: true
Attachment #8537774 - Attachment is obsolete: true
Attachment #8539872 - Flags: review+
Attachment #8536493 - Attachment is obsolete: true
Attachment #8537086 - Attachment is obsolete: true
Attachment #8539873 - Flags: review+
Attachment #8538944 - Attachment is obsolete: true
Attachment #8539874 - Flags: review+
Attachment #8536494 - Attachment is obsolete: true
Attachment #8536495 - Attachment is obsolete: true
Attachment #8539875 - Flags: review+
Thanks to edgar for reminding me that I've made a mistake when merging those patches, so there is still one testcase should be removed.
Attachment #8541093 - Flags: review?(szchen)
Comment on attachment 8541093 [details] [diff] [review] Part 7: Update related testcases (Follow) Review of attachment 8541093 [details] [diff] [review]: ----------------------------------------------------------------- Please also remove the sendMMI() in mobileconnection head.js r=me with comment addressed.
Attachment #8541093 - Flags: review?(szchen) → review+
Attachment #8541093 - Attachment is obsolete: true
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: