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

Issue 12529012: Context menu on views must show on mouse down for non-WIN. (Closed)

Created:
7 years, 9 months ago by varunjain
Modified:
7 years, 8 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

Context menu on views must show on mouse down for non-WIN. This is mostly a copy of https://chromiumcodereview.appspot.com/12395010 which was reverted due to a regression (https://code.google.com/p/chromium/issues/detail?id=189100). I have attempted to fix that regression here. BUG=189100, 179381 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192525 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192688

Patch Set 1 #

Patch Set 2 : Context menu on views must show on mouse down for non-WIN. #

Total comments: 4

Patch Set 3 : patch #

Total comments: 4

Patch Set 4 : patch #

Patch Set 5 : patch #

Patch Set 6 : patch #

Patch Set 7 : patch #

Total comments: 8

Patch Set 8 : patch #

Patch Set 9 : patch #

Patch Set 10 : patch #

Total comments: 10

Patch Set 11 : patch #

Total comments: 4

Patch Set 12 : patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -11 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/browser_action_view.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M ui/views/controls/menu/menu_controller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +24 lines, -2 lines 0 comments Download
M ui/views/view.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 4 chunks +28 lines, -3 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/root_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -1 line 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -2 lines 0 comments Download
A ui/views/widget/widget_deletion_observer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +37 lines, -0 lines 0 comments Download
A ui/views/widget/widget_deletion_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +32 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
varunjain
7 years, 9 months ago (2013-03-15 23:29:56 UTC) #1
varunjain
7 years, 9 months ago (2013-03-20 19:46:16 UTC) #2
sky
I think this means Widget::OnMouseEvent for ui::ET_MOUSE_PRESSED needs to deal with 'this' being dleeted as ...
7 years, 9 months ago (2013-03-20 21:35:53 UTC) #3
varunjain
Hi Scott.. I am not sure I understand your Widget::OnMouseEvent comment. How does the widget ...
7 years, 9 months ago (2013-03-20 22:05:52 UTC) #4
sky
On Wed, Mar 20, 2013 at 3:05 PM, <varunjain@chromium.org> wrote: > Hi Scott.. I am ...
7 years, 9 months ago (2013-03-20 23:42:15 UTC) #5
varunjain
On 2013/03/20 23:42:15, sky wrote: > On Wed, Mar 20, 2013 at 3:05 PM, <mailto:varunjain@chromium.org> ...
7 years, 9 months ago (2013-03-21 18:35:38 UTC) #6
sky
https://codereview.chromium.org/12529012/diff/15001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/12529012/diff/15001/ui/views/widget/widget.cc#newcode64 ui/views/widget/widget.cc:64: class PostMousePressedProcessor : public WidgetObserver { How about declaring ...
7 years, 9 months ago (2013-03-21 22:17:48 UTC) #7
varunjain
https://codereview.chromium.org/12529012/diff/15001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/12529012/diff/15001/ui/views/widget/widget.cc#newcode64 ui/views/widget/widget.cc:64: class PostMousePressedProcessor : public WidgetObserver { On 2013/03/21 22:17:48, ...
7 years, 9 months ago (2013-03-21 22:47:13 UTC) #8
sky
LGTM
7 years, 9 months ago (2013-03-22 04:01:56 UTC) #9
varunjain
On 2013/03/22 04:01:56, sky wrote: > LGTM Hi Scott, Made some more changes that requires ...
7 years, 8 months ago (2013-03-27 23:23:25 UTC) #10
sky
I'm still of the opinion we should delay. I added comments to the bug.
7 years, 8 months ago (2013-03-28 16:21:10 UTC) #11
varunjain
On 2013/03/28 16:21:10, sky wrote: > I'm still of the opinion we should delay. I ...
7 years, 8 months ago (2013-04-04 20:08:00 UTC) #12
sky
https://codereview.chromium.org/12529012/diff/42001/chrome/browser/ui/views/browser_action_view.cc File chrome/browser/ui/views/browser_action_view.cc (left): https://codereview.chromium.org/12529012/diff/42001/chrome/browser/ui/views/browser_action_view.cc#oldcode317 chrome/browser/ui/views/browser_action_view.cc:317: // See comments in MenuButton::Activate() as to why this ...
7 years, 8 months ago (2013-04-04 20:36:04 UTC) #13
varunjain
https://codereview.chromium.org/12529012/diff/42001/chrome/browser/ui/views/browser_action_view.cc File chrome/browser/ui/views/browser_action_view.cc (left): https://codereview.chromium.org/12529012/diff/42001/chrome/browser/ui/views/browser_action_view.cc#oldcode317 chrome/browser/ui/views/browser_action_view.cc:317: // See comments in MenuButton::Activate() as to why this ...
7 years, 8 months ago (2013-04-04 21:02:08 UTC) #14
sky
LGTM
7 years, 8 months ago (2013-04-04 22:56:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varunjain@chromium.org/12529012/50001
7 years, 8 months ago (2013-04-04 23:16:34 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=99776
7 years, 8 months ago (2013-04-05 00:31:44 UTC) #17
varunjain
On 2013/04/05 00:31:44, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 8 months ago (2013-04-05 05:36:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varunjain@chromium.org/12529012/60003
7 years, 8 months ago (2013-04-05 05:36:36 UTC) #19
commit-bot: I haz the power
Change committed as 192525
7 years, 8 months ago (2013-04-05 07:43:08 UTC) #20
tkent
On 2013/04/05 07:43:08, I haz the power (commit-bot) wrote: > Change committed as 192525 This ...
7 years, 8 months ago (2013-04-05 09:52:07 UTC) #21
varunjain
@sky: made some more changes to fix build failures. PTAL.
7 years, 8 months ago (2013-04-05 17:19:10 UTC) #22
sky
https://chromiumcodereview.appspot.com/12529012/diff/84003/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc (right): https://chromiumcodereview.appspot.com/12529012/diff/84003/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc#newcode85 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc:85: base::TimeDelta::FromMilliseconds(250));\ This is fragile, and it adds more time ...
7 years, 8 months ago (2013-04-05 17:23:37 UTC) #23
varunjain
https://chromiumcodereview.appspot.com/12529012/diff/84003/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc (right): https://chromiumcodereview.appspot.com/12529012/diff/84003/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc#newcode85 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc:85: base::TimeDelta::FromMilliseconds(250));\ On 2013/04/05 17:23:37, sky wrote: > This is ...
7 years, 8 months ago (2013-04-05 18:01:44 UTC) #24
sky
LGTM https://chromiumcodereview.appspot.com/12529012/diff/99001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://chromiumcodereview.appspot.com/12529012/diff/99001/ui/views/controls/menu/menu_controller.cc#newcode63 ui/views/controls/menu/menu_controller.cc:63: static int g_context_menu_selection_hold_time_ms = 200; This isn't global. ...
7 years, 8 months ago (2013-04-05 19:41:36 UTC) #25
varunjain
https://chromiumcodereview.appspot.com/12529012/diff/99001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://chromiumcodereview.appspot.com/12529012/diff/99001/ui/views/controls/menu/menu_controller.cc#newcode63 ui/views/controls/menu/menu_controller.cc:63: static int g_context_menu_selection_hold_time_ms = 200; On 2013/04/05 19:41:36, sky ...
7 years, 8 months ago (2013-04-05 21:58:42 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varunjain@chromium.org/12529012/61018
7 years, 8 months ago (2013-04-05 21:58:58 UTC) #27
commit-bot: I haz the power
7 years, 8 months ago (2013-04-06 01:46:05 UTC) #28
Message was sent while issue was closed.
Change committed as 192688

Powered by Google App Engine
This is Rietveld 408576698