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

Issue 1471993002: Resume cursor blinking on closing context menu (Closed)

Created:
5 years, 1 month ago by Changwan Ryu
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Resume cursor blinking on closing context menu Currently, we suspend cursor blinking on mouse press and resume it on mouse release. However, in the case of launching a context menu, we show context menu immediately on mouse right click press, and the following key events are consumed on the context menu, so mouse release event does not happen. Thus, cursor blinking does not get resumed after context menu gets dismissed. The rationale for keep suspending caret blinking while showing context menu, I think, is that once context menu shows, key and mouse events will be consumed on the context menu on linux. We keep that behavior, and de-suspend caret blinking when context menu gets closed. On Linux, we will resume caret blinking in RenderFrameImpl::OnContextMenuClosed(). On Android, there are two different paths to show context menu: - paste popup menu (long press on text, on chrome and webview) - context menu (long press on link, only on chrome) So we will call WebContents#onContextMenuClosed() from both paths. BUG=554683 Committed: https://crrev.com/cbfdec91085fba9e23b865c0db6cac2577d3ae44 Cr-Commit-Position: refs/heads/master@{#363360}

Patch Set 1 #

Patch Set 2 : resume cursor blinking even when showPastePopup fails #

Total comments: 2

Patch Set 3 : added comment in test #

Total comments: 12

Patch Set 4 : robusted onContextMenuClosed() and fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -32 lines) Patch
M android_webview/native/aw_web_contents_view_delegate.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java View 1 2 3 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/context_menu_helper.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/context_menu_helper.cc View 1 2 3 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/android/tab_contents/chrome_web_contents_view_delegate_android.cc View 1 2 3 1 chunk +11 lines, -10 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/FloatingPastePopupMenu.java View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/LegacyPastePopupMenu.java View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java View 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 3 chunks +21 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
Changwan Ryu
aelias@, could you take an initial look? does this make sense to you?
5 years, 1 month ago (2015-11-24 01:59:41 UTC) #2
aelias_OOO_until_Jul13
lgtm, adding OWNERS: - tedchoc@ for Android browser-side code - sievers@ for content/renderer - rbyers@ ...
5 years ago (2015-11-25 03:48:46 UTC) #4
Changwan Ryu
https://codereview.chromium.org/1471993002/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/1471993002/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode1655 third_party/WebKit/Source/web/tests/WebViewTest.cpp:1655: mouseEvent.type = WebInputEvent::MouseDown; On 2015/11/25 03:48:46, aelias wrote: > ...
5 years ago (2015-11-26 00:01:47 UTC) #5
Rick Byers
Interesting, thanks! I added some more comments on the bug based on some experiments. I ...
5 years ago (2015-11-27 02:44:49 UTC) #6
no sievers
https://codereview.chromium.org/1471993002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/1471993002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode1588 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:1588: public void onContextMenuClosed(Menu menu) { I can't find where ...
5 years ago (2015-11-30 21:25:00 UTC) #7
Ted C
https://codereview.chromium.org/1471993002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/1471993002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode1588 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:1588: public void onContextMenuClosed(Menu menu) { Hmm...it is sad that ...
5 years ago (2015-11-30 21:30:49 UTC) #8
Changwan Ryu
https://codereview.chromium.org/1471993002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/1471993002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode1588 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:1588: public void onContextMenuClosed(Menu menu) { On 2015/11/30 21:25:00, sievers ...
5 years ago (2015-12-01 05:54:01 UTC) #9
Changwan Ryu
adding boliu@ for android_webview/ change
5 years ago (2015-12-02 02:10:42 UTC) #11
Changwan Ryu
On 2015/12/02 02:10:42, Changwan Ryu wrote: > adding boliu@ for android_webview/ change I mean adding ...
5 years ago (2015-12-02 02:12:05 UTC) #12
Ted C
lgtm
5 years ago (2015-12-02 04:19:27 UTC) #13
sgurun-gerrit only
On 2015/12/02 04:19:27, Ted C wrote: > lgtm lgtm
5 years ago (2015-12-02 22:22:25 UTC) #14
Changwan Ryu
On 2015/12/02 22:22:25, sgurun wrote: > On 2015/12/02 04:19:27, Ted C wrote: > > lgtm ...
5 years ago (2015-12-05 00:19:45 UTC) #15
no sievers
On 2015/12/05 00:19:45, Changwan Ryu wrote: > On 2015/12/02 22:22:25, sgurun wrote: > > On ...
5 years ago (2015-12-05 00:51:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471993002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471993002/60001
5 years ago (2015-12-06 06:28:55 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-06 10:06:09 UTC) #20
commit-bot: I haz the power
5 years ago (2015-12-06 10:07:07 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cbfdec91085fba9e23b865c0db6cac2577d3ae44
Cr-Commit-Position: refs/heads/master@{#363360}

Powered by Google App Engine
This is Rietveld 408576698