webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
WebKit::InjectedBundle Class Reference

#include <InjectedBundle.h>

Inheritance diagram for WebKit::InjectedBundle:
API::ObjectImpl< API::Object::Type::Bundle > API::Object

Public Member Functions

 ~InjectedBundle ()
 
bool initialize (const WebProcessCreationParameters &, API::Object *initializationUserData)
 
void setBundleParameter (const String &, const IPC::DataReference &)
 
void setBundleParameters (const IPC::DataReference &)
 
void initializeClient (const WKBundleClientBase *)
 
void postMessage (const String &, API::Object *)
 
void postSynchronousMessage (const String &, API::Object *, RefPtr< API::Object > &returnData)
 
WebConnectionwebConnectionToUIProcess () const
 
void overrideBoolPreferenceForTestRunner (WebPageGroupProxy *, const String &preference, bool enabled)
 
void setAllowUniversalAccessFromFileURLs (WebPageGroupProxy *, bool)
 
void setAllowFileAccessFromFileURLs (WebPageGroupProxy *, bool)
 
void setNeedsStorageAccessFromFileURLsQuirk (WebPageGroupProxy *, bool)
 
void setMinimumLogicalFontSize (WebPageGroupProxy *, int size)
 
void setFrameFlatteningEnabled (WebPageGroupProxy *, bool)
 
void setPluginsEnabled (WebPageGroupProxy *, bool)
 
void setJavaScriptCanAccessClipboard (WebPageGroupProxy *, bool)
 
void setPrivateBrowsingEnabled (WebPageGroupProxy *, bool)
 
void setUseDashboardCompatibilityMode (WebPageGroupProxy *, bool)
 
void setPopupBlockingEnabled (WebPageGroupProxy *, bool)
 
void setAuthorAndUserStylesEnabled (WebPageGroupProxy *, bool)
 
void setSpatialNavigationEnabled (WebPageGroupProxy *, bool)
 
void addOriginAccessWhitelistEntry (const String &, const String &, const String &, bool)
 
void removeOriginAccessWhitelistEntry (const String &, const String &, const String &, bool)
 
void resetOriginAccessWhitelists ()
 
void setAsynchronousSpellCheckingEnabled (WebPageGroupProxy *, bool)
 
int numberOfPages (WebFrame *, double, double)
 
int pageNumberForElementById (WebFrame *, const String &, double, double)
 
String pageSizeAndMarginsInPixels (WebFrame *, int, int, int, int, int, int, int)
 
bool isPageBoxVisible (WebFrame *, int)
 
void setUserStyleSheetLocation (WebPageGroupProxy *, const String &)
 
void setWebNotificationPermission (WebPage *, const String &originString, bool allowed)
 
void removeAllWebNotificationPermissions (WebPage *)
 
uint64_t webNotificationID (JSContextRef, JSValueRef)
 
PassRefPtr< API::DatacreateWebDataFromUint8Array (JSContextRef, JSValueRef)
 
void addUserScript (WebPageGroupProxy *, InjectedBundleScriptWorld *, const String &source, const String &url, API::Array *whitelist, API::Array *blacklist, WebCore::UserScriptInjectionTime, WebCore::UserContentInjectedFrames)
 
void addUserStyleSheet (WebPageGroupProxy *, InjectedBundleScriptWorld *, const String &source, const String &url, API::Array *whitelist, API::Array *blacklist, WebCore::UserContentInjectedFrames)
 
void removeUserScript (WebPageGroupProxy *, InjectedBundleScriptWorld *, const String &url)
 
void removeUserStyleSheet (WebPageGroupProxy *, InjectedBundleScriptWorld *, const String &url)
 
void removeUserScripts (WebPageGroupProxy *, InjectedBundleScriptWorld *)
 
void removeUserStyleSheets (WebPageGroupProxy *, InjectedBundleScriptWorld *)
 
void removeAllUserContent (WebPageGroupProxy *)
 
void garbageCollectJavaScriptObjects ()
 
void garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging (bool waitUntilDone)
 
size_t javaScriptObjectsCount ()
 
void didCreatePage (WebPage *)
 
void willDestroyPage (WebPage *)
 
void didInitializePageGroup (WebPageGroupProxy *)
 
void didReceiveMessage (const String &, API::Object *)
 
void didReceiveMessageToPage (WebPage *, const String &, API::Object *)
 
void setTabKeyCyclesThroughElements (WebPage *, bool enabled)
 
void setSerialLoadingEnabled (bool)
 
void setCSSAnimationTriggersEnabled (bool)
 
void setWebAnimationsEnabled (bool)
 
void dispatchPendingLoadRequests ()
 
- Public Member Functions inherited from API::ObjectImpl< API::Object::Type::Bundle >
virtual ~ObjectImpl ()
 
- Public Member Functions inherited from API::Object
virtual ~Object ()
 

Static Public Member Functions

static PassRefPtr< InjectedBundlecreate (const WebProcessCreationParameters &, API::Object *initializationUserData)
 
static void reportException (JSContextRef, JSValueRef exception)
 
static bool isProcessingUserGesture ()
 
- Static Public Member Functions inherited from API::Object
static voidwrap (API::Object *)
 
static API::Objectunwrap (void *)
 

Additional Inherited Members

- Public Types inherited from API::Object
enum  Type {
  Type::Null = 0, Type::Array, Type::AuthenticationChallenge, Type::AuthenticationDecisionListener,
  Type::CertificateInfo, Type::Connection, Type::ContextMenuItem, Type::Credential,
  Type::Data, Type::Dictionary, Type::Error, Type::FrameHandle,
  Type::Image, Type::PageGroupData, Type::PageHandle, Type::PageGroupHandle,
  Type::ProtectionSpace, Type::RenderLayer, Type::RenderObject, Type::SecurityOrigin,
  Type::SessionState, Type::SerializedScriptValue, Type::String, Type::URL,
  Type::URLRequest, Type::URLResponse, Type::UserContentURLPattern, Type::UserScript,
  Type::UserStyleSheet, Type::WebArchive, Type::WebArchiveResource, Type::Boolean,
  Type::Double, Type::UInt64, Type::Point, Type::Size,
  Type::Rect, Type::ApplicationCacheManager, Type::AutomationSession, Type::BackForwardList,
  Type::BackForwardListItem, Type::CacheManager, Type::ColorPickerResultListener, Type::ContextMenuListener,
  Type::CookieManager, Type::Download, Type::ExperimentalFeature, Type::FormSubmissionListener,
  Type::Frame, Type::FrameInfo, Type::FramePolicyListener, Type::FullScreenManager,
  Type::GeolocationManager, Type::GeolocationPermissionRequest, Type::HitTestResult, Type::GeolocationPosition,
  Type::GrammarDetail, Type::IconDatabase, Type::Inspector, Type::KeyValueStorageManager,
  Type::MediaCacheManager, Type::Navigation, Type::NavigationAction, Type::NavigationData,
  Type::NavigationResponse, Type::Notification, Type::NotificationManager, Type::NotificationPermissionRequest,
  Type::OpenPanelParameters, Type::OpenPanelResultListener, Type::OriginDataManager, Type::Page,
  Type::PageConfiguration, Type::PageGroup, Type::ProcessPool, Type::ProcessPoolConfiguration,
  Type::PluginSiteDataManager, Type::Preferences, Type::ResourceLoadStatisticsStore, Type::RunBeforeUnloadConfirmPanelResultListener,
  Type::RunJavaScriptAlertResultListener, Type::RunJavaScriptConfirmResultListener, Type::RunJavaScriptPromptResultListener, Type::TextChecker,
  Type::UserContentController, Type::UserContentExtension, Type::UserContentExtensionStore, Type::UserContentWorld,
  Type::UserInitiatedAction, Type::UserMediaPermissionCheck, Type::UserMediaPermissionRequest, Type::Vibration,
  Type::ViewportAttributes, Type::VisitedLinkStore, Type::WebResourceLoadStatisticsManager, Type::WebsiteDataRecord,
  Type::WebsiteDataStore, Type::WebsitePolicies, Type::WindowFeatures, Type::Bundle,
  Type::BundleBackForwardList, Type::BundleBackForwardListItem, Type::BundleCSSStyleDeclarationHandle, Type::BundleDOMWindowExtension,
  Type::BundleFileHandle, Type::BundleFrame, Type::BundleHitTestResult, Type::BundleInspector,
  Type::BundleNavigationAction, Type::BundleNodeHandle, Type::BundlePage, Type::BundlePageBanner,
  Type::BundlePageGroup, Type::BundlePageOverlay, Type::BundleRangeHandle, Type::BundleScriptWorld,
  Type::EditCommandProxy, Type::ObjCObjectGraph, Type::View
}
 
- Static Public Attributes inherited from API::ObjectImpl< API::Object::Type::Bundle >
static const Type APIType
 
- Protected Member Functions inherited from API::ObjectImpl< API::Object::Type::Bundle >
 ObjectImpl ()
 
Type type () const override
 
- Protected Member Functions inherited from API::Object
 Object ()
 

Constructor & Destructor Documentation

◆ ~InjectedBundle()

WebKit::InjectedBundle::~InjectedBundle ( )

Member Function Documentation

◆ addOriginAccessWhitelistEntry()

void WebKit::InjectedBundle::addOriginAccessWhitelistEntry ( const String sourceOrigin,
const String destinationProtocol,
const String destinationHost,
bool  allowDestinationSubdomains 
)

◆ addUserScript()

void WebKit::InjectedBundle::addUserScript ( WebPageGroupProxy pageGroup,
InjectedBundleScriptWorld scriptWorld,
const String source,
const String url,
API::Array whitelist,
API::Array blacklist,
WebCore::UserScriptInjectionTime  injectionTime,
WebCore::UserContentInjectedFrames  injectedFrames 
)

◆ addUserStyleSheet()

void WebKit::InjectedBundle::addUserStyleSheet ( WebPageGroupProxy pageGroup,
InjectedBundleScriptWorld scriptWorld,
const String source,
const String url,
API::Array whitelist,
API::Array blacklist,
WebCore::UserContentInjectedFrames  injectedFrames 
)

◆ create()

PassRefPtr< InjectedBundle > WebKit::InjectedBundle::create ( const WebProcessCreationParameters parameters,
API::Object initializationUserData 
)
static

◆ createWebDataFromUint8Array()

PassRefPtr< API::Data > WebKit::InjectedBundle::createWebDataFromUint8Array ( JSContextRef  context,
JSValueRef  data 
)

◆ didCreatePage()

void WebKit::InjectedBundle::didCreatePage ( WebPage page)

◆ didInitializePageGroup()

void WebKit::InjectedBundle::didInitializePageGroup ( WebPageGroupProxy pageGroup)

◆ didReceiveMessage()

void WebKit::InjectedBundle::didReceiveMessage ( const String messageName,
API::Object messageBody 
)

◆ didReceiveMessageToPage()

void WebKit::InjectedBundle::didReceiveMessageToPage ( WebPage page,
const String messageName,
API::Object messageBody 
)

◆ dispatchPendingLoadRequests()

void WebKit::InjectedBundle::dispatchPendingLoadRequests ( )

◆ garbageCollectJavaScriptObjects()

void WebKit::InjectedBundle::garbageCollectJavaScriptObjects ( )

◆ garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging()

void WebKit::InjectedBundle::garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging ( bool  waitUntilDone)

◆ initialize()

bool WebKit::InjectedBundle::initialize ( const WebProcessCreationParameters parameters,
API::Object initializationUserData 
)

◆ initializeClient()

void WebKit::InjectedBundle::initializeClient ( const WKBundleClientBase client)

◆ isPageBoxVisible()

bool WebKit::InjectedBundle::isPageBoxVisible ( WebFrame frame,
int  pageIndex 
)

◆ isProcessingUserGesture()

bool WebKit::InjectedBundle::isProcessingUserGesture ( )
static

◆ javaScriptObjectsCount()

size_t WebKit::InjectedBundle::javaScriptObjectsCount ( )

◆ numberOfPages()

int WebKit::InjectedBundle::numberOfPages ( WebFrame frame,
double  pageWidthInPixels,
double  pageHeightInPixels 
)

◆ overrideBoolPreferenceForTestRunner()

void WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner ( WebPageGroupProxy pageGroup,
const String preference,
bool  enabled 
)

◆ pageNumberForElementById()

int WebKit::InjectedBundle::pageNumberForElementById ( WebFrame frame,
const String id,
double  pageWidthInPixels,
double  pageHeightInPixels 
)

◆ pageSizeAndMarginsInPixels()

String WebKit::InjectedBundle::pageSizeAndMarginsInPixels ( WebFrame frame,
int  pageIndex,
int  width,
int  height,
int  marginTop,
int  marginRight,
int  marginBottom,
int  marginLeft 
)

◆ postMessage()

void WebKit::InjectedBundle::postMessage ( const String messageName,
API::Object messageBody 
)

◆ postSynchronousMessage()

void WebKit::InjectedBundle::postSynchronousMessage ( const String messageName,
API::Object messageBody,
RefPtr< API::Object > &  returnData 
)

◆ removeAllUserContent()

void WebKit::InjectedBundle::removeAllUserContent ( WebPageGroupProxy pageGroup)

◆ removeAllWebNotificationPermissions()

void WebKit::InjectedBundle::removeAllWebNotificationPermissions ( WebPage page)

◆ removeOriginAccessWhitelistEntry()

void WebKit::InjectedBundle::removeOriginAccessWhitelistEntry ( const String sourceOrigin,
const String destinationProtocol,
const String destinationHost,
bool  allowDestinationSubdomains 
)

◆ removeUserScript()

void WebKit::InjectedBundle::removeUserScript ( WebPageGroupProxy pageGroup,
InjectedBundleScriptWorld scriptWorld,
const String url 
)

◆ removeUserScripts()

void WebKit::InjectedBundle::removeUserScripts ( WebPageGroupProxy pageGroup,
InjectedBundleScriptWorld scriptWorld 
)

◆ removeUserStyleSheet()

void WebKit::InjectedBundle::removeUserStyleSheet ( WebPageGroupProxy pageGroup,
InjectedBundleScriptWorld scriptWorld,
const String url 
)

◆ removeUserStyleSheets()

void WebKit::InjectedBundle::removeUserStyleSheets ( WebPageGroupProxy pageGroup,
InjectedBundleScriptWorld scriptWorld 
)

◆ reportException()

void WebKit::InjectedBundle::reportException ( JSContextRef  context,
JSValueRef  exception 
)
static

◆ resetOriginAccessWhitelists()

void WebKit::InjectedBundle::resetOriginAccessWhitelists ( )

◆ setAllowFileAccessFromFileURLs()

void WebKit::InjectedBundle::setAllowFileAccessFromFileURLs ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setAllowUniversalAccessFromFileURLs()

void WebKit::InjectedBundle::setAllowUniversalAccessFromFileURLs ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setAsynchronousSpellCheckingEnabled()

void WebKit::InjectedBundle::setAsynchronousSpellCheckingEnabled ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setAuthorAndUserStylesEnabled()

void WebKit::InjectedBundle::setAuthorAndUserStylesEnabled ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setBundleParameter()

void WebKit::InjectedBundle::setBundleParameter ( const String key,
const IPC::DataReference value 
)

◆ setBundleParameters()

void WebKit::InjectedBundle::setBundleParameters ( const IPC::DataReference value)

◆ setCSSAnimationTriggersEnabled()

void WebKit::InjectedBundle::setCSSAnimationTriggersEnabled ( bool  enabled)

◆ setFrameFlatteningEnabled()

void WebKit::InjectedBundle::setFrameFlatteningEnabled ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setJavaScriptCanAccessClipboard()

void WebKit::InjectedBundle::setJavaScriptCanAccessClipboard ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setMinimumLogicalFontSize()

void WebKit::InjectedBundle::setMinimumLogicalFontSize ( WebPageGroupProxy pageGroup,
int  size 
)

◆ setNeedsStorageAccessFromFileURLsQuirk()

void WebKit::InjectedBundle::setNeedsStorageAccessFromFileURLsQuirk ( WebPageGroupProxy pageGroup,
bool  needsQuirk 
)

◆ setPluginsEnabled()

void WebKit::InjectedBundle::setPluginsEnabled ( WebPageGroupProxy ,
bool   
)

◆ setPopupBlockingEnabled()

void WebKit::InjectedBundle::setPopupBlockingEnabled ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setPrivateBrowsingEnabled()

void WebKit::InjectedBundle::setPrivateBrowsingEnabled ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setSerialLoadingEnabled()

void WebKit::InjectedBundle::setSerialLoadingEnabled ( bool  )

◆ setSpatialNavigationEnabled()

void WebKit::InjectedBundle::setSpatialNavigationEnabled ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setTabKeyCyclesThroughElements()

void WebKit::InjectedBundle::setTabKeyCyclesThroughElements ( WebPage page,
bool  enabled 
)

◆ setUseDashboardCompatibilityMode()

void WebKit::InjectedBundle::setUseDashboardCompatibilityMode ( WebPageGroupProxy pageGroup,
bool  enabled 
)

◆ setUserStyleSheetLocation()

void WebKit::InjectedBundle::setUserStyleSheetLocation ( WebPageGroupProxy pageGroup,
const String location 
)

◆ setWebAnimationsEnabled()

void WebKit::InjectedBundle::setWebAnimationsEnabled ( bool  enabled)

◆ setWebNotificationPermission()

void WebKit::InjectedBundle::setWebNotificationPermission ( WebPage page,
const String originString,
bool  allowed 
)

◆ webConnectionToUIProcess()

WebConnection * WebKit::InjectedBundle::webConnectionToUIProcess ( ) const

◆ webNotificationID()

uint64_t WebKit::InjectedBundle::webNotificationID ( JSContextRef  jsContext,
JSValueRef  jsNotification 
)

◆ willDestroyPage()

void WebKit::InjectedBundle::willDestroyPage ( WebPage page)

The documentation for this class was generated from the following files: