Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tong
committed
Oct 30, 2015
1 parent
419a198
commit 6574a1e
Showing
5 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
TODO | ||
test/* | ||
haxedoc.xml | ||
_* | ||
examples/* | ||
doc/* | ||
examples/* | ||
test/* | ||
haxedoc.xml | ||
TODO* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package chrome; | ||
|
||
import js.html.ArrayBuffer; | ||
import chrome.Events; | ||
|
||
@:enum abstract Hash(String) from String to String{ | ||
var MD5_SHA1 = "MD5_SHA1"; | ||
var SHA1 = "SHA1"; | ||
var SHA256 = "SHA256"; | ||
var SHA384 = "SHA384"; | ||
var SHA512 = "SHA512"; | ||
} | ||
|
||
typedef CertificateInfo = { | ||
var certificate : ArrayBuffer; | ||
var supportedHashes : Array<Hash>; | ||
} | ||
|
||
typedef SignRequest = { | ||
var digest : ArrayBuffer; | ||
var hash : Hash; | ||
var certificate : ArrayBuffer; | ||
} | ||
|
||
@:require(chrome) | ||
@:require(chrome_os) | ||
@:native("chrome.certificateProvider") | ||
extern class CertificateProvider { | ||
static var onCertificatesRequested : Event<(Array<CertificateInfo>->Void)->Void>; | ||
static var onSignDigestRequested : Event<SignRequest->(ArrayBuffer->Void)->Void>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package chrome; | ||
|
||
import chrome.Events; | ||
|
||
//@chrome_permissions(["gcm"]) | ||
@:require(chrome) | ||
@:require(chrome_ext) | ||
@:native("chrome.instanceID") | ||
extern class InstanceID { | ||
static function getID( callback : String->Void ) : Void; | ||
static function getCreationTime( callback : Float->Void ) : Void; | ||
static function getToken( getTokenParams : {authorizedEntity:String,scope:String,?options:Dynamic}, callback : String->Void ) : Void; | ||
static function deleteToken( deleteTokenParams : {authorizedEntity:String,scope:String}, callback : Void->Void ) : Void; | ||
static function deleteID( callback : Void->Void ) : Void; | ||
static var onTokenRefresh(default,never) : Event<Void->Void>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters