--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
I do have a question about contexts. What will VIDEO and AUDIO be? Will these just be the <video> and <audio> tags? Or will you be able to detect when a user clicks on a Flash video? How about an .mp3 link?
For the create method, do you see see putting the code once, say at the bottom of a background script, or is this something that you call each time a right-click event is passed to your extension? If it is the former, can you create two contextMenus? I would like to create one when the context is PAGE and another when the context is AUDIO.
> Some people have asked for a onBeforeShow() event to fire before the menu items are displayed, but this may be infeasible
> given chrome's multiprocess architecture and desire to keep the UI very responsive.
I understand you don't want the user to wait for a context menu to
show, and this is to be applauded. Also the "only one top level menu
per extension" should hopefully alleviate the context menu bloat we
get in Firefox, so bonus points for that too.
I have one specific user cases where the context menu items will take
some time to create:
Lazarus: Form Recovery (https://chrome.google.com/extensions/detail/
loljledaigphbcpfhfmgopdkppkifgno/). The submenu will be a list of
items that the user can restore into the textarea that the user has
right clicked on. The list is generated by looking up the items in a
local html5 database (on the background page), which is relatively
speedy and doesn't pose a problem. However we are encrypting each
item, and as such decrypting the items can take a small amount of time
(~100ms on an older machine). But when showing the first 10 or so
items this will cause up to a 1 second delay.
If we can't have an onBeforeShow event, can we have an onShow event
instead. That way developers can show a loading menu item
("loading..." or a loading image inside the menu), retrieve the
required data to build the menu, and then add the menu items
dynamically when the data is ready?
It would therefore be useful to have a onHide event so we could remove
the items when the menu closes (otherwise the previous items would
appear in the menu momentarily before we had a chance to replace them
with the loading menuitem, the second time the menu was opened).
It would be useful to be able to show additional/help information when
the one line description isn't enough.
Ok that makes sense. Do you think getting the DOM node is something that will quickly follow the release of this API? It is certainly very useful in its current state, but I can think of a few things already that I would need to know the node to make use of. If there was also a way to dynamically gray out menu items that would help a lot as well.
If we can't have an onBeforeShow event, can we have an onShow event
instead. That way developers can show a loading menu item
("loading..." or a loading image inside the menu), retrieve the
required data to build the menu, and then add the menu items
dynamically when the data is ready?
It would therefore be useful to have a onHide event so we could remove
the items when the menu closes (otherwise the previous items would
appear in the menu momentarily before we had a chance to replace them
with the loading menuitem, the second time the menu was opened).
I'm not so sure about that. In my case there will be items that are
always there (eg options, login/logout) and others that will take a
while to load (restore text items).
So if could specify a loading menu item myself, that would be more
flexible than having chrome decide for me.
> Adding onHide should be straightforward. I'll add that to the todo list.
Awesome thanks.
Karl
If this is not easily achievable then don't worry about it, but if
it's a simple addition to the OS functions then I, for one, would find
it really useful.
Karl
On Mar 26, 12:22 am, PhistucK <phist...@gmail.com> wrote:
> I am not sure this is at all possible. This is really not the standard user
> experience (at least on Windows).
>
> ☆PhistucK
>
>
>
> On Thu, Mar 25, 2010 at 00:34, karl <k...@interclue.com> wrote:
> > Can we set tooltip text for menu item?
>
> > It would be useful to be able to show additional/help information when
> > the one line description isn't enough.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
Ah I see, thats great! How would we refer to an "existing" item?
I was hoping there was a "quick" way to refer a context menu so I could mark it for removal or for update (after you land your change). For example, say I am creating 10 context menus, and its customizable by user. The only way to do this, is to programmatically keeping track of the "id" of each context menu creation and storing the value somewhere globally. If there was a way to iterate the available context menu's installed in my extension, that would make the API easier to deal with, not saying creating global variables is hard :)
Hi All,I just got caught-up on the contents of this thread, and I wanted to make sure that everyone is aware of another experimental API that can be used to implement context-menu-like functionality. There is an experimental popup Chrome extension API that has been implemented for Windows that allows for display of a single top-level window hosting an extension view. There is not explicit support for menu items, but since it is hosting a render-view, any context-menu system could be implemented via it.
See the initial design document here: https://docs.google.com/Doc?docid=0AWTKb4thI6aoZGdzYmpoNXpfMjJnYnZwcnJmMw&hl=enThe implementation is mostly in browser\extensions\extension_popup_api.cc. Also, see the current API declaration in chrome\common\extensions\api\extension_api.json.Note that this API is also still in a very experimental state and may not end up in Chromium.I hope that this does not overlap too much with your efforts, Antony.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
--