Lines Matching full:menu
79 - (BOOL)_anyPDFTagsFoundInMenu:(NSMenu *)menu;
242 // was using the old jumpToSelection selector in its menu. Newer versions of Safari will us the
340 // Start with the menu items supplied by PDFKit, with WebKit tags applied
349 appName = UI_STRING("Finder", "Default application name for Open With context menu");
353 NSString *title = [NSString stringWithFormat:UI_STRING("Open with %@", "context menu item for PDF"), appName];
363 // pass the items off to the WebKit context menu mechanism
366 NSMenu *menu = [webView _menuForElement:[self elementAtPoint:[self convertPoint:[theEvent locationInWindow] fromView:nil]] defaultItems:items];
369 // remove or modify some of the PDF-related items. In 10.4, the PDF context menu did not go through
371 // clients that create their own context menu by hand-picking specific items from the default list, such as
375 // menu items. This backward-compatibility hack won't work with any non-Safari clients, but this seems OK since
379 if (![self _anyPDFTagsFoundInMenu:menu] && applicationIsSafari()) {
380 [menu addItem:[NSMenuItem separatorItem]];
384 // copy menuItem since a given menuItem can be in only one menu at a time, and we don't
385 // want to mess with the menu returned from PDFKit.
386 [menu addItem:[menuItem copy]];
390 return menu;
507 // it's a standard menu item IBAction.
514 // with a menu item tag for this purpose.
1012 - (BOOL)_anyPDFTagsFoundInMenu:(NSMenu *)menu
1014 NSEnumerator *e = [[menu itemArray] objectEnumerator];
1081 // This method is used by WebKit's context menu item. Here we map to the method that
1105 // Leave these menu items out, since WebKit inserts equivalent ones. Note that we leave out PDFKit's "Look Up in Dictionary"
1124 // Copy items since a menu item can be in only one menu at a time, and we don't
1125 // want to modify the original menu supplied by PDFKit.
1130 // useless by removing PDFKit's menu items.
1143 LOG_ERROR("no WebKit menu item tag found for PDF context menu item action \"%@\", using WebMenuItemTagOther", actionString);
1154 LOG_ERROR("PDF context menu item %@ came with tag %d, so no WebKit tag was applied. This could mean that the item doesn't appear in clients such as Safari.", [itemCopy title], [itemCopy tag]);
1161 // knowledge of the order and arrangement of PDFKit's menu items, we need to remove any bogus
1417 // such as showing the context menu.