diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-17 17:44:35 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-17 17:44:35 +0000 |
commit | deba10a26c219861f619551c6d83b63cec67064a (patch) | |
tree | af5c8e1f07e399f7865499350697f2d8bca45957 /ui/base/win | |
parent | 6ae91fa396ab5de068ab3fc1bd6cd630c3ddf70d (diff) | |
download | chromium_src-deba10a26c219861f619551c6d83b63cec67064a.zip chromium_src-deba10a26c219861f619551c6d83b63cec67064a.tar.gz chromium_src-deba10a26c219861f619551c6d83b63cec67064a.tar.bz2 |
Store and restore view focus in OnWindowFocused.
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
Diffstat (limited to 'ui/base/win')
-rw-r--r-- | ui/base/win/foreground_helper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/base/win/foreground_helper.cc b/ui/base/win/foreground_helper.cc index b4f53b6..7283012 100644 --- a/ui/base/win/foreground_helper.cc +++ b/ui/base/win/foreground_helper.cc @@ -43,7 +43,7 @@ HRESULT ForegroundHelper::ForegroundHotKey(HWND window) { hotkey.type = INPUT_KEYBOARD; hotkey.ki.wVk = VK_F22; if (1 != SendInput(1, &hotkey, sizeof(hotkey))) { - LOG(WARNING) << "Failed to send input"; + LOG(WARNING) << "Failed to send input; GetLastError(): " << GetLastError(); return E_FAIL; } |