j-mcnally / ember-cli-chrome

A small and growing toolkit to build chrome extensions with EmberJS
62 stars 12 forks source link

Promise Layer #8

Open muhang opened 9 years ago

muhang commented 9 years ago

I'd love to take a crack at getting this goal implemented, but I was wondering which chrome API calls you were intending to wrap. It seems like it would make sense to wrap:

This would allow these three calls in the included function to be chained. If this sounds good, I'll go ahead and give it a whirl!

j-mcnally commented 9 years ago

Hey none of those really need it, the promise stuff I was talking about is for the chrome api. Check out https://developer.chrome.com/extensions/api_index

The major ones ive run into needing support for are:

https://developer.chrome.com/extensions/tabs https://developer.chrome.com/extensions/bookmarks

but there are many use cases using the others.

devinrhode2 commented 9 years ago

In my several years of experience with the chrome extension api, I'm sure the chrome team would love to have a promise style api available. It would probably be easier to write this code inside the ember-cli-chrome addon, but it would be good to make it it's own small repo when the code is mature, and make sure the chrome extension api team knows about it.