Changeset 73935 in webkit


Ignore:
Timestamp:
Dec 13, 2010 11:27:02 AM (13 years ago)
Author:
bweinstein@apple.com
Message:

WebKit2: Focusing Web Inspector window doesn't focus contents on Windows
https://bugs.webkit.org/show_bug.cgi?id=50947
<rdar://problem/8762468>

Reviewed by Darin Adler.

When we get the notification that the inspector window has focused, focus the inner inspector view.

  • UIProcess/WebInspectorProxy.h:
  • UIProcess/win/WebInspectorProxyWin.cpp:

(WebKit::WebInspectorProxy::onSetFocusEvent): Set the focus of the inspector view, because that is what

needs to be focused in the inspector window.

Location:
trunk/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r73932 r73935  
     12010-12-13  Brian Weinstein  <bweinstein@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKit2: Focusing Web Inspector window doesn't focus contents on Windows
     6        https://bugs.webkit.org/show_bug.cgi?id=50947
     7        <rdar://problem/8762468>
     8       
     9        When we get the notification that the inspector window has focused, focus the inner inspector view.
     10
     11        * UIProcess/WebInspectorProxy.h:
     12        * UIProcess/win/WebInspectorProxyWin.cpp:
     13        (WebKit::WebInspectorProxy::onSetFocusEvent): Set the focus of the inspector view, because that is what
     14            needs to be focused in the inspector window.
     15
    1162010-12-13  Dan Bernstein  <mitz@apple.com>
    217
  • trunk/WebKit2/UIProcess/WebInspectorProxy.h

    r73877 r73935  
    124124    LRESULT onSizeEvent(HWND hWnd, UINT message, WPARAM, LPARAM, bool& handled);
    125125    LRESULT onMinMaxInfoEvent(HWND hWnd, UINT message, WPARAM, LPARAM, bool& handled);
     126    LRESULT onSetFocusEvent(HWND hWnd, UINT message, WPARAM, LPARAM, bool& handled);
    126127    LRESULT onCloseEvent(HWND hWnd, UINT message, WPARAM, LPARAM, bool& handled);
    127128#endif
  • trunk/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp

    r73877 r73935  
    9595        lResult = onMinMaxInfoEvent(hWnd, message, wParam, lParam, handled);
    9696        break;
     97    case WM_SETFOCUS:
     98        lResult = onSetFocusEvent(hWnd, message, wParam, lParam, handled);
     99        break;
    97100    case WM_CLOSE:
    98101        lResult = onCloseEvent(hWnd, message, wParam, lParam, handled);
     
    115118
    116119    ::SetWindowPos(m_inspectorView->window(), 0, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOZORDER);
     120
     121    return 0;
     122}
     123
     124LRESULT WebInspectorProxy::onSetFocusEvent(HWND, UINT, WPARAM, LPARAM lParam, bool&)
     125{   
     126    ::SetFocus(m_inspectorView->window());
    117127
    118128    return 0;
Note: See TracChangeset for help on using the changeset viewer.