diff options
| author | Kristian Monsen <kristianm@google.com> | 2010-09-30 15:42:16 +0100 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2010-10-07 10:59:29 +0100 |
| commit | bec39347bb3bb5bf1187ccaf471d26247f28b585 (patch) | |
| tree | 56bdc4c2978fbfd3d79d0d36d5d6c640ecc09cc8 /WebKit/chromium/public/WebView.h | |
| parent | 90b7966e7815b262cd19ac25f03aaad9b21fdc06 (diff) | |
| download | external_webkit-bec39347bb3bb5bf1187ccaf471d26247f28b585.zip external_webkit-bec39347bb3bb5bf1187ccaf471d26247f28b585.tar.gz external_webkit-bec39347bb3bb5bf1187ccaf471d26247f28b585.tar.bz2 | |
Merge WebKit at r68651 : Initial merge by git.
Change-Id: I3d6bff59f17eedd6722723354f386fec9be8ad12
Diffstat (limited to 'WebKit/chromium/public/WebView.h')
| -rw-r--r-- | WebKit/chromium/public/WebView.h | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/WebKit/chromium/public/WebView.h b/WebKit/chromium/public/WebView.h index d162f26..7a8a4af 100644 --- a/WebKit/chromium/public/WebView.h +++ b/WebKit/chromium/public/WebView.h @@ -44,7 +44,6 @@ class WebDevToolsAgentClient; class WebDragData; class WebFrame; class WebFrameClient; -class WebGLES2Context; class WebGraphicsContext3D; class WebNode; class WebSettings; @@ -66,6 +65,13 @@ public: UserContentInjectInAllFrames, UserContentInjectInTopFrameOnly }; + + // Controls which documents user styles are injected into. + enum UserStyleInjectionTime { + UserStyleInjectInExistingDocuments, + UserStyleInjectInSubsequentDocuments + }; + // Initialization ------------------------------------------------------ @@ -311,25 +317,14 @@ public: unsigned inactiveForegroundColor) = 0; // User scripts -------------------------------------------------------- - // FIXME: These two methods are DEPRECATED. Remove once Chromium has been rolled. - virtual void addUserScript(const WebString& sourceCode, bool runAtStart) - { - addUserScript(sourceCode, WebVector<WebString>(), - runAtStart ? UserScriptInjectAtDocumentStart : UserScriptInjectAtDocumentEnd, - UserContentInjectInAllFrames); - } - virtual void addUserStyleSheet(const WebString& sourceCode) - { - addUserStyleSheet(sourceCode, WebVector<WebString>(), UserContentInjectInAllFrames); - } - WEBKIT_API static void addUserScript(const WebString& sourceCode, const WebVector<WebString>& patterns, UserScriptInjectAt injectAt, UserContentInjectIn injectIn); WEBKIT_API static void addUserStyleSheet(const WebString& sourceCode, const WebVector<WebString>& patterns, - UserContentInjectIn injectIn); + UserContentInjectIn injectIn, + UserStyleInjectionTime injectionTime = UserStyleInjectInSubsequentDocuments); WEBKIT_API static void removeAllUserContent(); // Modal dialog support ------------------------------------------------ @@ -341,12 +336,6 @@ public: // GPU acceleration support -------------------------------------------- - // Returns the GLES2Context associated with this WebView. One will be - // created if it doesn't already exist. - // FIXME: remove this method once the compositor is fully switched - // over to GraphicsContext3D. - virtual WebGLES2Context* gles2Context() = 0; - // Returns the (on-screen) WebGraphicsContext3D associated with // this WebView. One will be created if it doesn't already exist. // This is used to set up sharing between this context (which is |
