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
Jun 6, 2014
1 parent
cfd6cc0
commit d88b092
Showing
71 changed files
with
1,283 additions
and
1,157 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,24 +1,29 @@ | ||
|
||
## | ||
## chrome-extension | ||
## | ||
|
||
all: haxedoc.xml | ||
|
||
haxedoc.xml: | ||
PROJECT = chrome-ext | ||
SRC := $(shell find chrome/ -type f -name '*.hx') | ||
|
||
all: haxedoc.xml documentation $(PROJECT).zip | ||
|
||
haxedoc.xml: $(SRC) | ||
haxe haxedoc.hxml | ||
|
||
chrome-extension.zip: haxedoc.xml | ||
zip -r $@ chrome/ extraParams.hxml haxedoc.hxml haxelib.json README.md | ||
documentation: $(SRC) haxedoc.xml | ||
haxelib run dox -o doc/ -i ./ | ||
|
||
$(PROJECT).zip: $(SRC) haxedoc.xml | ||
zip -r $@ chrome/ extraParams.hxml haxedoc.xml haxelib.json README.md | ||
|
||
install: chrome-extension.zip | ||
haxelib install chrome-extension.zip | ||
install: $(PROJECT).zip | ||
haxelib install $(PROJECT).zip | ||
|
||
uninstall: haxelib | ||
haxelib remove chrome-extension | ||
uninstall: | ||
haxelib remove $(PROJECT) | ||
|
||
clean: | ||
rm -f chrome-extension.zip haxedoc.xml | ||
rm -f $(PROJECT).zip haxedoc.xml | ||
rm -rf doc/ | ||
|
||
.PHONY: install uninstall clean | ||
.PHONY: all documentation install uninstall clean | ||
|
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,8 +1,11 @@ | ||
CHROME-EXTENSION | ||
================ | ||
Haxe/Javascript type definitions for the google chrome extension api. | ||
http://code.google.com/chrome/extensions | ||
https://developer.chrome.com/extensions/api_index | ||
|
||
API version: 33 | ||
API version: 35 | ||
|
||
For packaged apps type definitions see: https://github.com/tong/chrome.app | ||
For packaged apps types see: https://github.com/tong/chrome.app | ||
For using types available on chrome-os only set: -D chrome_os | ||
For using dev channel apis set: -D chrome_dev | ||
For using experimental apis set: -D chrome_experimental |
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
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,20 +1,21 @@ | ||
package chrome; | ||
|
||
@:require(chrome) | ||
typedef ColorArray = Array<Int>; | ||
private typedef ImageDataType = Dynamic; //TODO | ||
|
||
@:require(chrome_ext) | ||
@:native("chrome.browserAction") | ||
extern class BrowserAction { | ||
|
||
static function setTitle( details : { title : String, ?tabId : Int } ) : Void; | ||
static function getTitle( details : { ?tabId : Int }, cb : String->Void ) : Void; | ||
static function setIcon( details : { ?imageData : Dynamic, ?path : String, ?tabId : Int }, ?cb : Void->Void ) : Void; // ?imageData : ImageData | ||
static function getTitle( details : { ?tabId : Int }, f : String->Void ) : Void; | ||
static function setIcon( details : { ?imageData : ImageDataType, ?path : Dynamic, ?tabId : Int }, ?f : Void->Void ) : Void; | ||
static function setPopup( details : { ?tabId : Int, popup : String } ) : Void; | ||
static function getPopup( details : { ?tabId : Int }, cb : String->Void ) : Void; | ||
static function getPopup( details : { ?tabId : Int }, f : String->Void ) : Void; | ||
static function setBadgeText( details : { text : String, ?tabId : Int } ) : Void; | ||
static function getBadgeText( details : { ?tabId : Int }, cb : String->Void ) : Void; | ||
static function setBadgeBackgroundColor( details : { color : Array<Int>, ?tabId : Int } ) : Void; | ||
static function getBadgeBackgroundColor( details : { ?tabId : Int }, cb : Array<Int>->Void ) : Void; | ||
static function getBadgeText( details : { ?tabId : Int }, f : String->Void ) : Void; | ||
static function setBadgeBackgroundColor( details : { color : ColorArray, ?tabId : Int } ) : Void; | ||
static function getBadgeBackgroundColor( details : { ?tabId : Int }, f : ColorArray->Void ) : Void; | ||
static function enable( ?tabId : Int ) : Void; | ||
static function disable( ?tabId : Int ) : Void; | ||
|
||
static var onClicked(default,null) : Event<Tab->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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.