diff options
| author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-07 11:22:47 +0100 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-07 11:22:47 +0100 |
| commit | cfd86b747d32ac22246a1aa908eaa720c63a88c1 (patch) | |
| tree | 24d68c6f61c464ecba1e05670b80390ea3b0e50c /Source/WebKit/chromium/public | |
| parent | 69d7c744c9de19d152dbe2d8e46eb7dfd4511d1a (diff) | |
| download | qtwebkit-cfd86b747d32ac22246a1aa908eaa720c63a88c1.tar.gz | |
Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733)
New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes.
Diffstat (limited to 'Source/WebKit/chromium/public')
17 files changed, 88 insertions, 63 deletions
diff --git a/Source/WebKit/chromium/public/WebAccessibilityNotification.h b/Source/WebKit/chromium/public/WebAccessibilityNotification.h index de68d37b0..629d988f5 100644 --- a/Source/WebKit/chromium/public/WebAccessibilityNotification.h +++ b/Source/WebKit/chromium/public/WebAccessibilityNotification.h @@ -54,11 +54,8 @@ enum WebAccessibilityNotification { WebAccessibilityNotificationRowCollapsed, WebAccessibilityNotificationRowExpanded, WebAccessibilityNotificationInvalidStatusChanged, - - // FIXME: now that we're using AssertMatchingEnums, we don't need a - // catch-all "invalid" notification enum. Remove this once it's been - // removed from Chromium. - WebAccessibilityNotificationInvalid, + WebAccessibilityNotificationTextChanged, + WebAccessibilityNotificationAriaAttributeChanged }; } // namespace WebKit diff --git a/Source/WebKit/chromium/public/WebAccessibilityRole.h b/Source/WebKit/chromium/public/WebAccessibilityRole.h index d4a4c715a..031a69da9 100644 --- a/Source/WebKit/chromium/public/WebAccessibilityRole.h +++ b/Source/WebKit/chromium/public/WebAccessibilityRole.h @@ -125,6 +125,7 @@ enum WebAccessibilityRole { WebAccessibilityRoleSplitter, WebAccessibilityRoleStaticText, WebAccessibilityRoleSystemWide, + WebAccessibilityRoleSVGRoot, WebAccessibilityRoleTabGroup, WebAccessibilityRoleTabList, WebAccessibilityRoleTabPanel, diff --git a/Source/WebKit/chromium/public/WebAutofillClient.h b/Source/WebKit/chromium/public/WebAutofillClient.h index 7b48f57db..7424c3fec 100644 --- a/Source/WebKit/chromium/public/WebAutofillClient.h +++ b/Source/WebKit/chromium/public/WebAutofillClient.h @@ -33,6 +33,8 @@ namespace WebKit { +class WebFormElement; +class WebFrame; class WebInputElement; class WebKeyboardEvent; class WebNode; @@ -75,6 +77,9 @@ public: // keys to navigate outside the range of possible selections. virtual void didClearAutofillSelection(const WebNode&) { } + // Informs the browser an interactive autocomplete has been requested. + virtual void didRequestAutocomplete(WebFrame*, const WebFormElement&) { } + // Instructs the browser to remove the Autocomplete entry specified from // its DB. virtual void removeAutocompleteSuggestion(const WebString& name, diff --git a/Source/WebKit/chromium/public/WebContentSecurityPolicy.h b/Source/WebKit/chromium/public/WebContentSecurityPolicy.h index cafd17aba..f178d1ae9 100644 --- a/Source/WebKit/chromium/public/WebContentSecurityPolicy.h +++ b/Source/WebKit/chromium/public/WebContentSecurityPolicy.h @@ -34,8 +34,10 @@ namespace WebKit { enum WebContentSecurityPolicyType { - WebContentSecurityPolicyTypeReportOnly, - WebContentSecurityPolicyTypeEnforcePolicy + WebContentSecurityPolicyTypeReportStableDirectives, + WebContentSecurityPolicyTypeEnforceStableDirectives, + WebContentSecurityPolicyTypeReportAllDirectives, + WebContentSecurityPolicyTypeEnforceAllDirectives, }; } // namespace WebKit diff --git a/Source/WebKit/chromium/public/WebDevToolsAgent.h b/Source/WebKit/chromium/public/WebDevToolsAgent.h index 4f90302c8..b61105d27 100644 --- a/Source/WebKit/chromium/public/WebDevToolsAgent.h +++ b/Source/WebKit/chromium/public/WebDevToolsAgent.h @@ -80,8 +80,14 @@ public: WEBKIT_EXPORT static bool shouldInterruptForMessage(const WebString&); WEBKIT_EXPORT static void processPendingMessages(); - // Returns a disconnect event that can be dispatched on the front-end + // Returns an Inspector.detached event that can be dispatched on the front-end by the embedder. + WEBKIT_EXPORT static WebString inspectorDetachedEvent(const WebString& reason); + + // Returns a Worker.disconnectedFromWorker event that can be dispatched on the front-end // in order to let it know that it has disconnected from the agent. + WEBKIT_EXPORT static WebString workerDisconnectedFromWorkerEvent(); + + // FIXME: remove once migrated to workerDisconnectedFromWorkerEvent(). WEBKIT_EXPORT static WebString disconnectEventAsText(); }; diff --git a/Source/WebKit/chromium/public/WebFormElement.h b/Source/WebKit/chromium/public/WebFormElement.h index 1ef431fa3..27c99d3a1 100644 --- a/Source/WebKit/chromium/public/WebFormElement.h +++ b/Source/WebKit/chromium/public/WebFormElement.h @@ -69,6 +69,9 @@ namespace WebKit { WEBKIT_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&); WEBKIT_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const; + enum AutocompleteResult { AutocompleteResultSuccess, AutocompleteResultError }; + WEBKIT_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResult); + #if WEBKIT_IMPLEMENTATION WebFormElement(const WTF::PassRefPtr<WebCore::HTMLFormElement>&); WebFormElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormElement>&); diff --git a/Source/WebKit/chromium/public/WebFrame.h b/Source/WebKit/chromium/public/WebFrame.h index d1ea38969..6007252df 100644 --- a/Source/WebKit/chromium/public/WebFrame.h +++ b/Source/WebKit/chromium/public/WebFrame.h @@ -252,6 +252,16 @@ public: virtual void setIsolatedWorldSecurityOrigin( int worldID, const WebSecurityOrigin&) = 0; + // Associates a content security policy with an isolated world. This policy + // should be used when evaluating script in the isolated world, and should + // also replace a protected resource's CSP when evaluating resources + // injected into the DOM. + // + // FIXME: Setting this simply bypasses the protected resource's CSP. It + // doesn't yet restrict the isolated world to the provided policy. + virtual void setIsolatedWorldContentSecurityPolicy( + int worldID, const WebString&) = 0; + // Logs to the console associated with this frame. virtual void addMessageToConsole(const WebConsoleMessage&) = 0; diff --git a/Source/WebKit/chromium/public/WebHitTestResult.h b/Source/WebKit/chromium/public/WebHitTestResult.h index 8fb9838a4..d5937e355 100644 --- a/Source/WebKit/chromium/public/WebHitTestResult.h +++ b/Source/WebKit/chromium/public/WebHitTestResult.h @@ -34,7 +34,9 @@ class HitTestResult; namespace WebKit { +class WebElement; class WebNode; +class WebURL; struct WebPoint; // Properties of a hit test result, i.e. properties of the nodes at a given point @@ -56,6 +58,19 @@ public: // Coordinates of the point that was hit. Relative to the node. WEBKIT_EXPORT WebPoint localPoint() const; + // If a link (eg. anchor or area tag) is hit, return the element. + // Return null otheriwse. + WEBKIT_EXPORT WebElement urlElement() const; + + // If an image is hit, return the image source. Return empty otherwise. + WEBKIT_EXPORT WebURL absoluteImageURL() const; + + // If an link is hit, return the link url source. Return empty otherwise. + WEBKIT_EXPORT WebURL absoluteLinkURL() const; + + // Return whether an editable input element was hit. + WEBKIT_EXPORT bool isContentEditable() const; + #if WEBKIT_IMPLEMENTATION WebHitTestResult(const WebCore::HitTestResult&); WebHitTestResult& operator=(const WebCore::HitTestResult&); diff --git a/Source/WebKit/chromium/public/WebIDBDatabase.h b/Source/WebKit/chromium/public/WebIDBDatabase.h index a4932ee28..f02bbf44c 100644 --- a/Source/WebKit/chromium/public/WebIDBDatabase.h +++ b/Source/WebKit/chromium/public/WebIDBDatabase.h @@ -56,6 +56,7 @@ public: return 0; } virtual void deleteObjectStore(const WebString& name, const WebIDBTransaction& transaction, WebExceptionCode& ec) { WEBKIT_ASSERT_NOT_REACHED(); } + virtual void deleteObjectStore(long long objectStoreId, const WebIDBTransaction& transaction, WebExceptionCode& ec) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void setVersion(const WebString& version, WebIDBCallbacks* callbacks, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } // Transfers ownership of the WebIDBTransaction to the caller. virtual WebIDBTransaction* transaction(const WebDOMStringList& names, unsigned short mode, WebExceptionCode& ec) @@ -63,6 +64,11 @@ public: WEBKIT_ASSERT_NOT_REACHED(); return 0; } + virtual WebIDBTransaction* transaction(const WebVector<long long>&, unsigned short mode) + { + WEBKIT_ASSERT_NOT_REACHED(); + return 0; + } virtual void close() { WEBKIT_ASSERT_NOT_REACHED(); } virtual void forceClose() { WEBKIT_ASSERT_NOT_REACHED(); } diff --git a/Source/WebKit/chromium/public/WebIDBObjectStore.h b/Source/WebKit/chromium/public/WebIDBObjectStore.h index ca0103cda..7bda1a20d 100644 --- a/Source/WebKit/chromium/public/WebIDBObjectStore.h +++ b/Source/WebKit/chromium/public/WebIDBObjectStore.h @@ -56,6 +56,7 @@ public: typedef WebVector<WebIDBKey> WebIndexKeys; virtual void putWithIndexKeys(const WebSerializedScriptValue&, const WebIDBKey&, PutMode, WebIDBCallbacks*, const WebIDBTransaction&, const WebVector<WebString>& indexNames, const WebVector<WebIndexKeys>&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } + virtual void put(const WebSerializedScriptValue&, const WebIDBKey&, PutMode, WebIDBCallbacks*, const WebIDBTransaction&, const WebVector<long long>& indexIds, const WebVector<WebIndexKeys>&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void deleteFunction(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void clear(WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual WebIDBIndex* createIndex(const WebString&, const WebIDBKeyPath&, bool, bool, const WebIDBTransaction&, WebExceptionCode&) @@ -69,14 +70,22 @@ public: return 0; } virtual void setIndexKeys(const WebIDBKey&, const WebVector<WebString>&, const WebVector<WebIndexKeys>&, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); } + virtual void setIndexKeys(const WebIDBKey&, const WebVector<long long>&, const WebVector<WebIndexKeys>&, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void setIndexesReady(const WebVector<WebString>&, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); }; + virtual void setIndexesReady(const WebVector<long long>&, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); }; // Transfers ownership of the WebIDBIndex to the caller. virtual WebIDBIndex* index(const WebString& name, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); return 0; } + virtual WebIDBIndex* index(long long) + { + WEBKIT_ASSERT_NOT_REACHED(); + return 0; + } virtual void deleteIndex(const WebString& name, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } + virtual void deleteIndex(long long indexId, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void openCursor(const WebIDBKeyRange&, WebIDBCursor::Direction direction, WebIDBCallbacks*, WebIDBTransaction::TaskType, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void count(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } diff --git a/Source/WebKit/chromium/public/WebIDBTransaction.h b/Source/WebKit/chromium/public/WebIDBTransaction.h index 816a32814..bac2da88d 100644 --- a/Source/WebKit/chromium/public/WebIDBTransaction.h +++ b/Source/WebKit/chromium/public/WebIDBTransaction.h @@ -51,6 +51,11 @@ public: WEBKIT_ASSERT_NOT_REACHED(); return 0; } + virtual WebIDBObjectStore* objectStore(long long, WebExceptionCode&) + { + WEBKIT_ASSERT_NOT_REACHED(); + return 0; + } virtual void commit() { WEBKIT_ASSERT_NOT_REACHED(); } virtual void abort() { WEBKIT_ASSERT_NOT_REACHED(); } virtual void didCompleteTaskEvents() { WEBKIT_ASSERT_NOT_REACHED(); } diff --git a/Source/WebKit/chromium/public/WebPermissionClient.h b/Source/WebKit/chromium/public/WebPermissionClient.h index 5d059ef5d..0b6414b4e 100644 --- a/Source/WebKit/chromium/public/WebPermissionClient.h +++ b/Source/WebKit/chromium/public/WebPermissionClient.h @@ -101,6 +101,9 @@ public: // but it's been named for consistency with the rest of the interface. virtual bool allowMutationEvents(const WebDocument&, bool defaultValue) { return defaultValue; } + // Controls whether pushState and related History APIs are enabled for this frame. + virtual bool allowPushState(const WebDocument&) { return true; } + // Notifies the client that the frame would have instantiated a plug-in if plug-ins were enabled. virtual void didNotAllowPlugins(WebFrame*) { } diff --git a/Source/WebKit/chromium/public/WebRuntimeFeatures.h b/Source/WebKit/chromium/public/WebRuntimeFeatures.h index 64cf829b5..a8082606c 100644 --- a/Source/WebKit/chromium/public/WebRuntimeFeatures.h +++ b/Source/WebKit/chromium/public/WebRuntimeFeatures.h @@ -159,6 +159,9 @@ public: WEBKIT_EXPORT static void enableCSSExclusions(bool); WEBKIT_EXPORT static bool isCSSExclusionsEnabled(); + WEBKIT_EXPORT static void enableRequestAutocomplete(bool); + WEBKIT_EXPORT static bool isRequestAutocompleteEnabled(); + private: WebRuntimeFeatures(); }; diff --git a/Source/WebKit/chromium/public/WebScreenInfo.h b/Source/WebKit/chromium/public/WebScreenInfo.h index bd885f424..7db1a662c 100644 --- a/Source/WebKit/chromium/public/WebScreenInfo.h +++ b/Source/WebKit/chromium/public/WebScreenInfo.h @@ -28,55 +28,4 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WebScreenInfo_h -#define WebScreenInfo_h - -#include "platform/WebRect.h" - -namespace WebKit { - -struct WebScreenInfo { - // The horizontal screen dpi. - int horizontalDPI; - - // The vertical screen dpi. - int verticalDPI; - - // The screen depth in bits per pixel - int depth; - - // The bits per colour component. This assumes that the colours are balanced - // equally. - int depthPerComponent; - - // This can be true for black and white printers - bool isMonochrome; - - // This is set from the rcMonitor member of MONITORINFOEX, to whit: - // "A RECT structure that specifies the display monitor rectangle, - // expressed in virtual-screen coordinates. Note that if the monitor - // is not the primary display monitor, some of the rectangle's - // coordinates may be negative values." - WebRect rect; - - // This is set from the rcWork member of MONITORINFOEX, to whit: - // "A RECT structure that specifies the work area rectangle of the - // display monitor that can be used by applications, expressed in - // virtual-screen coordinates. Windows uses this rectangle to - // maximize an application on the monitor. The rest of the area in - // rcMonitor contains system windows such as the task bar and side - // bars. Note that if the monitor is not the primary display monitor, - // some of the rectangle's coordinates may be negative values". - WebRect availableRect; - - WebScreenInfo() - : horizontalDPI(0) - , verticalDPI(0) - , depth(0) - , depthPerComponent(0) - , isMonochrome(false) { } -}; - -} // namespace WebKit - -#endif +#include "../../../Platform/chromium/public/WebScreenInfo.h" diff --git a/Source/WebKit/chromium/public/WebSettings.h b/Source/WebKit/chromium/public/WebSettings.h index d5d963f91..ddebd7e61 100644 --- a/Source/WebKit/chromium/public/WebSettings.h +++ b/Source/WebKit/chromium/public/WebSettings.h @@ -141,12 +141,14 @@ public: virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0; virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0; virtual void setShouldPrintBackgrounds(bool) = 0; + virtual void setShouldRespectImageOrientation(bool) = 0; virtual void setShowDebugBorders(bool) = 0; virtual void setShowFPSCounter(bool) = 0; virtual void setShowPaintRects(bool) = 0; virtual void setShowPlatformLayerTree(bool) = 0; virtual void setShrinksStandaloneImagesToFit(bool) = 0; virtual void setStandardFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0; + virtual void setSupportsMultipleWindows(bool) = 0; virtual void setSyncXHRInDocumentsEnabled(bool) = 0; virtual void setTextAreasAreResizable(bool) = 0; virtual void setTextAutosizingEnabled(bool) = 0; diff --git a/Source/WebKit/chromium/public/WebView.h b/Source/WebKit/chromium/public/WebView.h index b778f296a..49aaa5138 100644 --- a/Source/WebKit/chromium/public/WebView.h +++ b/Source/WebKit/chromium/public/WebView.h @@ -48,16 +48,17 @@ class WebDragData; class WebFrame; class WebFrameClient; class WebGraphicsContext3D; +class WebHitTestResult; class WebNode; class WebPageOverlay; class WebPermissionClient; class WebPrerendererClient; -class WebViewBenchmarkSupport; class WebRange; class WebSettings; class WebSpellCheckClient; class WebString; class WebTextFieldDecoratorClient; +class WebViewBenchmarkSupport; class WebViewClient; struct WebActiveWheelFlingParameters; struct WebMediaPlayerAction; @@ -313,6 +314,9 @@ public: // Data exchange ------------------------------------------------------- + // Do a hit test at given point and return the HitTestResult. + virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0; + // Copy to the clipboard the image located at a particular point in the // WebView (if there is such an image) virtual void copyImageAt(const WebPoint&) = 0; diff --git a/Source/WebKit/chromium/public/WebWidget.h b/Source/WebKit/chromium/public/WebWidget.h index fa456238a..f2b394439 100644 --- a/Source/WebKit/chromium/public/WebWidget.h +++ b/Source/WebKit/chromium/public/WebWidget.h @@ -83,14 +83,16 @@ public: // Called to update imperative animation state. This should be called before // paint, although the client can rate-limit these calls. - // - // FIXME: remove this function entirely when inversion patches land. virtual void animate(double ignored) { } // Called to layout the WebWidget. This MUST be called before Paint, // and it may result in calls to WebWidgetClient::didInvalidateRect. virtual void layout() { } + // Called to toggle the WebWidget in or out of force compositing mode. This + // should be called before paint. + virtual void enterForceCompositingMode(bool enter) { } + enum PaintOptions { // Attempt to fulfill the painting request by reading back from the // compositor, assuming we're using a compositor to render. @@ -125,6 +127,9 @@ public: // animate or layout in this case. virtual void composite(bool finish) = 0; + // Returns true if we've started tracking repaint rectangles. + virtual bool isTrackingRepaints() const { return false; } + // Indicates that the compositing surface associated with this WebWidget is // ready to use. virtual void setCompositorSurfaceReady() = 0; |
