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

Issue 5700003: Remove undisplayed tabs from the views hierarchy because event delivery doesn't respect z-order. (Closed)

Created:
10 years ago by Alex Nicolaou
Modified:
9 years ago
Reviewers:
sky
CC:
chromium-reviews, Ben Goodger (Google), sadrul, rjkroege
Visibility:
Public.

Description

Remove undisplayed tabs from the views hierarchy because event delivery doesn't respect z-order. BUG=none TEST=manually; open two tabs, switch between them and touch items Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69802

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M chrome/browser/ui/views/tab_contents/tab_contents_container.cc View 1 chunk +3 lines, -0 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
Alex Nicolaou
Fix event delivery for multiple instances of TabContentsViewViews.
10 years ago (2010-12-10 05:49:14 UTC) #1
sky
http://codereview.chromium.org/5700003/diff/1/chrome/browser/ui/views/tab_contents/tab_contents_container.cc File chrome/browser/ui/views/tab_contents/tab_contents_container.cc (right): http://codereview.chromium.org/5700003/diff/1/chrome/browser/ui/views/tab_contents/tab_contents_container.cc#newcode43 chrome/browser/ui/views/tab_contents/tab_contents_container.cc:43: RemoveChildView(v); All these ifdefs are making this class unreadable ...
10 years ago (2010-12-10 16:37:21 UTC) #2
Ben Goodger (Google)
fyi sky and I discussed this and agreed that while awkward it was better than ...
10 years ago (2010-12-10 17:58:34 UTC) #3
Alex Nicolaou
I really don't want to duplicate the entire class for the sake of 10 lines. ...
10 years ago (2010-12-10 17:58:34 UTC) #4
Ben Goodger (Google)
You don't need to duplicate the class... just move methods that are highly specialized to ...
10 years ago (2010-12-10 17:59:09 UTC) #5
Alex Nicolaou
OK. Can I commit this two-line fix and follow up with a refactor CL? (If ...
10 years ago (2010-12-10 18:03:10 UTC) #6
sky
10 years ago (2010-12-10 18:20:07 UTC) #7
As long you cleanup later on, LGTM

http://codereview.chromium.org/5700003/diff/1/chrome/browser/ui/views/tab_con...
File chrome/browser/ui/views/tab_contents/tab_contents_container.cc (right):

http://codereview.chromium.org/5700003/diff/1/chrome/browser/ui/views/tab_con...
chrome/browser/ui/views/tab_contents/tab_contents_container.cc:42: views::View
*v = static_cast<TabContentsViewViews*>(tab_contents_->view());
nit: View* v.

Powered by Google App Engine
This is Rietveld 408576698