Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Issue 10562025: aura: Fix WidgetFocusChangeListener::OnNativeFocusChange(). (Closed)

Created:
8 years, 6 months ago by Daniel Erat
Modified:
8 years, 6 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, jochen+watch-content_chromium.org, ben+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

aura: Fix WidgetFocusChangeListener::OnNativeFocusChange(). In Aura, we were passing the newly-focused view through views::WidgetFocusManager::OnWidgetFocusEvent()'s "focused_before" parameter. This made us not close extension popups when they lost the focus. (Note that a popup still doesn't get closed upon clicking outside of the popup on the desktop, presumably because the popup retains the focus in Ash.) BUG=132697 TEST=added, also manual testing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142858

Patch Set 1 #

Patch Set 2 : avoid crash in test #

Patch Set 3 : merge #

Patch Set 4 : avoid recreating input method during destruction #

Patch Set 5 : merge again #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -25 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/demo/demo_main.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/focus_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/test_window_delegate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/test_window_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window_delegate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window_unittest.cc View 1 2 2 chunks +40 lines, -0 lines 0 comments Download
M ui/views/focus/focus_manager_test.h View 4 chunks +28 lines, -0 lines 0 comments Download
M ui/views/focus/focus_manager_test.cc View 4 chunks +32 lines, -1 line 0 comments Download
M ui/views/focus/focus_manager_unittest.cc View 1 2 3 3 chunks +39 lines, -0 lines 1 comment Download
M ui/views/widget/native_widget_aura.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 3 chunks +16 lines, -5 lines 0 comments Download
M ui/views/widget/native_widget_win.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/native_widget_win.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Daniel Erat
8 years, 6 months ago (2012-06-18 16:39:25 UTC) #1
Ben Goodger (Google)
lgtm
8 years, 6 months ago (2012-06-18 16:56:44 UTC) #2
Daniel Erat
https://chromiumcodereview.appspot.com/10562025/diff/6004/ui/views/focus/focus_manager_unittest.cc File ui/views/focus/focus_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/10562025/diff/6004/ui/views/focus/focus_manager_unittest.cc#newcode122 ui/views/focus/focus_manager_unittest.cc:122: TEST_F(FocusManagerTest, WidgetFocusChangeListener) { This test times out on non-Aura ...
8 years, 6 months ago (2012-06-18 19:25:15 UTC) #3
Ben Goodger (Google)
child HWNDs can receive focus (and indeed must be for key events to be received ...
8 years, 6 months ago (2012-06-18 20:32:09 UTC) #4
Daniel Erat
Thanks for the explanation. I think that the test failure that I saw was caused ...
8 years, 6 months ago (2012-06-18 21:42:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10562025/6004
8 years, 6 months ago (2012-06-18 21:44:49 UTC) #6
commit-bot: I haz the power
8 years, 6 months ago (2012-06-18 23:27:42 UTC) #7
Change committed as 142858

Powered by Google App Engine
This is Rietveld 408576698