Skip to content
  • dino@apple.com's avatar
    Allow some plugin snapshot UI content to come from Injected Bundle · d7693eac
    dino@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=107852
    
    Reviewed by Anders Carlsson.
    
    Source/WebKit2:
    
    Hook up three new methods: plugInStartLabelTitle, plugInStartLabelSubtitle and
    plugInExtraStyleSheet to allow some custom styling and content to come
    from the InjectedBundle.
    
    * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Callbacks added to
    WKBundlePageUIClient structure.
    * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Stub implementations
    of the three new methods.
    (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
    (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
    (WebKit::InjectedBundlePageUIClient::plugInExtraStyleSheet):
    * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
    (InjectedBundlePageUIClient):
    * WebProcess/WebCoreSupport/WebChromeClient.cpp: Call into the injected bundle
    for each of these methods.
    (WebKit::WebChromeClient::plugInStartLabelTitle):
    (WebKit::WebChromeClient::plugInStartLabelSubtitle):
    (WebKit::WebChromeClient::plugInExtraStyleSheet):
    * WebProcess/WebCoreSupport/WebChromeClient.h:
    (WebChromeClient): Declare the virtual methods in the Chrome
    Client so that they can accessed from WebCore eventually.
    
    Tools:
    
    Null implementations of plugInStartLabelTitle, plugInStartLabelSubtitle and
    plugInExtraStyleSheet.
    
    * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
    (WTR::InjectedBundlePage::InjectedBundlePage):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d7693eac