Wrong list. Oops.
On Mon, Jan 11, 2010 at 2:50 PM, Andrew Bonventre (Bons) <[email protected]> wrote: > I'm attempting to add context menus to Browser Action buttons within > the toolbar, but I've hit a snag and cannot for the life of me figure > out what is happening with my events... > > - (void)onRightMouseDown:(NSEvent*)theEvent; is never being called > within my NSButton subclass, and in fact, any other portion of the > Toolbar controller except for the Omnibar. I've tried overloading the > function within BrowserActionButton, ToolbarController and > ToolbarView, only to never have it called. In order to track down the > codepath for a right mouse down event that _does_ work in the toolbar, > I got a stacktrace of the context menu code within the Omnibar: > > #0 0x001c7454 in -[AutocompleteTextFieldEditor menuForEvent:] at > autocomplete_text_field_editor.mm:89 > #1 0x92ecf0ae in -[NSView rightMouseDown:] > #2 0x92e3e1ef in -[NSTextView rightMouseDown:] > #3 0x929adfe0 in -[NSWindow sendEvent:] > #4 0x001f6c58 in -[ChromeEventProcessingWindow sendEvent:] at > chrome_event_processing_window.mm:101 > #5 0x001f58a7 in -[ChromeBrowserWindow sendEvent:] at > chrome_browser_window.mm:300 > #6 0x928c6b2f in -[NSApplication sendEvent:] > #7 0x0078b18a in -[CrApplication sendEvent:] at > chrome_application_mac.mm:33 > #8 0x9285a4ff in -[NSApplication run] > ... > > I have confirmed that -[ChromeEventProcessingWindow sendEvent:] IS > being called on right mouse clicks and therefore NSWindow's sendEvent > is being called. > > Any ideas would be greatly appreciated. Something is eating them up > and I don't know what's going on. > > A >
-- Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev
