Ignore:
Timestamp:
03/27/08 22:13:15 (12 years ago)
Author:
Nicholas Riley
Message:

Support WebKit? past r31014; patch PDFView in some places (not WebKit? yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/APEMain.m

    r443 r456  
    156156        } else if (ICCF_CFBundleIDMatches(bundleID, CFSTR("org.mozilla.camino"))) {
    157157            ICCF_PatchMethod("ChildView", "ICeCoffEEMenuOnly", "ICeCoffEEMenuSuper", "menuForEvent:");
    158             ICapeprintf("ICeCoffEE APE: loaded in ChildView for Camino\n");
     158            ICapeprintf("ICeCoffEE APE: loaded in ChildView for Camino\n");
    159159        }
    160160    }
    161161
    162     objc_getClass("WebCoreFrameBridge") != NULL /* require Safari 3 */ &&
    163         ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseUp:") &&
    164         ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseDown:") &&
    165         ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "menuForEvent:");
    166         ICapeprintf("ICeCoffEE APE: loaded in WebHTMLView for WebKit/Safari 3\n");
     162    ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseUp:") &&
     163        ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseDown:") &&
     164        ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "menuForEvent:");
     165    ICapeprintf("ICeCoffEE APE: loaded in WebHTMLView for WebKit/Safari 3\n");
    167166   
    168167    if (shouldLoadInNSTextView) {
     
    172171        ICapeprintf("ICeCoffEE APE: loaded generic NSTextView support\n");
    173172    }
     173   
     174    ICCF_PatchMethod("PDFView", "ICeCoffEEMenuOnly", "ICeCoffEEMenuSuper", "menuForEvent:");
     175    ICapeprintf("ICeCoffEE APE: loaded in PDFView for PDFKit\n");
    174176
    175177    ICCF_ReloadPrefs();
Note: See TracChangeset for help on using the changeset viewer.