Changeset 238254 in webkit


Ignore:
Timestamp:
Nov 15, 2018 2:42:56 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Remove unused WebInspectorProxy code
https://bugs.webkit.org/show_bug.cgi?id=191674

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2018-11-15
Reviewed by Dean Jackson.

  • UIProcess/WebInspectorProxy.cpp:

(WebKit::WebInspectorProxy::createInspectorPage):
(WebKit::WebInspectorProxy::closeFrontendPageAndWindow):

  • UIProcess/WebInspectorProxy.h:
  • UIProcess/mac/WebInspectorProxyMac.mm:

(WebKit::WebInspectorProxy::setInspectorWindowFrame): Deleted.
(WebKit::WebInspectorProxy::inspectorWindowFrame): Deleted.

  • WebProcess/WebPage/WebInspector.h:
Location:
trunk/Source/WebKit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r238252 r238254  
     12018-11-15  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Remove unused WebInspectorProxy code
     4        https://bugs.webkit.org/show_bug.cgi?id=191674
     5
     6        Reviewed by Dean Jackson.
     7
     8        * UIProcess/WebInspectorProxy.cpp:
     9        (WebKit::WebInspectorProxy::createInspectorPage):
     10        (WebKit::WebInspectorProxy::closeFrontendPageAndWindow):
     11        * UIProcess/WebInspectorProxy.h:
     12        * UIProcess/mac/WebInspectorProxyMac.mm:
     13        (WebKit::WebInspectorProxy::setInspectorWindowFrame): Deleted.
     14        (WebKit::WebInspectorProxy::inspectorWindowFrame): Deleted.
     15        * WebProcess/WebPage/WebInspector.h:
     16
    1172018-11-15  Ryosuke Niwa  <rniwa@webkit.org>
    218
  • trunk/Source/WebKit/UIProcess/WebInspectorProxy.cpp

    r237266 r238254  
    354354        return;
    355355
    356     m_connectionIdentifier = WTFMove(connectionIdentifier);
    357 
    358     m_inspectorPage->process().send(Messages::WebInspectorUI::EstablishConnection(m_connectionIdentifier, m_inspectedPage->pageID(), m_underTest, inspectionLevel()), m_inspectorPage->pageID());
     356    m_inspectorPage->process().send(Messages::WebInspectorUI::EstablishConnection(WTFMove(connectionIdentifier), m_inspectedPage->pageID(), m_underTest, inspectionLevel()), m_inspectorPage->pageID());
    359357
    360358    if (!m_underTest) {
     
    438436    m_underTest = false;
    439437
    440     m_connectionIdentifier = IPC::Attachment();
    441 
    442438    platformCloseFrontendPageAndWindow();
    443439}
  • trunk/Source/WebKit/UIProcess/WebInspectorProxy.h

    r237131 r238254  
    108108    NSWindow* inspectorWindow() const { return m_inspectorWindow.get(); }
    109109
    110     void setInspectorWindowFrame(WKRect&);
    111     WKRect inspectorWindowFrame();
    112 
    113110    void closeFrontendPage();
    114111    void closeFrontendAfterInactivityTimerFired();
     
    243240    bool m_ignoreElementSelectionChange { false };
    244241    bool m_isOpening { false };
    245 
    246     IPC::Attachment m_connectionIdentifier;
    247242
    248243    AttachmentSide m_attachmentSide {AttachmentSide::Bottom};
  • trunk/Source/WebKit/UIProcess/mac/WebInspectorProxyMac.mm

    r237131 r238254  
    211211}
    212212
    213 void WebInspectorProxy::setInspectorWindowFrame(WKRect& frame)
    214 {
    215     if (m_isAttached)
    216         return;
    217 
    218     [m_inspectorWindow setFrame:NSMakeRect(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height) display:YES];
    219 }
    220 
    221 WKRect WebInspectorProxy::inspectorWindowFrame()
    222 {
    223     if (m_isAttached)
    224         return WKRectMake(0, 0, 0, 0);
    225 
    226     NSRect frame = m_inspectorWindow.get().frame;
    227     return WKRectMake(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height);
    228 }
    229 
    230213void WebInspectorProxy::updateInspectorWindowTitle() const
    231214{
  • trunk/Source/WebKit/WebProcess/WebPage/WebInspector.h

    r228218 r238254  
    5555    void didReceiveInvalidMessage(IPC::Connection&, IPC::StringReference, IPC::StringReference) override { close(); }
    5656
    57     // Called by WebInspector messages
    58     void connectionEstablished();
    59 
    6057    void show();
    6158    void close();
Note: See TracChangeset for help on using the changeset viewer.