A callback is used when you want to create/update/remove a tab and you
want to know when it is done.

An event is used when you just generally want to know when the tab
system changes state -- whether you initiated it or someone else (the
user, another extension, etc).

- a

On Mon, Jun 15, 2009 at 10:32 AM, disya2<[email protected]> wrote:
>
> Hi,
>
> Learning 
> http://dev.chromium.org/developers/design-documents/extensions/tabs-api
> I found myself confused.
> Looking at
>  void update(int id, {[string url], [bool selected]}, [void callback
> ()])
>  void create([{[string url], [int windowId], [int index], [bool
> selected]}],  [void callback(Tab)])
> and
>  event onUpdated(int tabId, Object changedProps)
>  event onCreated(Tab)
>
> I don't quite understand the difference between callbacks and event
> listeners. Say if I want to know exactly when a tab was updated or
> created what shall I use: callback or event listener?
>
>
> Thanks,
> Denis
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to