• msw@chromium.org's avatar
    Store and restore view focus in OnWindowFocused. · deba10a2
    msw@chromium.org authored
    Mimic [Desktop]NativeWidgetAura::OnWindowActivated.
    Simplify OnNativeBlur calls and OnNative[Blur|Focus] impls.
    (View focus changes update the TextInputClient as needed)
    Rewrite and enable related ConstrainedWindowViewTests.
    
    Print GetLastError() in SendInput() error case for tests.
    (key presses get 5/ERROR_ACCESS_DENIED on locked desktops?)
    
    BUG=368691,170331,177482,163931
    TEST=Automated tests; the focused Views change as expected between the browser, web contents, and web content modal dialogs (print preview, collected cookies, etc.).
    R=sky@chromium.org
    
    Review URL: https://codereview.chromium.org/282223002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271249 0039d316-1c4b-4281-b951-d872f2087c98
    deba10a2
foreground_helper.cc 2.28 KB