|
Lines 72-77
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec1
|
| 72 |
#include "WebPageGroup.h" |
72 |
#include "WebPageGroup.h" |
| 73 |
#include "WebPageGroupData.h" |
73 |
#include "WebPageGroupData.h" |
| 74 |
#include "WebPageMessages.h" |
74 |
#include "WebPageMessages.h" |
|
|
75 |
#include "WebPageProxyMessages.h" |
| 75 |
#include "WebPopupItem.h" |
76 |
#include "WebPopupItem.h" |
| 76 |
#include "WebPopupMenuProxy.h" |
77 |
#include "WebPopupMenuProxy.h" |
| 77 |
#include "WebPreferences.h" |
78 |
#include "WebPreferences.h" |
|
Lines 250-258
WebPageProxy::WebPageProxy(PageClient* p
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec2
|
| 250 |
|
251 |
|
| 251 |
m_pageGroup->addPage(this); |
252 |
m_pageGroup->addPage(this); |
| 252 |
|
253 |
|
|
|
254 |
#if ENABLE(INSPECTOR) |
| 255 |
m_inspector = WebInspectorProxy::create(this); |
| 256 |
#endif |
| 257 |
#if ENABLE(FULLSCREEN_API) |
| 258 |
m_fullScreenManager = WebFullScreenManagerProxy::create(this); |
| 259 |
#endif |
| 253 |
#if ENABLE(VIBRATION) |
260 |
#if ENABLE(VIBRATION) |
| 254 |
m_vibration = WebVibrationProxy::create(this); |
261 |
m_vibration = WebVibrationProxy::create(this); |
| 255 |
#endif |
262 |
#endif |
|
|
263 |
|
| 264 |
m_process->addMessageReceiver(Messages::WebPageProxy::messageReceiverName(), m_pageID, this); |
| 256 |
} |
265 |
} |
| 257 |
|
266 |
|
| 258 |
WebPageProxy::~WebPageProxy() |
267 |
WebPageProxy::~WebPageProxy() |
|
Lines 385-395
void WebPageProxy::reattachToWebProcess(
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec3
|
| 385 |
else |
394 |
else |
| 386 |
m_process = m_process->context()->createNewWebProcessRespectingProcessCountLimit(); |
395 |
m_process = m_process->context()->createNewWebProcessRespectingProcessCountLimit(); |
| 387 |
m_process->addExistingWebPage(this, m_pageID); |
396 |
m_process->addExistingWebPage(this, m_pageID); |
|
|
397 |
m_process->addMessageReceiver(Messages::WebPageProxy::messageReceiverName(), m_pageID, this); |
| 388 |
|
398 |
|
| 389 |
initializeWebPage(); |
399 |
initializeWebPage(); |
| 390 |
|
400 |
|
| 391 |
m_pageClient->didRelaunchProcess(); |
401 |
m_pageClient->didRelaunchProcess(); |
| 392 |
m_drawingArea->waitForBackingStoreUpdateOnNextPaint(); |
402 |
m_drawingArea->waitForBackingStoreUpdateOnNextPaint(); |
|
|
403 |
|
| 404 |
#if ENABLE(INSPECTOR) |
| 405 |
m_inspector = WebInspectorProxy::create(this); |
| 406 |
#endif |
| 407 |
#if ENABLE(FULLSCREEN_API) |
| 408 |
m_fullScreenManager = WebFullScreenManagerProxy::create(this); |
| 409 |
#endif |
| 393 |
} |
410 |
} |
| 394 |
|
411 |
|
| 395 |
void WebPageProxy::reattachToWebProcessWithItem(WebBackForwardListItem* item) |
412 |
void WebPageProxy::reattachToWebProcessWithItem(WebBackForwardListItem* item) |
|
Lines 526-531
void WebPageProxy::close()
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec4
|
| 526 |
|
543 |
|
| 527 |
m_process->send(Messages::WebPage::Close(), m_pageID); |
544 |
m_process->send(Messages::WebPage::Close(), m_pageID); |
| 528 |
m_process->removeWebPage(m_pageID); |
545 |
m_process->removeWebPage(m_pageID); |
|
|
546 |
m_process->removeMessageReceiver(Messages::WebPageProxy::messageReceiverName(), m_pageID); |
| 529 |
} |
547 |
} |
| 530 |
|
548 |
|
| 531 |
bool WebPageProxy::tryClose() |
549 |
bool WebPageProxy::tryClose() |
|
Lines 1933-1991
void WebPageProxy::preferencesDidChange(
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec5
|
| 1933 |
m_process->send(Messages::WebPage::PreferencesDidChange(pageGroup()->preferences()->store()), m_pageID, m_isPerformingDOMPrintOperation ? CoreIPC::DispatchMessageEvenWhenWaitingForSyncReply : 0); |
1951 |
m_process->send(Messages::WebPage::PreferencesDidChange(pageGroup()->preferences()->store()), m_pageID, m_isPerformingDOMPrintOperation ? CoreIPC::DispatchMessageEvenWhenWaitingForSyncReply : 0); |
| 1934 |
} |
1952 |
} |
| 1935 |
|
1953 |
|
| 1936 |
void WebPageProxy::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageDecoder& decoder) |
|
|
| 1937 |
{ |
| 1938 |
if (decoder.messageReceiverName() == Messages::DrawingAreaProxy::messageReceiverName()) { |
| 1939 |
m_drawingArea->didReceiveDrawingAreaProxyMessage(connection, decoder); |
| 1940 |
return; |
| 1941 |
} |
| 1942 |
|
| 1943 |
#if USE(COORDINATED_GRAPHICS) |
| 1944 |
if (decoder.messageReceiverName() == Messages::CoordinatedLayerTreeHostProxy::messageReceiverName()) { |
| 1945 |
m_drawingArea->didReceiveCoordinatedLayerTreeHostProxyMessage(connection, decoder); |
| 1946 |
return; |
| 1947 |
} |
| 1948 |
#endif |
| 1949 |
|
| 1950 |
#if ENABLE(INSPECTOR) |
| 1951 |
if (decoder.messageReceiverName() == Messages::WebInspectorProxy::messageReceiverName()) { |
| 1952 |
if (WebInspectorProxy* inspector = this->inspector()) |
| 1953 |
inspector->didReceiveWebInspectorProxyMessage(connection, decoder); |
| 1954 |
return; |
| 1955 |
} |
| 1956 |
#endif |
| 1957 |
|
| 1958 |
#if ENABLE(FULLSCREEN_API) |
| 1959 |
if (decoder.messageReceiverName() == Messages::WebFullScreenManagerProxy::messageReceiverName()) { |
| 1960 |
fullScreenManager()->didReceiveMessage(connection, decoder); |
| 1961 |
return; |
| 1962 |
} |
| 1963 |
#endif |
| 1964 |
|
| 1965 |
didReceiveWebPageProxyMessage(connection, decoder); |
| 1966 |
} |
| 1967 |
|
| 1968 |
void WebPageProxy::didReceiveSyncMessage(CoreIPC::Connection* connection, CoreIPC::MessageDecoder& decoder, OwnPtr<CoreIPC::MessageEncoder>& replyEncoder) |
| 1969 |
{ |
| 1970 |
#if ENABLE(INSPECTOR) |
| 1971 |
if (decoder.messageReceiverName() == Messages::WebInspectorProxy::messageReceiverName()) { |
| 1972 |
if (WebInspectorProxy* inspector = this->inspector()) |
| 1973 |
inspector->didReceiveSyncWebInspectorProxyMessage(connection, decoder, replyEncoder); |
| 1974 |
return; |
| 1975 |
} |
| 1976 |
#endif |
| 1977 |
|
| 1978 |
#if ENABLE(FULLSCREEN_API) |
| 1979 |
if (decoder.messageReceiverName() == Messages::WebFullScreenManagerProxy::messageReceiverName()) { |
| 1980 |
fullScreenManager()->didReceiveSyncMessage(connection, decoder, replyEncoder); |
| 1981 |
return; |
| 1982 |
} |
| 1983 |
#endif |
| 1984 |
|
| 1985 |
// FIXME: Do something with reply. |
| 1986 |
didReceiveSyncWebPageProxyMessage(connection, decoder, replyEncoder); |
| 1987 |
} |
| 1988 |
|
| 1989 |
void WebPageProxy::didCreateMainFrame(uint64_t frameID) |
1954 |
void WebPageProxy::didCreateMainFrame(uint64_t frameID) |
| 1990 |
{ |
1955 |
{ |
| 1991 |
MESSAGE_CHECK(!m_mainFrame); |
1956 |
MESSAGE_CHECK(!m_mainFrame); |
|
Lines 2846-2853
WebInspectorProxy* WebPageProxy::inspect
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec6
|
| 2846 |
{ |
2811 |
{ |
| 2847 |
if (isClosed() || !isValid()) |
2812 |
if (isClosed() || !isValid()) |
| 2848 |
return 0; |
2813 |
return 0; |
| 2849 |
if (!m_inspector) |
|
|
| 2850 |
m_inspector = WebInspectorProxy::create(this); |
| 2851 |
return m_inspector.get(); |
2814 |
return m_inspector.get(); |
| 2852 |
} |
2815 |
} |
| 2853 |
|
2816 |
|
|
Lines 2856-2863
WebInspectorProxy* WebPageProxy::inspect
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec7
|
| 2856 |
#if ENABLE(FULLSCREEN_API) |
2819 |
#if ENABLE(FULLSCREEN_API) |
| 2857 |
WebFullScreenManagerProxy* WebPageProxy::fullScreenManager() |
2820 |
WebFullScreenManagerProxy* WebPageProxy::fullScreenManager() |
| 2858 |
{ |
2821 |
{ |
| 2859 |
if (!m_fullScreenManager) |
|
|
| 2860 |
m_fullScreenManager = WebFullScreenManagerProxy::create(this); |
| 2861 |
return m_fullScreenManager.get(); |
2822 |
return m_fullScreenManager.get(); |
| 2862 |
} |
2823 |
} |
| 2863 |
#endif |
2824 |
#endif |
|
Lines 3612-3628
void WebPageProxy::processDidCrash()
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec8
|
| 3612 |
m_drawingArea = nullptr; |
3573 |
m_drawingArea = nullptr; |
| 3613 |
|
3574 |
|
| 3614 |
#if ENABLE(INSPECTOR) |
3575 |
#if ENABLE(INSPECTOR) |
| 3615 |
if (m_inspector) { |
3576 |
m_inspector->invalidate(); |
| 3616 |
m_inspector->invalidate(); |
3577 |
m_inspector = nullptr; |
| 3617 |
m_inspector = nullptr; |
|
|
| 3618 |
} |
| 3619 |
#endif |
3578 |
#endif |
| 3620 |
|
3579 |
|
| 3621 |
#if ENABLE(FULLSCREEN_API) |
3580 |
#if ENABLE(FULLSCREEN_API) |
| 3622 |
if (m_fullScreenManager) { |
3581 |
m_fullScreenManager->invalidate(); |
| 3623 |
m_fullScreenManager->invalidate(); |
3582 |
m_fullScreenManager = nullptr; |
| 3624 |
m_fullScreenManager = nullptr; |
|
|
| 3625 |
} |
| 3626 |
#endif |
3583 |
#endif |
| 3627 |
|
3584 |
|
| 3628 |
#if ENABLE(VIBRATION) |
3585 |
#if ENABLE(VIBRATION) |
|
Lines 3719-3724
void WebPageProxy::processDidCrash()
Source/WebKit2/UIProcess/WebPageProxy.cpp_sec9
|
| 3719 |
dismissCorrectionPanel(ReasonForDismissingAlternativeTextIgnored); |
3676 |
dismissCorrectionPanel(ReasonForDismissingAlternativeTextIgnored); |
| 3720 |
m_pageClient->dismissDictionaryLookupPanel(); |
3677 |
m_pageClient->dismissDictionaryLookupPanel(); |
| 3721 |
#endif |
3678 |
#endif |
|
|
3679 |
|
| 3680 |
m_process->removeMessageReceiver(Messages::WebPageProxy::messageReceiverName(), m_pageID); |
| 3722 |
} |
3681 |
} |
| 3723 |
|
3682 |
|
| 3724 |
WebPageCreationParameters WebPageProxy::creationParameters() const |
3683 |
WebPageCreationParameters WebPageProxy::creationParameters() const |