#define ENABLE_TIZEN_CACHE_MEMORY_OPTIMIZATION 1 /* Keunyong Lee(ky07.lee@samsung.com) : The Patches that can reduce memory usage */
#endif
#define ENABLE_TIZEN_WEBKIT2_NUMBER_TYPE_SUPPORT 1 /* Seonae Kim(sunaeluv.kim@samsung.com) : add number types for switching WK number types */
+#define ENABLE_TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR 1 /* Bunam Jeon(bunam.jeon@samsung.com) : Notify to UI process that the content has been suspended by inspector */
#define ENABLE_TIZEN_WEBKIT2_VISITED_LINKS 1 /* Jaehun Lim(ljaehun.lim@samsung.com) : workaround patch for coloring visited links.
* this patch should be removed after WK2 HistoryClient is implemented.
*/
controller->suspendEventsForAllListeners(domWindow());
#endif
+
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ if (why == ActiveDOMObject::JavaScriptDebuggerPaused)
+ page()->chrome()->setContentSuspendedByInspector(true);
+#endif
}
void Document::resumeActiveDOMObjects()
if (DeviceOrientationController* controller = DeviceOrientationController::from(page()))
controller->resumeEventsForAllListeners(domWindow());
#endif
+
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ page()->chrome()->setContentSuspendedByInspector(false);
+#endif
}
RenderView* Document::renderView() const
m_client->setCursor(cursor);
}
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+void Chrome::setContentSuspendedByInspector(bool b) const
+{
+ m_client->setContentSuspendedByInspector(b);
+}
+#endif
+
void Chrome::setCursorHiddenUntilMouseMoves(bool hiddenUntilMouseMoves)
{
m_client->setCursorHiddenUntilMouseMoves(hiddenUntilMouseMoves);
bool requiresFullscreenForVideoPlayback();
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ void setContentSuspendedByInspector(bool) const;
+#endif
+
#if PLATFORM(MAC)
void focusNSView(NSView*);
#endif
virtual bool exceededLocalFileSystemQuota(Frame*, int64_t currentUsage) = 0;
#endif
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ virtual void setContentSuspendedByInspector(bool) { }
+#endif
+
protected:
virtual ~ChromeClient() { }
};
#if ENABLE(TIZEN_ISF_PORT)
, m_didCancelCompositionFromWebProcess(false)
#endif
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ , m_contentSuspendedByInspector(false)
+#endif
{
#ifndef NDEBUG
webPageProxyCounter.increment();
WebBackForwardList* backForwardList() const { return m_backForwardList.get(); }
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ bool isContentSuspendedByInspector() { return m_contentSuspendedByInspector; }
+#endif
+
#if ENABLE(INSPECTOR)
WebInspectorProxy* inspector();
#endif
void exceededLocalFileSystemQuota(uint64_t frameID, const String& originIdentifier, int64_t currentUsage, PassRefPtr<Messages::WebPageProxy::ExceededLocalFileSystemQuota::DelayedReply> reply);
#endif
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ void setContentSuspendedByInspector(bool);
+#endif
+
PageClient* m_pageClient;
WebLoaderClient m_loaderClient;
WebPolicyClient m_policyClient;
WebCore::DragSession m_currentDragSession;
#endif
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ bool m_contentSuspendedByInspector;
+#endif
+
String m_pendingAPIRequestURL;
bool m_mainFrameHasHorizontalScrollbar;
#if ENABLE(TIZEN_ISF_PORT)
RemoveInputMethodContext(uintptr_t id)
#endif
+
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ setContentSuspendedByInspector(bool isSuspended)
+#endif
}
}
#endif
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+void WebPageProxy::setContentSuspendedByInspector(bool isSuspended)
+{
+ m_contentSuspendedByInspector = isSuspended;
+}
+#endif
+
} // namespace WebKit
}
#endif
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+void WebChromeClient::setContentSuspendedByInspector(bool isSuspended)
+{
+ m_page->send(Messages::WebPageProxy::setContentSuspendedByInspector(isSuspended));
+}
+#endif
} // namespace WebKit
virtual bool exceededLocalFileSystemQuota(Frame*, int64_t currentQuota) OVERRIDE;
#endif
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+ virtual void setContentSuspendedByInspector(bool) OVERRIDE;
+#endif
+
String m_cachedToolTip;
mutable RefPtr<WebFrame> m_cachedFrameSetLargestFrame;
mutable bool m_cachedMainFrameHasHorizontalScrollbar;