diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-12 09:27:39 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-12 09:27:39 +0200 |
commit | 3749d61e1f7a59f5ec5067e560af1eb610c82015 (patch) | |
tree | 73dc228333948738bbe02976cacca8cd382bc978 /Source/WebKit/chromium/public | |
parent | b32b4dcd9a51ab8de6afc53d9e17f8707e1f7a5e (diff) | |
download | qtwebkit-3749d61e1f7a59f5ec5067e560af1eb610c82015.tar.gz |
Imported WebKit commit a77350243e054f3460d1137301d8b3faee3d2052 (http://svn.webkit.org/repository/webkit/trunk@125365)
New snapshot with build fixes for latest API changes in Qt and all WK1 Win MSVC fixes upstream
Diffstat (limited to 'Source/WebKit/chromium/public')
27 files changed, 200 insertions, 302 deletions
diff --git a/Source/WebKit/chromium/public/WebCompositor.h b/Source/WebKit/chromium/public/WebCompositor.h deleted file mode 100644 index 6e0da2b22..000000000 --- a/Source/WebKit/chromium/public/WebCompositor.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2011 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef WebCompositor_h -#define WebCompositor_h - -#define WEBCOMPOSITOR_OWNS_SETTINGS 1 - -#include "platform/WebCommon.h" - -namespace WebKit { - -class WebInputEvent; -class WebThread; - -// This class contains global routines for interacting with the -// compositor. -// -// All calls to the WebCompositor must be made from the main thread. -class WebCompositor { -public: - // Initializes the compositor. Threaded compositing is enabled by passing in - // a non-null WebThread. No compositor classes or methods should be used - // prior to calling initialize. - WEBKIT_EXPORT static void initialize(WebThread*); - - // Shuts down the compositor. This must be called when all compositor data - // types have been deleted. No compositor classes or methods should be used - // after shutdown. - WEBKIT_EXPORT static void shutdown(); - - // These may only be called before initialize. - WEBKIT_EXPORT static void setPerTilePaintingEnabled(bool); - WEBKIT_EXPORT static void setPartialSwapEnabled(bool); - WEBKIT_EXPORT static void setAcceleratedAnimationEnabled(bool); - -protected: - virtual ~WebCompositor() { } -}; - -} // namespace WebKit - -#endif diff --git a/Source/WebKit/chromium/public/WebDocument.h b/Source/WebKit/chromium/public/WebDocument.h index f2296b7ee..e0c444250 100644 --- a/Source/WebKit/chromium/public/WebDocument.h +++ b/Source/WebKit/chromium/public/WebDocument.h @@ -31,6 +31,7 @@ #ifndef WebDocument_h #define WebDocument_h +#include "WebDraggableRegion.h" #include "WebNode.h" #include "WebSecurityOrigin.h" #include "platform/WebReferrerPolicy.h" @@ -104,6 +105,7 @@ public: WEBKIT_EXPORT WebElement fullScreenElement() const; WEBKIT_EXPORT WebDOMEvent createEvent(const WebString& eventType); WEBKIT_EXPORT WebReferrerPolicy referrerPolicy() const; + WEBKIT_EXPORT WebElement createElement(const WebString& tagName); // Accessibility support. These methods should only be called on the // top-level document, because one accessibility cache spans all of @@ -120,6 +122,8 @@ public: // WebView. WEBKIT_EXPORT void insertUserStyleSheet(const WebString& sourceCode, UserStyleLevel); + WEBKIT_EXPORT WebVector<WebDraggableRegion> draggableRegions() const; + #if WEBKIT_IMPLEMENTATION WebDocument(const WTF::PassRefPtr<WebCore::Document>&); WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); diff --git a/Source/WebKit/chromium/public/WebDraggableRegion.h b/Source/WebKit/chromium/public/WebDraggableRegion.h new file mode 100644 index 000000000..0437f8973 --- /dev/null +++ b/Source/WebKit/chromium/public/WebDraggableRegion.h @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2012 Google Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef WebDraggableRegion_h +#define WebDraggableRegion_h + +#include "platform/WebCommon.h" +#include "platform/WebRect.h" +#include "platform/WebString.h" + +namespace WebKit { + +struct WebDraggableRegion { + WebString label; + WebRect bounds; + WebRect clip; +}; + +} // namespace WebKit + +#endif diff --git a/Source/WebKit/chromium/public/WebFrame.h b/Source/WebKit/chromium/public/WebFrame.h index b03fb7c69..c0b8e2aa7 100644 --- a/Source/WebKit/chromium/public/WebFrame.h +++ b/Source/WebKit/chromium/public/WebFrame.h @@ -75,6 +75,8 @@ class WebURLRequest; class WebView; struct WebConsoleMessage; struct WebFindOptions; +struct WebFloatPoint; +struct WebFloatRect; struct WebPoint; struct WebPrintParams; struct WebRect; @@ -133,6 +135,16 @@ public: // The name of this frame. virtual WebString name() const = 0; + // The unique name of this frame. + // + // This is temporarily identical to the above name() function. Once this + // change makes it over to the Chromium tree, I will change all callers to + // use this function and will subsequently move assignedName() to name(). + virtual WebString uniqueName() const = 0; + + // The name of this frame. If no name is given, empty string is returned. + virtual WebString assignedName() const = 0; + // Sets the name of this frame. For child frames (frames that are not a // top-most frame) the actual name may have a suffix appended to make the // frame name unique within the hierarchy. @@ -575,6 +587,30 @@ public: // of matches found during the scoping effort. virtual void resetMatchCount() = 0; + // Returns a counter that is incremented when the find-in-page markers are + // changed on any frame. Switching the active marker doesn't change the + // current version. Should be called only on the main frame. + virtual int findMatchMarkersVersion() const = 0; + + // Returns the bounding box of the active find-in-page match marker or an + // empty rect if no such marker exists. The rect is returned in find-in-page + // coordinates whatever frame the active marker is. + // Should be called only on the main frame. + virtual WebFloatRect activeFindMatchRect() = 0; + + // Swaps the contents of the provided vector with the bounding boxes of the + // find-in-page match markers from all frames. The bounding boxes are returned + // in find-in-page coordinates. This method should be called only on the main frame. + virtual void findMatchRects(WebVector<WebFloatRect>&) = 0; + + // Selects the find-in-page match in the appropriate frame closest to the + // provided point in find-in-page coordinates. Returns the ordinal of such + // match or -1 if none could be found. If not null, selectionRect is set to + // the bounding box of the selected match in window coordinates. + // This method should be called only on the main frame. + virtual int selectNearestFindMatch(const WebFloatPoint&, + WebRect* selectionRect) = 0; + // OrientationChange event --------------------------------------------- // Orientation is the interface orientation in degrees. @@ -630,12 +666,6 @@ public: // Calls markerTextForListItem() defined in WebCore/rendering/RenderTreeAsText.h. virtual WebString markerTextForListItem(const WebElement&) const = 0; - // Returns the number of page where the specified element will be put. - // This method is used to support layout tests. - virtual int pageNumberForElementById(const WebString& id, - float pageWidthInPixels, - float pageHeightInPixels) const = 0; - // Prints all of the pages into the canvas, with page boundaries drawn as // one pixel wide blue lines. This method exists to support layout tests. virtual void printPagesWithBoundaries(WebCanvas*, const WebSize&) = 0; diff --git a/Source/WebKit/chromium/public/WebFrameClient.h b/Source/WebKit/chromium/public/WebFrameClient.h index bc32d6d84..cc8923d80 100644 --- a/Source/WebKit/chromium/public/WebFrameClient.h +++ b/Source/WebKit/chromium/public/WebFrameClient.h @@ -93,7 +93,7 @@ public: // May return null. virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebApplicationCacheHostClient*) { return 0; } - + // Services ------------------------------------------------------------ // A frame specific cookie jar. May return null, in which case @@ -103,13 +103,15 @@ public: // General notifications ----------------------------------------------- - // This frame has been detached from the view. - // - // FIXME: Do not use this in new code. Currently this is used by code in - // Chromium that errantly caches WebKit objects. + // A child frame was created in this frame. This is called when the frame + // is created and initialized. + virtual void didCreateFrame(WebFrame* parent, WebFrame* child) { } + + // This frame has been detached from the view, but has not been closed yet. virtual void frameDetached(WebFrame*) { } - // This frame is about to be closed. + // This frame is about to be closed. This is called after frameDetached, + // when the document is being unloaded, due to new one committing. virtual void willClose(WebFrame*) { } // Load commands ------------------------------------------------------- @@ -406,6 +408,15 @@ public: WebSecurityOrigin target, WebDOMMessageEvent) { return false; } + virtual bool willCheckAndDispatchMessageEvent( + WebFrame* sourceFrame, + WebFrame* targetFrame, + WebSecurityOrigin target, + WebDOMMessageEvent event) + { + return willCheckAndDispatchMessageEvent(sourceFrame, target, event); + } + // Asks the embedder if a specific user agent should be used for the given // URL. Non-empty strings indicate an override should be used. Otherwise, // WebKitPlatformSupport::userAgent() will be called to provide one. diff --git a/Source/WebKit/chromium/public/WebIDBCallbacks.h b/Source/WebKit/chromium/public/WebIDBCallbacks.h index ce100f295..655b009e0 100644 --- a/Source/WebKit/chromium/public/WebIDBCallbacks.h +++ b/Source/WebKit/chromium/public/WebIDBCallbacks.h @@ -51,12 +51,16 @@ public: virtual void onError(const WebIDBDatabaseError&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onSuccess(const WebDOMStringList&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onSuccess(WebIDBCursor*) { WEBKIT_ASSERT_NOT_REACHED(); } + // FIXME: Temporary no-op method to allow callers to update before WK92278 lands. + virtual void onSuccess(WebIDBCursor*, const WebIDBKey& key, const WebIDBKey& primaryKey, const WebSerializedScriptValue&) { } virtual void onSuccess(WebIDBDatabase*) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onSuccess(const WebIDBKey&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onSuccess(WebIDBTransaction*) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onSuccess(const WebSerializedScriptValue&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onSuccess(const WebSerializedScriptValue&, const WebIDBKey&, const WebIDBKeyPath&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onSuccessWithContinuation() { WEBKIT_ASSERT_NOT_REACHED(); } + // FIXME: Temporary no-op method to allow callers to update before WK92278 lands. + virtual void onSuccess(const WebIDBKey& key, const WebIDBKey& primaryKey, const WebSerializedScriptValue&) { } virtual void onBlocked() { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onBlocked(long long oldVersion) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void onSuccessWithPrefetch(const WebVector<WebIDBKey>& keys, const WebVector<WebIDBKey>& primaryKeys, const WebVector<WebSerializedScriptValue>& values) { WEBKIT_ASSERT_NOT_REACHED(); } diff --git a/Source/WebKit/chromium/public/WebIDBCursor.h b/Source/WebKit/chromium/public/WebIDBCursor.h index dfad19383..ac89d7955 100644 --- a/Source/WebKit/chromium/public/WebIDBCursor.h +++ b/Source/WebKit/chromium/public/WebIDBCursor.h @@ -40,6 +40,13 @@ class WebIDBCursor { public: virtual ~WebIDBCursor() { } + enum Direction { + Next = 0, + NextNoDuplicate = 1, + Prev = 2, + PrevNoDuplicate = 3, + }; + virtual WebIDBKey key() const { WEBKIT_ASSERT_NOT_REACHED(); @@ -56,7 +63,6 @@ public: return WebSerializedScriptValue(); } - virtual void update(const WebSerializedScriptValue&, WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void advance(unsigned long, WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void continueFunction(const WebIDBKey&, WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void deleteFunction(WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } diff --git a/Source/WebKit/chromium/public/WebIDBObjectStore.h b/Source/WebKit/chromium/public/WebIDBObjectStore.h index 3893c9595..ba59c15ee 100644 --- a/Source/WebKit/chromium/public/WebIDBObjectStore.h +++ b/Source/WebKit/chromium/public/WebIDBObjectStore.h @@ -26,10 +26,12 @@ #ifndef WebIDBObjectStore_h #define WebIDBObjectStore_h -#include "WebExceptionCode.h" #include "WebDOMStringList.h" +#include "WebExceptionCode.h" #include "WebIDBCallbacks.h" +#include "WebIDBCursor.h" #include "WebIDBKeyPath.h" +#include "WebIDBTransaction.h" #include "platform/WebCommon.h" #include "platform/WebString.h" @@ -53,7 +55,6 @@ public: typedef WebVector<WebIDBKey> WebIndexKeys; - virtual void put(const WebSerializedScriptValue&, const WebIDBKey&, PutMode, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } 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 deleteFunction(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void clear(WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } @@ -62,6 +63,8 @@ public: WEBKIT_ASSERT_NOT_REACHED(); return 0; } + virtual void setIndexKeys(const WebIDBKey&, const WebVector<WebString>&, const WebVector<WebIndexKeys>&, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); } + virtual void setIndexesReady(const WebVector<WebString>&, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); }; // Transfers ownership of the WebIDBIndex to the caller. virtual WebIDBIndex* index(const WebString& name, WebExceptionCode&) { @@ -69,7 +72,9 @@ public: return 0; } virtual void deleteIndex(const WebString& name, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } + // FIXME: Remove this version of openCursor when TaskType is plumbed through chromium. virtual void openCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, 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(); } protected: diff --git a/Source/WebKit/chromium/public/WebIDBTransaction.h b/Source/WebKit/chromium/public/WebIDBTransaction.h index 4ddcd8c56..816a32814 100644 --- a/Source/WebKit/chromium/public/WebIDBTransaction.h +++ b/Source/WebKit/chromium/public/WebIDBTransaction.h @@ -41,11 +41,11 @@ class WebIDBTransaction { public: virtual ~WebIDBTransaction() { } - virtual int mode() const - { - WEBKIT_ASSERT_NOT_REACHED(); - return 0; - } + enum TaskType { + NormalTask = 0, + PreemptiveTask + }; + virtual WebIDBObjectStore* objectStore(const WebString& name, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); diff --git a/Source/WebKit/chromium/public/WebInputEvent.h b/Source/WebKit/chromium/public/WebInputEvent.h index 40a6fdb3e..09048cded 100644 --- a/Source/WebKit/chromium/public/WebInputEvent.h +++ b/Source/WebKit/chromium/public/WebInputEvent.h @@ -370,7 +370,11 @@ public: int globalX; int globalY; - // NOTE: |deltaX| and |deltaY| represents the amount to scroll for Scroll gesture events. For Pinch gesture events, |deltaX| represents the scaling/magnification factor. For a GestureTap event, |deltaX| and |deltaY| represent the horizontal and vertical radii of the touch region. + // NOTE: |deltaX| and |deltaY| represents the amount to scroll for Scroll gesture events. + // For Pinch gesture events, |deltaX| represents the scaling/magnification factor. + // For a GestureTap event, |deltaX| represents the tap count. + // For a FlingStart event, |deltaX| and |deltaY| represent the velocity. + // FIXME: Avoid overloading 'delta' in this way. http://wkb.ug/93123 float deltaX; float deltaY; WebRect boundingBox; diff --git a/Source/WebKit/chromium/public/WebNode.h b/Source/WebKit/chromium/public/WebNode.h index 5281db199..902b37669 100644 --- a/Source/WebKit/chromium/public/WebNode.h +++ b/Source/WebKit/chromium/public/WebNode.h @@ -98,6 +98,7 @@ public: WEBKIT_EXPORT WebNode nextSibling() const; WEBKIT_EXPORT bool hasChildNodes() const; WEBKIT_EXPORT WebNodeList childNodes(); + WEBKIT_EXPORT bool appendChild(const WebNode& child); WEBKIT_EXPORT WebString createMarkup() const; WEBKIT_EXPORT bool isLink() const; WEBKIT_EXPORT bool isTextNode() const; diff --git a/Source/WebKit/chromium/public/WebPlugin.h b/Source/WebKit/chromium/public/WebPlugin.h index 5ef884c73..8abaf3bfe 100644 --- a/Source/WebKit/chromium/public/WebPlugin.h +++ b/Source/WebKit/chromium/public/WebPlugin.h @@ -65,6 +65,7 @@ public: // from the plugin. The value would be associated with the name attribute // of the corresponding object element. virtual bool getFormValue(WebString&) { return false; } + virtual bool supportsKeyboardFocus() const { return false; } virtual void paint(WebCanvas*, const WebRect&) = 0; diff --git a/Source/WebKit/chromium/public/WebRuntimeFeatures.h b/Source/WebKit/chromium/public/WebRuntimeFeatures.h index c3d61d85a..7152249e5 100644 --- a/Source/WebKit/chromium/public/WebRuntimeFeatures.h +++ b/Source/WebKit/chromium/public/WebRuntimeFeatures.h @@ -157,6 +157,9 @@ public: WEBKIT_EXPORT static void enableDialogElement(bool); WEBKIT_EXPORT static bool isDialogElementEnabled(); + WEBKIT_EXPORT static void enableCSSExclusions(bool); + WEBKIT_EXPORT static bool isCSSExclusionsEnabled(); + private: WebRuntimeFeatures(); }; diff --git a/Source/WebKit/chromium/public/WebScriptController.h b/Source/WebKit/chromium/public/WebScriptController.h index da3ac1cdd..1299ae9cb 100644 --- a/Source/WebKit/chromium/public/WebScriptController.h +++ b/Source/WebKit/chromium/public/WebScriptController.h @@ -39,18 +39,11 @@ class Extension; namespace WebKit { -class WebString; - class WebScriptController { public: - // Registers a v8 extension to be available on webpages. The three forms - // offer various restrictions on what types of contexts the extension is - // loaded into. If a scheme is provided, only pages whose URL has the given - // scheme will match. If extensionGroup is provided, the extension will only - // be loaded into scripts run via WebFrame::ExecuteInNewWorld with the - // matching group. - // Will only affect v8 contexts initialized after this call. Takes ownership - // of the v8::Extension object passed. + // Registers a v8 extension to be available on webpages. Will only affect + // v8 contexts initialized after this call. Takes ownership of the + // v8::Extension object passed. WEBKIT_EXPORT static void registerExtension(v8::Extension*); // Enables special settings which are only applicable if V8 is executed diff --git a/Source/WebKit/chromium/public/WebSettings.h b/Source/WebKit/chromium/public/WebSettings.h index 88ed9639d..e1e74a9b9 100644 --- a/Source/WebKit/chromium/public/WebSettings.h +++ b/Source/WebKit/chromium/public/WebSettings.h @@ -53,7 +53,6 @@ public: EditingBehaviorUnix }; - virtual bool forceSoftwareCompositing() const = 0; virtual bool scrollAnimatorEnabled() const = 0; virtual bool viewportEnabled() const = 0; virtual void setAccelerated2dCanvasEnabled(bool) = 0; @@ -102,7 +101,6 @@ public: virtual void setFixedPositionCreatesStackingContext(bool) = 0; virtual void setFontRenderingModeNormal() = 0; virtual void setForceCompositingMode(bool) = 0; - virtual void setForceSoftwareCompositing(bool) = 0; virtual void setFrameFlatteningEnabled(bool) = 0; virtual void setFullScreenEnabled(bool) = 0; virtual void setHyperlinkAuditingEnabled(bool) = 0; @@ -132,6 +130,7 @@ public: virtual void setPictographFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0; virtual void setPluginsEnabled(bool) = 0; virtual void setPrivilegedWebGLExtensionsEnabled(bool) = 0; + virtual void setRenderVSyncEnabled(bool) = 0; virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0; virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0; virtual void setShouldPrintBackgrounds(bool) = 0; @@ -144,6 +143,7 @@ public: virtual void setSyncXHRInDocumentsEnabled(bool) = 0; virtual void setTextAreasAreResizable(bool) = 0; virtual void setTextAutosizingEnabled(bool) = 0; + virtual void setTextAutosizingFontScaleFactor(float) = 0; virtual void setTextDirectionSubmenuInclusionBehaviorNeverIncluded() = 0; virtual void setUnifiedTextCheckerEnabled(bool) = 0; virtual void setUserStyleSheetLocation(const WebURL&) = 0; diff --git a/Source/WebKit/chromium/public/WebSpeechRecognizerClient.h b/Source/WebKit/chromium/public/WebSpeechRecognizerClient.h index 608bfb481..3fe1244a7 100644 --- a/Source/WebKit/chromium/public/WebSpeechRecognizerClient.h +++ b/Source/WebKit/chromium/public/WebSpeechRecognizerClient.h @@ -59,13 +59,6 @@ public: // This is expected to be called after didStartAudio. virtual void didStartSound(const WebSpeechRecognitionHandle&) = 0; - // To be called when speech has been detected. - // This is expected to be called after didStartSound. - virtual void didStartSpeech(const WebSpeechRecognitionHandle&) = 0; - - // To be called when speech is no longer detected. - virtual void didEndSpeech(const WebSpeechRecognitionHandle&) = 0; - // To be called when sound is no longer detected. // This is expected to be called after didEndSpeech. virtual void didEndSound(const WebSpeechRecognitionHandle&) = 0; diff --git a/Source/WebKit/chromium/public/WebCompositorClient.h b/Source/WebKit/chromium/public/WebTouchCandidatesInfo.h index c275f7055..65d4024a2 100644 --- a/Source/WebKit/chromium/public/WebCompositorClient.h +++ b/Source/WebKit/chromium/public/WebTouchCandidatesInfo.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Google Inc. All rights reserved. + * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -23,19 +23,30 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WebCompositorClient_h -#define WebCompositorClient_h +#ifndef WebTouchCandidatesInfo_h +#define WebTouchCandidatesInfo_h -#include "WebCompositorInputHandlerClient.h" +#include "platform/WebRect.h" namespace WebKit { -// This class will go away once downstream code has transitioned -// to WebCompositorInputHandlerClient. -class WebCompositorClient : public WebCompositorInputHandlerClient { -public: -protected: - virtual ~WebCompositorClient() { } +struct WebTouchCandidatesInfo { + // The number of possible touch receivers from the last touch. + int numberOfCandidates; + + // The bounds of the possible touch candidates. This will enclose the + // rects of any possible touch candidates for a press. + WebRect unitedBounds; + + // The smallest dimension (either width or height) of any of the + // available touch targets. + int smallestDimension; + + WebTouchCandidatesInfo() + : numberOfCandidates(0) + , smallestDimension(0) + { + } }; } // namespace WebKit diff --git a/Source/WebKit/chromium/public/WebView.h b/Source/WebKit/chromium/public/WebView.h index 4da3363dd..e8f791fa6 100644 --- a/Source/WebKit/chromium/public/WebView.h +++ b/Source/WebKit/chromium/public/WebView.h @@ -60,9 +60,11 @@ class WebString; class WebTextFieldDecoratorClient; class WebViewClient; struct WebActiveWheelFlingParameters; +struct WebFloatQuad; struct WebMediaPlayerAction; struct WebPluginAction; struct WebPoint; +struct WebTouchCandidatesInfo; class WebView : public WebWidget { public: @@ -461,10 +463,24 @@ public: virtual bool isSelectionEditable() const = 0; - // Benchmarking support -------------------------------------------- + // Benchmarking support ------------------------------------------------- virtual WebViewBenchmarkSupport* benchmarkSupport() { return 0; } + + // Touch ---------------------------------------------------------------- + + // Returns a list of layout bounding boxes of the event target node touched by + // the input point with the padding. If no target node is found, an empty + // list is returned. If the node is of an inline type, each line box is returned + // separately. Otherwise, one bounding box is returned. Also returns information + // about the found candidates and their dimension, and the highlight color to use. + virtual WebVector<WebFloatQuad> getTouchHighlightQuads(const WebPoint&, + int padding, + WebTouchCandidatesInfo& outTouchInfo, + WebColor& outTapHighlightColor) = 0; + + // Visibility ----------------------------------------------------------- // Sets the visibility of the WebView. diff --git a/Source/WebKit/chromium/public/WebViewClient.h b/Source/WebKit/chromium/public/WebViewClient.h index 65964a128..726cc6482 100644 --- a/Source/WebKit/chromium/public/WebViewClient.h +++ b/Source/WebKit/chromium/public/WebViewClient.h @@ -53,6 +53,7 @@ class WebAccessibilityObject; class WebBatteryStatusClient; class WebColorChooser; class WebColorChooserClient; +class WebCompositorOutputSurface; class WebDeviceOrientationClient; class WebDragData; class WebElement; @@ -118,9 +119,11 @@ public: // Create a session storage namespace object associated with this WebView. virtual WebStorageNamespace* createSessionStorageNamespace(unsigned quota) { return 0; } - // Creates a graphics context that renders to the client's WebView. + // DEPRECATED: Creates a graphics context that renders to the client's WebView. virtual WebGraphicsContext3D* createGraphicsContext3D(const WebGraphicsContext3D::Attributes&) { return 0; } + // Creates the output surface that renders to the client's WebView. + virtual WebCompositorOutputSurface* createOutputSurface() { return 0; } // Misc ---------------------------------------------------------------- @@ -373,7 +376,18 @@ public: // around a hit test result. The embedder should use platform-specific // content detectors (e.g., from the Android intent system) to analyze the // region around the hit test result. - virtual WebContentDetectionResult detectContentAround(const WebHitTestResult&) { return WebContentDetectionResult(); } + virtual WebContentDetectionResult detectContentIntentAround(const WebHitTestResult&) { return WebContentDetectionResult(); } + + // Schedules a new content intent with the provided url. + virtual void scheduleContentIntent(const WebURL&) { } + + // Cancels any previously scheduled content intents that have not yet launched. + virtual void cancelScheduledContentIntents() { } + + // Draggable regions ---------------------------------------------------- + + // Informs the browser that the draggable regions have been updated. + virtual void draggableRegionsChanged() { } protected: ~WebViewClient() { } diff --git a/Source/WebKit/chromium/public/WebWidget.h b/Source/WebKit/chromium/public/WebWidget.h index b2a57d66e..8e4fecac7 100644 --- a/Source/WebKit/chromium/public/WebWidget.h +++ b/Source/WebKit/chromium/public/WebWidget.h @@ -222,8 +222,9 @@ public: // following the call to instrumentBeginFrame(). virtual void instrumentCancelFrame() { } - // Fills in a WebRenderingStats struct containing information about the state of the compositor. - // This call is relatively expensive in threaded mode as it blocks on the compositor thread. + // Fills in a WebRenderingStats struct containing information about rendering, e.g. count of frames rendered, time spent painting. + // This call is relatively expensive in threaded compositing mode, as it blocks on the compositor thread. + // It is safe to call in software mode, but will only give stats for rendering done in compositing mode. virtual void renderingStats(WebRenderingStats&) const { } // The page background color. Can be used for filling in areas without diff --git a/Source/WebKit/chromium/public/platform/WebContentLayer.h b/Source/WebKit/chromium/public/platform/WebContentLayer.h deleted file mode 100644 index 90a16ed91..000000000 --- a/Source/WebKit/chromium/public/platform/WebContentLayer.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2012 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "../../../../Platform/chromium/public/WebContentLayer.h" diff --git a/Source/WebKit/chromium/public/platform/WebContentLayerClient.h b/Source/WebKit/chromium/public/platform/WebContentLayerClient.h deleted file mode 100644 index 8f1ca3324..000000000 --- a/Source/WebKit/chromium/public/platform/WebContentLayerClient.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2012 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "../../../../Platform/chromium/public/WebContentLayerClient.h" diff --git a/Source/WebKit/chromium/public/platform/WebExternalTextureLayer.h b/Source/WebKit/chromium/public/platform/WebExternalTextureLayer.h deleted file mode 100644 index 000826df7..000000000 --- a/Source/WebKit/chromium/public/platform/WebExternalTextureLayer.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2012 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "../../../../Platform/chromium/public/WebExternalTextureLayer.h" diff --git a/Source/WebKit/chromium/public/platform/WebLayer.h b/Source/WebKit/chromium/public/platform/WebLayer.h deleted file mode 100644 index 234c2fc4b..000000000 --- a/Source/WebKit/chromium/public/platform/WebLayer.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2012 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "../../../../Platform/chromium/public/WebLayer.h" diff --git a/Source/WebKit/chromium/public/platform/WebLayerTreeView.h b/Source/WebKit/chromium/public/platform/WebLayerTreeView.h deleted file mode 100644 index 2ea2915e1..000000000 --- a/Source/WebKit/chromium/public/platform/WebLayerTreeView.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2012 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "../../../../Platform/chromium/public/WebLayerTreeView.h" diff --git a/Source/WebKit/chromium/public/platform/WebLayerTreeViewClient.h b/Source/WebKit/chromium/public/platform/WebLayerTreeViewClient.h deleted file mode 100644 index 36c61f584..000000000 --- a/Source/WebKit/chromium/public/platform/WebLayerTreeViewClient.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2012 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "../../../../Platform/chromium/public/WebLayerTreeViewClient.h" diff --git a/Source/WebKit/chromium/public/platform/WebSolidColorLayer.h b/Source/WebKit/chromium/public/platform/WebSolidColorLayer.h deleted file mode 100644 index f4edbd489..000000000 --- a/Source/WebKit/chromium/public/platform/WebSolidColorLayer.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2012 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "../../../../Platform/chromium/public/WebSolidColorLayer.h" |