diff options
| author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-06-20 13:01:08 +0200 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-06-20 13:01:08 +0200 |
| commit | 49233e234e5c787396cadb2cea33b31ae0cd65c1 (patch) | |
| tree | 5410cb9a8fd53168bb60d62c54b654d86f03c38d /Source/WebKit2/UIProcess/WebPageProxy.cpp | |
| parent | b211c645d8ab690f713515dfdc84d80b11c27d2c (diff) | |
| download | qtwebkit-49233e234e5c787396cadb2cea33b31ae0cd65c1.tar.gz | |
Imported WebKit commit 3a8c29f35d00659d2ce7a0ccdfa8304f14e82327 (http://svn.webkit.org/repository/webkit/trunk@120813)
New snapshot with Windows build fixes
Diffstat (limited to 'Source/WebKit2/UIProcess/WebPageProxy.cpp')
| -rw-r--r-- | Source/WebKit2/UIProcess/WebPageProxy.cpp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/WebPageProxy.cpp b/Source/WebKit2/UIProcess/WebPageProxy.cpp index 2b538e5d8..16d4a981d 100644 --- a/Source/WebKit2/UIProcess/WebPageProxy.cpp +++ b/Source/WebKit2/UIProcess/WebPageProxy.cpp @@ -85,6 +85,13 @@ #include <WebCore/WindowFeatures.h> #include <stdio.h> +#if ENABLE(WEB_INTENTS) +#include "IntentData.h" +#include "IntentServiceInfo.h" +#include "WebIntentData.h" +#include "WebIntentServiceInfo.h" +#endif + #if USE(UI_SIDE_COMPOSITING) #include "LayerTreeHostProxyMessages.h" #endif @@ -210,6 +217,7 @@ WebPageProxy::WebPageProxy(PageClient* pageClient, PassRefPtr<WebProcessProxy> p , m_pageCount(0) , m_renderTreeSize(0) , m_shouldSendEventsSynchronously(false) + , m_suppressVisibilityUpdates(false) , m_mediaVolume(1) #if ENABLE(PAGE_VISIBILITY_API) , m_visibilityState(PageVisibilityStateVisible) @@ -1866,6 +1874,17 @@ void WebPageProxy::didFinishProgress() m_loaderClient.didFinishProgress(this); } +#if ENABLE(WEB_INTENTS_TAG) +void WebPageProxy::registerIntentServiceForFrame(uint64_t frameID, const IntentServiceInfo& serviceInfo) +{ + WebFrameProxy* frame = process()->webFrame(frameID); + MESSAGE_CHECK(frame); + + RefPtr<WebIntentServiceInfo> webIntentServiceInfo = WebIntentServiceInfo::create(serviceInfo); + m_loaderClient.registerIntentServiceForFrame(this, frame, webIntentServiceInfo.get()); +} +#endif + void WebPageProxy::didStartProvisionalLoadForFrame(uint64_t frameID, const String& url, const String& unreachableURL, CoreIPC::ArgumentDecoder* arguments) { clearPendingAPIRequestURL(); @@ -2136,6 +2155,17 @@ void WebPageProxy::didDetectXSSForFrame(uint64_t frameID, CoreIPC::ArgumentDecod m_loaderClient.didDetectXSSForFrame(this, frame, userData.get()); } +#if ENABLE(WEB_INTENTS) +void WebPageProxy::didReceiveIntentForFrame(uint64_t frameID, const IntentData& intentData) +{ + WebFrameProxy* frame = process()->webFrame(frameID); + MESSAGE_CHECK(frame); + + RefPtr<WebIntentData> webIntentData = WebIntentData::create(intentData); + m_loaderClient.didReceiveIntentForFrame(this, frame, webIntentData.get()); +} +#endif + void WebPageProxy::frameDidBecomeFrameSet(uint64_t frameID, bool value) { WebFrameProxy* frame = process()->webFrame(frameID); @@ -3468,6 +3498,7 @@ WebPageCreationParameters WebPageProxy::creationParameters() const #if PLATFORM(MAC) parameters.isSmartInsertDeleteEnabled = m_isSmartInsertDeleteEnabled; parameters.layerHostingMode = m_layerHostingMode; + parameters.colorSpace = m_pageClient->colorSpace(); #endif #if PLATFORM(WIN) @@ -3810,6 +3841,29 @@ void WebPageProxy::handleAlternativeTextUIResult(const String& result) process()->send(Messages::WebPage::HandleAlternativeTextUIResult(result), m_pageID, 0); #endif } + +#if USE(DICTATION_ALTERNATIVES) +void WebPageProxy::showDictationAlternativeUI(const WebCore::FloatRect& boundingBoxOfDictatedText, uint64_t dictationContext) +{ + m_pageClient->showDictationAlternativeUI(boundingBoxOfDictatedText, dictationContext); +} + +void WebPageProxy::dismissDictationAlternativeUI() +{ + m_pageClient->dismissDictationAlternativeUI(); +} + +void WebPageProxy::removeDictationAlternatives(uint64_t dictationContext) +{ + m_pageClient->removeDictationAlternatives(dictationContext); +} + +void WebPageProxy::dictationAlternatives(uint64_t dictationContext, Vector<String>& result) +{ + result = m_pageClient->dictationAlternatives(dictationContext); +} +#endif + #endif // PLATFORM(MAC) } // namespace WebKit |
