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

Issue 2894043002: Add machinery to show touch editing context menus in OOPIFs. (Closed)

Created:
3 years, 7 months ago by wjmaclean
Modified:
3 years, 6 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org, jam, dcheng, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org, site-isolation-reviews_chromium.org, yosin_UTC9, amaralp
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add machinery to show touch editing context menus in OOPIFs. This CL adds the ability to WebFrameWidgetBase to show context menus for touch-selection editing. It's based on the existing implementation via WebViewImpl::ShowContextMenu(), but moves the implementation to WebFrameWidgetBase, with access via a single virtual function on WebWidget. BUG=470662 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2894043002 Cr-Commit-Position: refs/heads/master@{#475125} Committed: https://chromium.googlesource.com/chromium/src/+/ee244e0d9db7e2d348cef7f5b979b51336e18008

Patch Set 1 #

Patch Set 2 : Route all context menus via RenderWidget. #

Patch Set 3 : Remove WVI call to WFWI. #

Total comments: 4

Patch Set 4 : Restore WVI access to widget's ShowContextMenu(). #

Patch Set 5 : Rebase to master@{#474649} + Issue 2883653002. #

Patch Set 6 : Convert back to ViewMsg. #

Patch Set 7 : Rebase to master@{#474999}. #

Total comments: 1

Patch Set 8 : Add DCHECK, rebase test. #

Total comments: 2

Patch Set 9 : Don't fall back to mainframe, formatting. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -39 lines) Patch
M content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 2 chunks +0 lines, -15 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/WebFrameWidgetBase.cpp View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -10 lines 1 comment Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 3 4 5 6 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebWidget.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 47 (28 generated)
wjmaclean
This won't land until after https://codereview.chromium.org/2883653002/, but I suspect we can start review in parallel. ...
3 years, 7 months ago (2017-05-23 17:51:08 UTC) #2
wjmaclean
This won't land until after https://codereview.chromium.org/2883653002/, but I suspect we can start review in parallel. ...
3 years, 7 months ago (2017-05-23 20:51:52 UTC) #5
EhsanK
https://codereview.chromium.org/2894043002/diff/40001/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc File content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc (right): https://codereview.chromium.org/2894043002/diff/40001/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc#newcode187 content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc:187: host->Send(new FrameMsg_ShowContextMenu(host->GetRoutingID(), Just curious if host->ShowContextMenuAtPoint() would also work? ...
3 years, 7 months ago (2017-05-23 22:31:23 UTC) #7
wjmaclean
https://codereview.chromium.org/2894043002/diff/40001/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc File content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc (right): https://codereview.chromium.org/2894043002/diff/40001/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc#newcode187 content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc:187: host->Send(new FrameMsg_ShowContextMenu(host->GetRoutingID(), On 2017/05/23 22:31:23, EhsanK wrote: > Just ...
3 years, 7 months ago (2017-05-24 13:05:52 UTC) #8
EhsanK
On 2017/05/24 13:05:52, wjmaclean wrote: > https://codereview.chromium.org/2894043002/diff/40001/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc > File > content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc > (right): > > ...
3 years, 7 months ago (2017-05-24 14:12:46 UTC) #9
wjmaclean
kenrb@ - could you take a look please? It's much simpler than it's size would ...
3 years, 6 months ago (2017-05-25 16:14:54 UTC) #10
wjmaclean
bokan@ - did you want to look at the Blink parts of this? I noticed ...
3 years, 6 months ago (2017-05-25 16:39:09 UTC) #11
wjmaclean
bokan@ - did you want to look at the Blink parts of this? I noticed ...
3 years, 6 months ago (2017-05-25 19:42:38 UTC) #13
kenrb
This is fine, except I don't agree with changing it from a ViewMsg_ to a ...
3 years, 6 months ago (2017-05-26 01:43:53 UTC) #19
wjmaclean
On 2017/05/26 01:43:53, kenrb wrote: > This is fine, except I don't agree with changing ...
3 years, 6 months ago (2017-05-26 12:02:52 UTC) #21
Avi (use Gerrit)
lgtm
3 years, 6 months ago (2017-05-26 14:17:13 UTC) #27
bokan
lgtm +cc: yosin@, amaralp@ as FYI https://codereview.chromium.org/2894043002/diff/120001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2894043002/diff/120001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3506 third_party/WebKit/Source/web/WebViewImpl.cpp:3506: // If MainFrameImpl() ...
3 years, 6 months ago (2017-05-26 14:41:58 UTC) #30
bokan
+cc: yosin@, amaralp@ as FYI (for real this time)
3 years, 6 months ago (2017-05-26 14:43:27 UTC) #31
dcheng
(I know rbyers is looking at this CL now, but going to leave a few ...
3 years, 6 months ago (2017-05-26 17:18:46 UTC) #38
wjmaclean
dcheng@ - comments addressed, ptal?
3 years, 6 months ago (2017-05-26 18:04:54 UTC) #39
dcheng
https://codereview.chromium.org/2894043002/diff/160001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2894043002/diff/160001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3508 third_party/WebKit/Source/web/WebViewImpl.cpp:3508: MainFrameImpl()->FrameWidget()->ShowContextMenu(source_type); This frame widget is actually a WebViewFrameWidget. Since ...
3 years, 6 months ago (2017-05-26 18:22:28 UTC) #40
dcheng
It's been pointed out to me that I can't read, and that this patch in ...
3 years, 6 months ago (2017-05-26 18:34:29 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2894043002/160001
3 years, 6 months ago (2017-05-26 18:36:16 UTC) #44
commit-bot: I haz the power
3 years, 6 months ago (2017-05-26 21:06:27 UTC) #47
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/ee244e0d9db7e2d348cef7f5b979...

Powered by Google App Engine
This is Rietveld 408576698