/**@class android.webkit.WebViewDelegate @extends java.lang.Object Delegate used by the WebView provider implementation to access the required framework functionality needed to implement a {@link android.webkit.WebView}. @hide */ var WebViewDelegate = { /**Register a callback to be invoked when tracing for the WebView component has been enabled/disabled. */ setOnTraceEnabledChangeListener : function( ) {}, /**Returns true if the WebView trace tag is enabled and false otherwise. */ isTraceTagEnabled : function( ) {}, /**Returns true if the draw GL functor can be invoked (see {@link #invokeDrawGlFunctor}) and false otherwise. */ canInvokeDrawGlFunctor : function( ) {}, /**Invokes the draw GL functor. If waitForCompletion is false the functor may be invoked asynchronously. @param {Object {View}} nativeDrawGLFunctor the pointer to the native functor that implements system/core/include/utils/Functor.h */ invokeDrawGlFunctor : function( ) {}, /**Calls the function specified with the nativeDrawGLFunctor functor pointer. This functionality is used by the WebView for calling into their renderer from the framework display lists. @param {Object {Canvas}} canvas a hardware accelerated canvas (see {@link Canvas#isHardwareAccelerated()}) @param {Number} nativeDrawGLFunctor the pointer to the native functor that implements system/core/include/utils/Functor.h @throws IllegalArgumentException if the canvas is not hardware accelerated */ callDrawGlFunction : function( ) {}, /**Detaches the draw GL functor. @param {Object {View}} nativeDrawGLFunctor the pointer to the native functor that implements system/core/include/utils/Functor.h */ detachDrawGlFunctor : function( ) {}, /**Returns the package id of the given {@code packageName}. */ getPackageId : function( ) {}, /**Returns the application which is embedding the WebView. */ getApplication : function( ) {}, /**Returns the error string for the given {@code errorCode}. */ getErrorString : function( ) {}, /**Adds the WebView asset path to {@link android.content.res.AssetManager}. */ addWebViewAssetPath : function( ) {}, };