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

Issue 166903005: mac: Add support for asynchronous dictionary lookup (Closed)

Created:
6 years, 10 months ago by Andre
Modified:
6 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

mac: Add support for asynchronous dictionary lookup. Override -[NSResponder quickLookWithEvent:] to perform dictionary lookup asynchronously. The "Lookup in Dictionary" context menu item still goes through the synchronous code path for now. BUG=121917 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257682

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Use ScopedBlock. #

Total comments: 15

Patch Set 4 : Fixes for avi. #

Total comments: 4

Patch Set 5 : Fix 80 columns formatting. #

Total comments: 2

Patch Set 6 : Fix for dcheng and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -1 line) Patch
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_client_mac.h View 1 2 3 4 4 chunks +22 lines, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_client_mac.mm View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_client_message_filter.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_client_message_filter.mm View 1 3 chunks +12 lines, -1 line 0 comments Download
M content/common/text_input_client_messages.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/text_input_client_observer.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/text_input_client_observer.cc View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Andre
https://codereview.chromium.org/166903005/diff/1/content/renderer/text_input_client_observer.cc File content/renderer/text_input_client_observer.cc (right): https://codereview.chromium.org/166903005/diff/1/content/renderer/text_input_client_observer.cc#newcode48 content/renderer/text_input_client_observer.cc:48: void TextInputClientObserver::OnStringAtPoint(gfx::Point point) { Given a point in view ...
6 years, 10 months ago (2014-02-18 21:35:02 UTC) #1
Avi (use Gerrit)
This is the kind of thing where you're going to want to test on 10.6 ...
6 years, 10 months ago (2014-02-18 21:42:24 UTC) #2
Andre
On 2014/02/18 21:42:24, Avi wrote: > This is the kind of thing where you're going ...
6 years, 9 months ago (2014-03-12 04:40:54 UTC) #3
eseidel
Chromium style is so crazy. :) https://codereview.chromium.org/166903005/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/166903005/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2807 content/browser/renderer_host/render_widget_host_view_mac.mm:2807: ^(NSAttributedString* string, NSPoint ...
6 years, 9 months ago (2014-03-12 04:48:35 UTC) #4
Avi (use Gerrit)
https://codereview.chromium.org/166903005/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/166903005/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2802 content/browser/renderer_host/render_widget_host_view_mac.mm:2802: - (void)quickLookWithEvent:(NSEvent*)event { Can you note that this only ...
6 years, 9 months ago (2014-03-12 04:55:39 UTC) #5
Avi (use Gerrit)
https://codereview.chromium.org/166903005/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/166903005/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2807 content/browser/renderer_host/render_widget_host_view_mac.mm:2807: ^(NSAttributedString* string, NSPoint baselinePoint) { On 2014/03/12 04:48:36, eseidel ...
6 years, 9 months ago (2014-03-12 04:58:19 UTC) #6
eseidel
According to Wikipedia, I must be thinking of nested functions: http://en.wikipedia.org/wiki/Blocks_(C_language_extension)
6 years, 9 months ago (2014-03-12 05:03:12 UTC) #7
Andre
On 2014/03/12 04:55:39, Avi wrote: > https://codereview.chromium.org/166903005/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/166903005/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2802 > ...
6 years, 9 months ago (2014-03-12 16:59:13 UTC) #8
Andre
https://codereview.chromium.org/166903005/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/166903005/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2802 content/browser/renderer_host/render_widget_host_view_mac.mm:2802: - (void)quickLookWithEvent:(NSEvent*)event { On 2014/03/12 04:55:40, Avi wrote: > ...
6 years, 9 months ago (2014-03-12 16:59:25 UTC) #9
Avi (use Gerrit)
LGTM if you fix the formatting issues. https://codereview.chromium.org/166903005/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/166903005/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode2808 content/browser/renderer_host/render_widget_host_view_mac.mm:2808: if (string ...
6 years, 9 months ago (2014-03-12 17:10:54 UTC) #10
Andre
https://codereview.chromium.org/166903005/diff/100001/content/browser/renderer_host/text_input_client_mac.h File content/browser/renderer_host/text_input_client_mac.h (right): https://codereview.chromium.org/166903005/diff/100001/content/browser/renderer_host/text_input_client_mac.h#newcode40 content/browser/renderer_host/text_input_client_mac.h:40: // But currently the "Look Up in Dictionary" context ...
6 years, 9 months ago (2014-03-12 17:17:51 UTC) #11
Andre
On 2014/03/12 17:17:51, Andre wrote: > https://codereview.chromium.org/166903005/diff/100001/content/browser/renderer_host/text_input_client_mac.h > File content/browser/renderer_host/text_input_client_mac.h (right): > > https://codereview.chromium.org/166903005/diff/100001/content/browser/renderer_host/text_input_client_mac.h#newcode40 > ...
6 years, 9 months ago (2014-03-12 17:21:00 UTC) #12
Andre
On 2014/03/12 17:21:00, Andre wrote: > On 2014/03/12 17:17:51, Andre wrote: > > > https://codereview.chromium.org/166903005/diff/100001/content/browser/renderer_host/text_input_client_mac.h ...
6 years, 9 months ago (2014-03-14 23:01:16 UTC) #13
Andre
On 2014/03/14 23:01:16, Andre wrote: > On 2014/03/12 17:21:00, Andre wrote: > > On 2014/03/12 ...
6 years, 9 months ago (2014-03-17 16:39:15 UTC) #14
dcheng
LGTM with some nits. If you add an IPC reviewer, I'd try pinging them on ...
6 years, 9 months ago (2014-03-17 17:45:04 UTC) #15
Andre
On 2014/03/17 17:45:04, dcheng wrote: > LGTM with some nits. > > If you add ...
6 years, 9 months ago (2014-03-17 22:26:22 UTC) #16
Andre
The CQ bit was checked by andresantoso@chromium.org
6 years, 9 months ago (2014-03-18 00:30:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/166903005/190001
6 years, 9 months ago (2014-03-18 00:35:02 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 01:36:36 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=283244
6 years, 9 months ago (2014-03-18 01:36:38 UTC) #20
Andre
The CQ bit was checked by andresantoso@chromium.org
6 years, 9 months ago (2014-03-18 03:47:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/166903005/190001
6 years, 9 months ago (2014-03-18 03:48:28 UTC) #22
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 17:43:20 UTC) #23
Message was sent while issue was closed.
Change committed as 257682

Powered by Google App Engine
This is Rietveld 408576698