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

Issue 11273098: Relanding the EventTarget fixes for Aura (Ash) as the previous attempt was reverted due to interact… (Closed)

Created:
8 years, 1 month ago by ananta
Modified:
8 years, 1 month ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Relanding the EventTarget fixes for Aura (Ash) as the previous attempt was reverted due to interactive test failures on the linux_chromeos builder. Disabled the failing BookmarkBarViewTest8.DNDBackToOriginatingMenu test on AURA for now and logged a bug http://code.google.com/p/chromium/issues/detail?id=158564&thanks=158564 to track this. Will work on that in a subsequent change. Register a separate default ui::EventTarget for Aura (Ash) to ensure that it does not interfere with the event handling in desktop chrome in Aura. On Windows 8 in chrome metro mode we have a desktop chrome process which runs as a server to the viewer process in Metro. Reusing the default EventTarget across both environments causes desktop chrome to crash as a number of EventFilters registered on the default EventTarget get called twice. The Ash specific EventTarget is implemented by the Ash::Shell class. The RootWindow in its GetParentTarget implementation delegates this call to the EventClient implementation if one exists and if not it returns the default Aura::Env interface. The EventClient interface is implemented by Ash and has been updated to return the default EventTarget via the new method GetToplevelEventTarget Fixes bug http://code.google.com/p/chromium/issues/detail?id=158105 BUG=158105 R=ben Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165026

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -5 lines) Patch
M ash/shell.h View 3 chunks +7 lines, -1 line 0 comments Download
M ash/shell.cc View 4 2 chunks +10 lines, -2 lines 0 comments Download
M ash/wm/event_client_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/event_client_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M ui/aura/client/event_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/root_window.cc View 1 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M ui/aura/root_window_unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Ben Goodger (Google)
https://codereview.chromium.org/11273098/diff/11010/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/11273098/diff/11010/ash/shell.cc#newcode736 ash/shell.cc:736: aura::client::SetEventClient(root, event_client_.get()); this should probably be done in rootwindowcontroller. ...
8 years, 1 month ago (2012-10-30 02:10:24 UTC) #1
Ben Goodger (Google)
It looks like code in chrome/test/base/view_event_test_base.cc is hurting you. That code explicitly sets EventClient to ...
8 years, 1 month ago (2012-10-30 02:25:38 UTC) #2
ananta
On 2012/10/30 02:25:38, Ben Goodger (Google) wrote: > It looks like code in chrome/test/base/view_event_test_base.cc is ...
8 years, 1 month ago (2012-10-30 17:52:06 UTC) #3
Ben Goodger (Google)
8 years, 1 month ago (2012-10-30 22:02:17 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698