Bug 831627 - 0001. Add event object. r=yoshi. sr=sicking
authorChuck Lee <chulee@mozilla.com>
Tue, 29 Jan 2013 10:32:31 +0800
changeset 120309 f7eac60178f6401d20827a73b012f6593da282d0
parent 120308 4f7371e936e0f2339d6649985515b90ed294bce4
child 120310 64b519b7fddf27f132103272090b687569905a04
push id22148
push useryhuang@mozilla.com
push dateWed, 30 Jan 2013 02:31:52 +0000
treeherdermozilla-inbound@3125ccd01edb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyoshi, sicking
bugs831627
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 831627 - 0001. Add event object. r=yoshi. sr=sicking
dom/icc/interfaces/SimToolKit.idl
dom/icc/interfaces/nsIDOMIccManager.idl
--- a/dom/icc/interfaces/SimToolKit.idl
+++ b/dom/icc/interfaces/SimToolKit.idl
@@ -587,19 +587,36 @@ dictionary MozStkLocalInfo
   /**
    * Language Information
    *
    * @see ISO 639-1, Alpha-2 code
    */
   DOMString language;
 };
 
+dictionary MozStkLanguageSelectionEvent
+{
+  /**
+   * The type of this event.
+   * It shall be nsIDOMMozIccManager.STK_EVENT_TYPE_LANGUAGE_SELECTION.
+   */
+  unsigned short eventType;
+
+  /**
+   * Language Information
+   *
+   * @see ISO 639-1, Alpha-2 code
+   *      "de" for German, "en" for English, "zh" for Chinese, etc.
+   */
+  DOMString language;
+};
+
 dictionary MozStkGeneralEvent
 {
   /**
    * The type of this event, MozStkGeneralEvent can be used for all Stk Event
    * requires no more parameter than event type, including
-   * nsIDOMMozIccManager.STK_EVENT_TYPE_USER_ACTIVITY
-   * nsIDOMMozIccManager.STK_EVENT_TYPE_IDLE_SCREEN_AVAILABLE
-   * HCI Connectivity Event(Not defined in interface yet)
+   * nsIDOMMozIccManager.STK_EVENT_TYPE_USER_ACTIVITY.
+   * nsIDOMMozIccManager.STK_EVENT_TYPE_IDLE_SCREEN_AVAILABLE.
+   * HCI Connectivity Event(Not defined in interface yet).
    */
   unsigned short eventType;
 };
--- a/dom/icc/interfaces/nsIDOMIccManager.idl
+++ b/dom/icc/interfaces/nsIDOMIccManager.idl
@@ -251,16 +251,18 @@ interface nsIDOMMozIccManager : nsIDOMEv
   /**
    * Send "Event Download" Envelope command to ICC.
    * ICC will not respond with any data for this command.
    *
    * @param event
    *        one of events below:
    *        - MozStkLocationEvent
    *        - MozStkCallEvent
+   *        - MozStkLanguageSelectionEvent
+   *        - MozStkGeneralEvent
    */
   void sendStkEventDownload(in jsval event);
 
   /**
    * The 'stkcommand' event is notified whenever STK Proactive Command is
    * issued from ICC.
    */
   [implicit_jscontext] attribute jsval onstkcommand;