[chromium-dev] Re: [extensions] Gleam API proposal

2009-06-03 Thread Brett Wilson

On Wed, Jun 3, 2009 at 1:00 PM, Aaron Boodman a...@chromium.org wrote:

 [I actually created this awhile ago, but never sent it 'round]

 It is really common for extensions to want to offer additional
 contextual options for content elements. For example Download this
 movie, edit this image, call this phone number, etc.

 You can use content scripts for this, but since it is such a common
 task, I think it deserves its own proper API. This would allow this
 class of extensions to interact well with pages, with each other, and
 have a nice consistent UI.

 Anyway, here's an API proposal for such a thing:

 http://dev.chromium.org/developers/design-documents/extensions/gleam-api

 Comments wanted!

I think this general concept would be great.

Say I have an extension that allows me to open images in Photoshop.
Does that mean all images would have these things highlighting them?
That seems like it would be annoying.

When I read this, I first thought it was just a way to insert stuff
into a context menu when the user right-clicks on that. Perhaps having
both modes would be useful. The image editing or video download
extension would register itself as interested in these things only
from the context menu, and they'd get a chance to insert commands into
that menu to do whatever they want.

This could also be useful for less-intrusive extensions. I want the
ability to right-click on one to open it in my favorite mapping
provider, but I *don't* want all addresses glowing blue.

Brett

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [extensions] Gleam API proposal

2009-06-03 Thread Aaron Boodman

On Wed, Jun 3, 2009 at 1:33 PM, Brett Wilson bre...@chromium.org wrote:
 Say I have an extension that allows me to open images in Photoshop.
 Does that mean all images would have these things highlighting them?
 That seems like it would be annoying.

Yeah, we'd have to experiment with the presentation. I was thinking
that a really subtle highlight might work, but I'd have to see it. We
definitely don't want something that's annoying.

And you're right maybe multiple presentation options are needed.

- a

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---