summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/public/WebFrameClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/public/WebFrameClient.h')
-rw-r--r--Source/WebKit/chromium/public/WebFrameClient.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/public/WebFrameClient.h b/Source/WebKit/chromium/public/WebFrameClient.h
index 73980bf7f..bda3c0389 100644
--- a/Source/WebKit/chromium/public/WebFrameClient.h
+++ b/Source/WebKit/chromium/public/WebFrameClient.h
@@ -420,6 +420,19 @@ public:
// Platform::current()->userAgent() will be called to provide one.
virtual WebString userAgentOverride(WebFrame*, const WebURL& url) { return WebString(); }
+ // WebGL ------------------------------------------------------
+
+ // Asks the embedder whether WebGL is allowed for the given WebFrame.
+ // This call is placed here instead of WebPermissionClient because this
+ // class is implemented in content/, and putting it here avoids adding
+ // more public content/ APIs.
+ virtual bool allowWebGL(WebFrame*, bool defaultValue) { return defaultValue; }
+
+ // Notifies the client that a WebGL context was lost on this page with the
+ // given reason (one of the GL_ARB_robustness status codes; see
+ // Extensions3D.h in WebCore/platform/graphics).
+ virtual void didLoseWebGLContext(WebFrame*, int) { }
+
protected:
~WebFrameClient() { }
};