void InjectedBundle::initialize(WKBundleRef bundle) { m_bundle = bundle; WKBundleClient client = { 0, this, didCreatePage, willDestroyPage, didInitializePageGroup, didReceiveMessage }; WKBundleSetClient(m_bundle, &client); activateFonts(); WKBundleActivateMacFontAscentHack(m_bundle); }
void InjectedBundle::initialize(WKBundleRef bundle, WKTypeRef initializationUserData) { m_bundle = bundle; WKBundleClientV1 client = { { 1, this }, didCreatePage, willDestroyPage, didInitializePageGroup, didReceiveMessage, didReceiveMessageToPage }; WKBundleSetClient(m_bundle, &client.base); platformInitialize(initializationUserData); activateFonts(); }
void InjectedBundle::initialize(WKBundleRef bundle, WKTypeRef initializationUserData) { m_bundle = bundle; m_stringBuilder = WTF::adoptPtr(new WTF::StringBuilder()); WKBundleClient client = { kWKBundleClientCurrentVersion, this, didCreatePage, willDestroyPage, didInitializePageGroup, didReceiveMessage }; WKBundleSetClient(m_bundle, &client); platformInitialize(initializationUserData); activateFonts(); WKBundleActivateMacFontAscentHack(m_bundle); }
void InjectedBundle::initialize(WKBundleRef bundle, WKTypeRef initializationUserData) { m_bundle = bundle; WKBundleClient client = { kWKBundleClientCurrentVersion, this, didCreatePage, willDestroyPage, didInitializePageGroup, didReceiveMessage, didReceiveMessageToPage }; WKBundleSetClient(m_bundle, &client); platformInitialize(initializationUserData); activateFonts(); WKBundleActivateMacFontAscentHack(m_bundle); // FIXME: We'd like to start with a clean state for every test, but this function can't be used more than once yet. WKBundleSwitchNetworkLoaderToNewTestingSession(m_bundle); }