Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / networking_private.json
index 5ef6d7b..b9f66e8 100644 (file)
         "id": "NetworkType",
         "type": "string",
         "enum": ["Ethernet", "WiFi", "Cellular"]
+      },
+      {
+        "id": "CaptivePortalStatus",
+        "type": "string",
+        "enum": ["Unknown", "Offline", "Online", "Portal", "ProxyAuthRequired"]
       }
     ],
     "functions": [
       },
       {
         "name": "getVisibleNetworks",
-        "description": "Gets the list of visible networks, and returns a list of cached, read-only network properties for each.",
+        "description": "Returns a list of visible network objects with the following ONC properties: GUID, Type, Name, ConnectionState, ErrorState, WiFi.Security, WiFi.SignalStrength, Cellular.NetworkTechnology, Cellular.ActivationState, Cellular.RoamingState. Cellular.OutOfCredits",
         "parameters": [
           {
             "name": "type",
             "description": "A callback function that receives a string with the current TDLS status which can be 'Connected', 'Disabled', 'Disconnected', 'Nonexistent', or 'Unknown'"
           }
         ]
+      },
+      {
+        "name": "getCaptivePortalStatus",
+        "description": "Returns captive portal status for the network with networkGuid.",
+        "parameters": [
+          {
+            "name": "networkPath",
+            "type": "string",
+            "description": "The path of the network to get captive portal status."
+          },
+          {
+            "name": "callback",
+            "type": "function",
+            "parameters": [
+              {
+                "name": "status",
+                "$ref": "CaptivePortalStatus",
+                "description": "Results of the query for network captive portal status."
+              }
+            ]
+          }
+        ]
       }
     ],
     "events": [
             "items": { "type": "string" }
           }
         ]
+      },
+      {
+        "name": "onPortalDetectionCompleted",
+        "type": "function",
+        "description": "Fired when a portal detection for a network completes. Sends a name of the network and corresponding captive portal status.",
+        "parameters": [
+          {
+            "name": "networkPath",
+            "type": "string"
+          },
+          {
+            "name": "status",
+            "$ref": "CaptivePortalStatus"
+          }
+        ]
       }
     ]
   }