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

Issue 1313553006: Implement "Look Up In Dictionary" context menu item asynchronously. (Closed)

Created:
5 years, 3 months ago by Shu Chen
Modified:
5 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_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

Implement "Look Up In Dictionary" context menu item asynchronously. (OS X) Reduces the number of callers of the synchronous IPC in TextInputClientMac::GetAttributedSubstringFromRange() (so that eventually we can remove it). BUG=121917 TEST=Verified "Look Up in Dictionary" by context menu feature works well. Committed: https://crrev.com/cabb6815f85f0e6297a55eb313a8e11373e2da9e Cr-Commit-Position: refs/heads/master@{#347306}

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : separated cl. #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : addressed asvitkine@'s comments. #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -32 lines) Patch
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm View 1 2 3 4 1 chunk +2 lines, -28 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
Shu Chen
asvitkine@ for the overall Mac related changes. palmer@ for owners of text_input_client_messages.h. sievers@ for owners ...
5 years, 3 months ago (2015-09-01 05:18:17 UTC) #2
Shu Chen
I'm wondering it worths to write up a test for attributedSubstringForProposedRange & ShowLookUpDictionary methods, and ...
5 years, 3 months ago (2015-09-01 05:19:42 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/1313553006/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.h File content/browser/renderer_host/render_widget_host_view_mac.h (right): https://codereview.chromium.org/1313553006/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.h#newcode211 content/browser/renderer_host/render_widget_host_view_mac.h:211: - (void) ShowLookUpDictionary:(NSPoint)point; Nit: Use objc naming convention please. ...
5 years, 3 months ago (2015-09-01 16:27:03 UTC) #4
palmer
https://codereview.chromium.org/1313553006/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/1313553006/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2927 content/browser/renderer_host/render_widget_host_view_mac.mm:2927: expected_range = gfx::Range(offset, offset + expected_text->size()); How do you ...
5 years, 3 months ago (2015-09-01 18:59:12 UTC) #5
Shu Chen
https://codereview.chromium.org/1313553006/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.h File content/browser/renderer_host/render_widget_host_view_mac.h (right): https://codereview.chromium.org/1313553006/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.h#newcode211 content/browser/renderer_host/render_widget_host_view_mac.h:211: - (void) ShowLookUpDictionary:(NSPoint)point; On 2015/09/01 16:27:03, Alexei Svitkine wrote: ...
5 years, 3 months ago (2015-09-02 03:35:43 UTC) #6
Shu Chen
According to Alexei's comment, I've separated this cl into 3 smaller CLs. - This cl ...
5 years, 3 months ago (2015-09-02 05:00:50 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/1313553006/diff/60001/content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm File content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm (left): https://codereview.chromium.org/1313553006/diff/60001/content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm#oldcode33 content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm:33: // http://crbug.com/152438 Nit: I guess triple-finger tap also doesn't ...
5 years, 3 months ago (2015-09-02 15:10:25 UTC) #8
palmer
LGTM. You could clean up the CL description a bit. Try something like this, perhaps: ...
5 years, 3 months ago (2015-09-02 20:06:43 UTC) #9
Shu Chen
On 2015/09/02 20:06:43, palmer wrote: > LGTM. > > You could clean up the CL ...
5 years, 3 months ago (2015-09-03 14:20:07 UTC) #10
Shu Chen
https://codereview.chromium.org/1313553006/diff/60001/content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm File content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm (left): https://codereview.chromium.org/1313553006/diff/60001/content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm#oldcode33 content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm:33: // http://crbug.com/152438 On 2015/09/02 15:10:25, Alexei Svitkine wrote: > ...
5 years, 3 months ago (2015-09-03 14:43:02 UTC) #11
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1313553006/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/1313553006/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2359 content/browser/renderer_host/render_widget_host_view_mac.mm:2359: // The PDF plugin does not support getting ...
5 years, 3 months ago (2015-09-03 16:28:11 UTC) #13
Shu Chen
https://codereview.chromium.org/1313553006/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/1313553006/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2359 content/browser/renderer_host/render_widget_host_view_mac.mm:2359: // The PDF plugin does not support getting the ...
5 years, 3 months ago (2015-09-04 01:30:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313553006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313553006/100001
5 years, 3 months ago (2015-09-04 01:31:34 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-04 02:33:37 UTC) #18
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/cabb6815f85f0e6297a55eb313a8e11373e2da9e Cr-Commit-Position: refs/heads/master@{#347306}
5 years, 3 months ago (2015-09-04 02:35:06 UTC) #19
Shu Chen
5 years, 3 months ago (2015-09-08 00:51:11 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1306713007/ by shuchen@chromium.org.

The reason for reverting is: Caused regression crbug.com/528929..

Powered by Google App Engine
This is Rietveld 408576698