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

Issue 2706333002: [TTS] Add a Java Context linked to existing native (Closed)

Created:
3 years, 10 months ago by Donn Denman
Modified:
3 years, 9 months ago
Reviewers:
Ted C, Theresa
CC:
chromium-reviews, twellington+watch_chromium.org, donnd+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[TTS] Add a Java Context linked to existing native Refactor Contextual Search to use a Java Context linked to the native Context we've had for a while. Update the native context have only private data members. Also fix some minor bugs regarding the panel not updating when a retap is done, and expanding the selection when it's been changed. Additional refactoring includes changing the API to the native Contextual Search Manager to have StartSearchTermResolutionRequest not automatically gather surrounding text -- that call must now be done separately. Also use WebContents instead of ContentViewCore, and some other cleanup. BUG=692824, 699305, 693297 Review-Url: https://codereview.chromium.org/2706333002 Cr-Commit-Position: refs/heads/master@{#456087} Committed: https://chromium.googlesource.com/chromium/src/+/4740983c521d7ac5ace825964eabddadf64507b8

Patch Set 1 #

Patch Set 2 : Updated tests. #

Patch Set 3 : Added minor bug fixes to the Bar content. #

Patch Set 4 : DCHECK that the context is created on the browser thread. #

Total comments: 21

Patch Set 5 : Addressed Theresa's comments, fixed the test by restoring the test constructor, and some other mino… #

Patch Set 6 : Moved data members in contextual_search_context.h to private, added accessors, addressed Theresa's … #

Patch Set 7 : Minor change only. Previous patch also rebased. #

Total comments: 17

Patch Set 8 : Added a friend to the test in the CS delegate.h, removed selection from one of the CSContext constr… #

Patch Set 9 : Nothing, I think. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+489 lines, -253 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchBarControl.java View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchContextControl.java View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java View 1 2 3 4 5 6 7 1 chunk +77 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java View 1 2 3 4 5 6 7 15 chunks +58 lines, -44 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java View 1 2 3 4 5 6 7 4 chunks +17 lines, -4 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchTapEventTest.java View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_context.h View 1 2 3 4 5 6 7 2 chunks +71 lines, -4 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_context.cc View 1 2 3 4 5 2 chunks +119 lines, -3 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_delegate.h View 1 2 3 4 5 6 7 6 chunks +27 lines, -42 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_delegate.cc View 1 2 3 4 5 5 chunks +80 lines, -106 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_manager.h View 1 chunk +5 lines, -10 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_manager.cc View 1 chunk +14 lines, -22 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 38 (27 generated)
Donn Denman
Theresa, this is ready for a quick first-look. Thanks!
3 years, 9 months ago (2017-03-08 00:50:05 UTC) #6
Theresa
I like the overall approach. It's great to see the context and a full-fledged Object. ...
3 years, 9 months ago (2017-03-08 01:54:38 UTC) #11
Donn Denman
Theresa, this is ready for another quick look. I don't like the way the native ...
3 years, 9 months ago (2017-03-09 17:35:05 UTC) #16
Theresa
https://codereview.chromium.org/2706333002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java (right): https://codereview.chromium.org/2706333002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java#newcode64 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java:64: private void clearNativePointer() { On 2017/03/09 17:35:04, Donn Denman ...
3 years, 9 months ago (2017-03-09 18:29:44 UTC) #17
Donn Denman
Theresa, PTAL. Thanks! https://codereview.chromium.org/2706333002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java (right): https://codereview.chromium.org/2706333002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java#newcode64 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContext.java:64: private void clearNativePointer() { On 2017/03/09 ...
3 years, 9 months ago (2017-03-09 22:00:25 UTC) #19
Theresa
lgtm % some nits -- thank you for taking this on! I think it's a ...
3 years, 9 months ago (2017-03-09 22:46:37 UTC) #20
Donn Denman
Thanks Theresa! https://codereview.chromium.org/2706333002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchContextControl.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchContextControl.java (right): https://codereview.chromium.org/2706333002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchContextControl.java#newcode46 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchContextControl.java:46: * Sets the search context to display ...
3 years, 9 months ago (2017-03-10 01:29:43 UTC) #21
Donn Denman
Ted, PTAL at least for chrome_jni_registrar.cc Thanks!
3 years, 9 months ago (2017-03-10 03:51:45 UTC) #27
Ted C
On 2017/03/10 03:51:45, Donn Denman wrote: > Ted, PTAL at least for chrome_jni_registrar.cc > > ...
3 years, 9 months ago (2017-03-10 04:34:01 UTC) #30
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/2706333002/160001
3 years, 9 months ago (2017-03-10 17:20:22 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 17:25:47 UTC) #38
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/4740983c521d7ac5ace825964eab...

Powered by Google App Engine
This is Rietveld 408576698