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

Issue 2627093003: Reuse context menu in StaticHTMLViewController (Closed)

Created:
3 years, 11 months ago by Olivier
Modified:
3 years, 11 months ago
CC:
chromium-reviews, pkl (ping after 24h if needed), jam, noyau+watch_chromium.org, darin-cc_chromium.org, marq+watch_chromium.org, stkhapugin, sdefresne+watch_chromium.org, noyau (Ping after 24h)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reuse context menu in StaticHTMLViewController Create a CRWContextMenuController using the logic from CRWWebController. Reuse this class for StaticHTMLViewController. BUG=679818, 679793 Review-Url: https://codereview.chromium.org/2627093003 Cr-Commit-Position: refs/heads/master@{#443861} Committed: https://chromium.googlesource.com/chromium/src/+/d9ca613db4a8616806d3447db5651870ed7c43fe

Patch Set 1 #

Patch Set 2 : clean #

Patch Set 3 : fix DEPS #

Total comments: 35

Patch Set 4 : cleaning #

Total comments: 34

Patch Set 5 : feedback #

Total comments: 27

Patch Set 6 : other feedback #

Total comments: 2

Patch Set 7 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+538 lines, -273 lines) Patch
M ios/chrome/browser/ui/static_content/static_html_view_controller.mm View 1 2 3 4 4 chunks +17 lines, -2 lines 0 comments Download
M ios/web/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
A ios/web/public/web_state/ui/crw_context_menu_delegate.h View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
M ios/web/public/web_state/ui/crw_native_content.h View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M ios/web/public/web_view_creation_util.h View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
A ios/web/web_state/ui/crw_context_menu_controller.h View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A ios/web/web_state/ui/crw_context_menu_controller.mm View 1 2 3 4 5 1 chunk +346 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 6 15 chunks +35 lines, -269 lines 0 comments Download
M ios/web/web_state/web_view_internal_creation_util.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M ios/web/web_state/web_view_internal_creation_util.mm View 1 2 3 4 5 3 chunks +25 lines, -1 line 0 comments Download
M ios/web/web_view_creation_util.mm View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 31 (8 generated)
Olivier
3 years, 11 months ago (2017-01-11 18:04:35 UTC) #2
Olivier
Hi eugenebut, I am not sure the place I put the new class is the ...
3 years, 11 months ago (2017-01-11 18:11:50 UTC) #3
Eugene But (OOO till 7-30)
On 2017/01/11 18:11:50, Olivier Robin wrote: > Hi eugenebut, > > I am not sure ...
3 years, 11 months ago (2017-01-11 19:57:20 UTC) #4
Olivier
On 2017/01/11 19:57:20, Eugene But wrote: > On 2017/01/11 18:11:50, Olivier Robin wrote: > > ...
3 years, 11 months ago (2017-01-11 20:02:16 UTC) #5
Eugene But (OOO till 7-30)
On 2017/01/11 20:02:16, Olivier Robin wrote: > On 2017/01/11 19:57:20, Eugene But wrote: > > ...
3 years, 11 months ago (2017-01-11 21:28:23 UTC) #6
Eugene But (OOO till 7-30)
On 2017/01/11 21:28:23, Eugene But wrote: > On 2017/01/11 20:02:16, Olivier Robin wrote: > > ...
3 years, 11 months ago (2017-01-11 21:50:16 UTC) #7
Eugene But (OOO till 7-30)
On 2017/01/11 21:50:16, Eugene But wrote: > On 2017/01/11 21:28:23, Eugene But wrote: > > ...
3 years, 11 months ago (2017-01-12 01:26:28 UTC) #8
Olivier
On 2017/01/12 01:26:28, Eugene But wrote: > On 2017/01/11 21:50:16, Eugene But wrote: > > ...
3 years, 11 months ago (2017-01-12 08:25:54 UTC) #10
Eugene But (OOO till 7-30)
On 2017/01/12 08:25:54, Olivier Robin wrote: > On 2017/01/12 01:26:28, Eugene But wrote: > > ...
3 years, 11 months ago (2017-01-12 15:54:35 UTC) #11
jif
https://codereview.chromium.org/2627093003/diff/40001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (right): https://codereview.chromium.org/2627093003/diff/40001/ios/chrome/browser/ui/browser_view_controller.mm#newcode297 ios/chrome/browser/ui/browser_view_controller.mm:297: ContextMenuDelegate, Does it make sense to use the CRWWebStateDelegate ...
3 years, 11 months ago (2017-01-12 17:13:12 UTC) #12
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2627093003/diff/40001/ios/chrome/browser/ui/context_menu/context_menu_delegate.h File ios/chrome/browser/ui/context_menu/context_menu_delegate.h (right): https://codereview.chromium.org/2627093003/diff/40001/ios/chrome/browser/ui/context_menu/context_menu_delegate.h#newcode16 ios/chrome/browser/ui/context_menu/context_menu_delegate.h:16: - (BOOL)webState:(web::WebState*)webState First argument in Objective-C delegate method is ...
3 years, 11 months ago (2017-01-13 07:16:27 UTC) #13
Olivier
Thanks. PTAL https://codereview.chromium.org/2627093003/diff/40001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (right): https://codereview.chromium.org/2627093003/diff/40001/ios/chrome/browser/ui/browser_view_controller.mm#newcode297 ios/chrome/browser/ui/browser_view_controller.mm:297: ContextMenuDelegate, On 2017/01/12 17:13:12, jif wrote: > ...
3 years, 11 months ago (2017-01-13 10:20:26 UTC) #15
Eugene But (OOO till 7-30)
Generally this LG, have a couple of implementation comments. Also could you please write some ...
3 years, 11 months ago (2017-01-13 16:19:42 UTC) #16
Olivier
Thanks ! PTAL https://codereview.chromium.org/2627093003/diff/80001/ios/chrome/browser/ui/static_content/static_html_view_controller.mm File ios/chrome/browser/ui/static_content/static_html_view_controller.mm (right): https://codereview.chromium.org/2627093003/diff/80001/ios/chrome/browser/ui/static_content/static_html_view_controller.mm#newcode215 ios/chrome/browser/ui/static_content/static_html_view_controller.mm:215: #pragma mark CRWContextMenuDelegate implementation On 2017/01/13 ...
3 years, 11 months ago (2017-01-13 18:08:59 UTC) #17
Olivier
On 2017/01/13 18:08:59, Olivier Robin wrote: > Thanks ! > PTAL > > https://codereview.chromium.org/2627093003/diff/80001/ios/chrome/browser/ui/static_content/static_html_view_controller.mm > ...
3 years, 11 months ago (2017-01-13 18:16:56 UTC) #18
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h File ios/web/public/web_state/ui/crw_context_menu_delegate.h (right): https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h#newcode19 ios/web/public/web_state/ui/crw_context_menu_delegate.h:19: // YES must be returned within 0.05 second. Is ...
3 years, 11 months ago (2017-01-13 18:23:42 UTC) #19
Eugene But (OOO till 7-30)
On 2017/01/13 18:23:42, Eugene But wrote: > https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h > File ios/web/public/web_state/ui/crw_context_menu_delegate.h (right): > > https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h#newcode19 ...
3 years, 11 months ago (2017-01-13 18:24:57 UTC) #20
Olivier
Thanks. I will add unittests on Monday in another CL. https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h File ios/web/public/web_state/ui/crw_context_menu_delegate.h (right): https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h#newcode19 ...
3 years, 11 months ago (2017-01-13 18:49:56 UTC) #22
Eugene But (OOO till 7-30)
lgtm Thank you for making WebController smaller. https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h File ios/web/public/web_state/ui/crw_context_menu_delegate.h (right): https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h#newcode19 ios/web/public/web_state/ui/crw_context_menu_delegate.h:19: // YES ...
3 years, 11 months ago (2017-01-13 19:00:33 UTC) #23
Olivier
Done. Thanks! https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h File ios/web/public/web_state/ui/crw_context_menu_delegate.h (right): https://codereview.chromium.org/2627093003/diff/100001/ios/web/public/web_state/ui/crw_context_menu_delegate.h#newcode19 ios/web/public/web_state/ui/crw_context_menu_delegate.h:19: // YES must be returned within 0.05 ...
3 years, 11 months ago (2017-01-16 08:31:05 UTC) #24
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/2627093003/160001
3 years, 11 months ago (2017-01-16 08:31:27 UTC) #27
jif
lgtm
3 years, 11 months ago (2017-01-16 08:47:21 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 09:30:40 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/d9ca613db4a8616806d3447db565...

Powered by Google App Engine
This is Rietveld 408576698