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

Issue 50017: Issue 21268: The Remake... (Closed)

Created:
11 years, 9 months ago by Itai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Issue 21268: The RemakeSee http://codereview.chromium.org/21268 for the original issue which was partially reverted due to a possible regression. Issue 8819 was created to track the part of the original fix which was reverted.A double-click come as an event which follows a single-click. The core of this change is to makesure that a double-click arrives at the object which handled the single-click which preceeded it.If it does not, then the double-click is transformed into a single-click at the dispatch level.The tricky part is that a single-click and the double-click which follows it may not both be clientor non-client. So, all double-clicks (client or non-client) are now centrally handled and replacedwhen needed by second single-clicks.Note that the behavior which was reverted was to discard a double-click rather than reducing it toa single-click. The bug filed as a regression involved using a double-middle-click as two single-clicks when destroying compressed tabs sequentially.BUG=8819 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12590

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Total comments: 9

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -25 lines) Patch
M chrome/views/event.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M chrome/views/view.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/views/widget/root_view.h View 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/views/widget/root_view.cc View 1 2 5 chunks +34 lines, -6 lines 0 comments Download
M chrome/views/widget/widget_win.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/views/widget/widget_win.cc View 1 9 chunks +19 lines, -14 lines 0 comments Download
M chrome/views/window/window_win.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
idanan
Hi Peter, This code should be familiar to you and is a replacement for the ...
11 years, 9 months ago (2009-03-19 17:39:41 UTC) #1
Peter Kasting
I've changed reviewers to Ben since I think he has a better idea of what ...
11 years, 9 months ago (2009-03-19 17:54:00 UTC) #2
Ben Goodger (Google)
OK... I'm sufficiently scared. What bug are you fixing? The one you link to doesn't ...
11 years, 9 months ago (2009-03-25 18:49:55 UTC) #3
Ben Goodger (Google)
The question I have then is why is the close button treated as non-client? This ...
11 years, 9 months ago (2009-03-25 19:37:55 UTC) #4
Ben Goodger (Google)
http://codereview.chromium.org/50017/diff/1/7 File chrome/views/event.h (right): http://codereview.chromium.org/50017/diff/1/7#newcode68 Line 68: void SetFlags(int flags) { unix_hacker. http://codereview.chromium.org/50017/diff/1/5 File chrome/views/view.cc ...
11 years, 9 months ago (2009-03-25 20:49:38 UTC) #5
idanan
All Done. The static object was turned into a member variable, so that it is ...
11 years, 9 months ago (2009-03-26 19:04:38 UTC) #6
idanan
Thanks for the feedback. Everything done as requested.
11 years, 9 months ago (2009-03-26 19:05:35 UTC) #7
Ben Goodger (Google)
http://codereview.chromium.org/50017/diff/4001/4005 File chrome/views/widget/root_view.cc (right): http://codereview.chromium.org/50017/diff/4001/4005#newcode283 Line 283: last_click_handler_ = 0; NULL. http://codereview.chromium.org/50017/diff/4001/4005#newcode366 Line 366: last_click_handler_ ...
11 years, 9 months ago (2009-03-26 19:09:53 UTC) #8
idanan
http://codereview.chromium.org/50017/diff/4001/4005 File chrome/views/widget/root_view.cc (right): http://codereview.chromium.org/50017/diff/4001/4005#newcode283 Line 283: last_click_handler_ = 0; On 2009/03/26 19:09:53, Ben Goodger ...
11 years, 9 months ago (2009-03-26 19:15:47 UTC) #9
Peter Kasting
http://codereview.chromium.org/50017/diff/4001/4002 File chrome/views/widget/widget_win.cc (right): http://codereview.chromium.org/50017/diff/4001/4002#newcode724 Line 724: View::ConvertPointToView(NULL, root_view_.get(), &converted_point); Yes, that's correct. This usage ...
11 years, 9 months ago (2009-03-26 19:19:44 UTC) #10
Ben Goodger (Google)
11 years, 9 months ago (2009-03-26 19:23:27 UTC) #11
LGTM then

Powered by Google App Engine
This is Rietveld 408576698