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

Issue 1692593002: Use showing_context_menu_ from RenderWidgetHostViewBase to avoid MouseLeave event on Context Menu (Closed)

Created:
4 years, 10 months ago by lanwei
Modified:
4 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use showing_context_menu_ from RenderWidgetHostViewBase to avoid MouseLeave event on Context Menu. In issue 1051613002, it creates a new variable showing_context_menu_ in RenderWidgetHostViewAura to decide when to stop mouse exited event to send to renderer. Since we have showing_context_menu_ in RenderWidgetHostViewBase, which is set to true when context menu opens, and false when the menu closes, we should just use it instead of having another similar variable in RenderWidgetHostViewAura. BUG=586043, 450138 Committed: https://crrev.com/eee68fae914198693c60c9691b53f25b338560e7 Cr-Commit-Position: refs/heads/master@{#375787}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make CanRendererHandleEvent const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -15 lines) Patch
M chrome/browser/mouseleave_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 chunks +1 line, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 4 chunks +2 lines, -9 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
lanwei
4 years, 10 months ago (2016-02-11 19:28:59 UTC) #10
tdresser
Non owner's LGTM.
4 years, 10 months ago (2016-02-11 20:07:16 UTC) #11
sadrul
lgtm Thank you! https://codereview.chromium.org/1692593002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1692593002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode810 content/browser/renderer_host/render_widget_host_view_aura.cc:810: if (showing_context_menu_) IsShowingContextMenu()
4 years, 10 months ago (2016-02-12 01:06:52 UTC) #12
sadrul
https://codereview.chromium.org/1692593002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1692593002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode799 content/browser/renderer_host/render_widget_host_view_aura.cc:799: bool selection_popup) { Oh, and while you are here, ...
4 years, 10 months ago (2016-02-12 15:30:12 UTC) #13
cpu_(ooo_6.6-7.5)
looks reasonable but I am a bit afraid you could break something on Windows. have ...
4 years, 10 months ago (2016-02-14 21:12:25 UTC) #14
ananta
lgtm
4 years, 10 months ago (2016-02-17 02:55:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692593002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692593002/20001
4 years, 10 months ago (2016-02-17 03:34:03 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-17 04:18:08 UTC) #20
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 04:20:27 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/eee68fae914198693c60c9691b53f25b338560e7
Cr-Commit-Position: refs/heads/master@{#375787}

Powered by Google App Engine
This is Rietveld 408576698