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

Issue 2587833002: MacViews: Perform word lookup on force touch. (Closed)

Created:
4 years ago by karandeepb
Modified:
4 years ago
Reviewers:
tapted
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Perform word lookup on force touch. r368481 added support for force touch to the BaseView and r423419 implemented dictionary lookup for views::Textfield on MacViews. This CL implements the method forceTouchEvent: on the BridgedContentView. As a result, force touching on a views::Textfield now performs dictionary lookup for the word under the cursor as per the user's system preferences. BUG=640502 TEST= Enable chrome://flags/#secondary-ui-md. Open Bookmark Bubble. Enter some text in the name textfield. Force touch on one of the words in the text. Verify that a dictionary popup appears showing the definition of the word under the cursor. Committed: https://crrev.com/8de9c34b9a48e07607bed42939e32ab2f4b79558 Cr-Commit-Position: refs/heads/master@{#439417}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M ui/views/cocoa/bridged_content_view.mm View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
karandeepb
PTAL Trent.
4 years ago (2016-12-19 03:34:07 UTC) #4
tapted
https://codereview.chromium.org/2587833002/diff/1/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2587833002/diff/1/ui/views/cocoa/bridged_content_view.mm#newcode622 ui/views/cocoa/bridged_content_view.mm:622: // Perform word lookup on force touch. The comment ...
4 years ago (2016-12-19 04:04:33 UTC) #5
karandeepb
PTAL Trent. https://codereview.chromium.org/2587833002/diff/1/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2587833002/diff/1/ui/views/cocoa/bridged_content_view.mm#newcode622 ui/views/cocoa/bridged_content_view.mm:622: // Perform word lookup on force touch. ...
4 years ago (2016-12-19 04:28:20 UTC) #7
tapted
lgtm
4 years ago (2016-12-19 05:25:15 UTC) #8
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/2587833002/20001
4 years ago (2016-12-19 05:38:44 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-19 06:10:27 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-19 06:12:16 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8de9c34b9a48e07607bed42939e32ab2f4b79558
Cr-Commit-Position: refs/heads/master@{#439417}

Powered by Google App Engine
This is Rietveld 408576698