Changeset 87275 in webkit


Ignore:
Timestamp:
May 24, 2011 11:37:42 PM (13 years ago)
Author:
timothy@apple.com
Message:

Make the Web Inspector bring the right window to the front when docked.

rdar://problem/9464685
https://webkit.org/b/61420

Reviewed by Brian Weinstein.

  • UIProcess/mac/WebInspectorProxyMac.mm:

(WebKit::WebInspectorProxy::platformBringToFront): Order front the parent window of the Inspector's WKView.

  • UIProcess/win/WebInspectorProxyWin.cpp:

(WebKit::WebInspectorProxy::platformBringToFront): Ditto.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r87274 r87275  
     12011-05-24  Timothy Hatcher  <timothy@apple.com>
     2
     3        Make the Web Inspector bring the right window to the front when docked.
     4
     5        rdar://problem/9464685
     6        https://webkit.org/b/61420
     7
     8        Reviewed by Brian Weinstein.
     9
     10        * UIProcess/mac/WebInspectorProxyMac.mm:
     11        (WebKit::WebInspectorProxy::platformBringToFront): Order front the parent window of the Inspector's WKView.
     12        * UIProcess/win/WebInspectorProxyWin.cpp:
     13        (WebKit::WebInspectorProxy::platformBringToFront): Ditto.
     14
    1152011-05-24  Keishi Hattori  <keishi@webkit.org>
    216
  • trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm

    r85874 r87275  
    155155void WebInspectorProxy::platformBringToFront()
    156156{
    157     // FIXME: support bring to front in docked mode here.
    158 
    159     [m_inspectorWindow.get() makeKeyAndOrderFront:nil];
     157    // FIXME: this will not bring a background tab in Safari to the front, only its window.
     158    [m_inspectorView.get().window makeKeyAndOrderFront:nil];
    160159}
    161160
  • trunk/Source/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp

    r86893 r87275  
    228228void WebInspectorProxy::platformBringToFront()
    229229{
    230     // FIXME: support bring to front in docked mode here.
    231 
    232     if (!m_inspectorWindow)
     230    // FIXME: this will not bring a background tab in Safari to the front, only its window.
     231    HWND parentWindow = m_isAttached ? ::GetAncestor(m_page->nativeWindow(), GA_ROOT) : m_inspectorWindow;
     232    if (!parentWindow)
    233233        return;
    234234
    235     ASSERT(::IsWindow(m_inspectorWindow));
    236     ::SetWindowPos(m_inspectorWindow, HWND_TOP, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOMOVE | SWP_NOSIZE);
     235    ASSERT(::IsWindow(parentWindow));
     236    ::SetWindowPos(parentWindow, HWND_TOP, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOMOVE | SWP_NOSIZE);
    237237}
    238238
Note: See TracChangeset for help on using the changeset viewer.