Smart Text Selection related cleanup tasks. |
|
Issue descriptionSelectionClient.Result was introduced because we want to use information from android.view.textclassifier.TextClassification to upstream, but upstream still compiled against with N SDK at that time. Basically, SelectionClient.Result is the Chromium version of TextClassification/TextSelection combination at that time. We added TextClassification and TextSelection to SelectionClient.Result for Smart Selection logging because logging API only accepts TextClassification/TextSelection and there is no public constructor for them. We should remove these old fields and keep TextClassification and TextSelection objects. There might be more clean up work after we upstreamed code for new version of Android. [1] https://cs.chromium.org/chromium/src/content/public/android/java/src/org/chromium/content_public/browser/SelectionClient.java?rcl=a72081670f6f1656b8791518b1da6cf6dac3ebfa&l=23
,
Apr 3 2018
We need to add @RequestType to "private final @RequestType int mRequestType;" in SmartSelectionProvider.ClassificationTask.
,
Jul 10
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/11599018ca2a7bba53215c1895d3a3e9e69928b8 commit 11599018ca2a7bba53215c1895d3a3e9e69928b8 Author: Shimi Zhang <ctzsm@chromium.org> Date: Tue Jul 10 21:56:58 2018 [Smart Selection] Remove |IntentType| Removing unused |IntentType|, the usage was removed due to new P API. Bug: 826581 Change-Id: Ic279cbda662df73300bf1eaf6496614767da8abf Reviewed-on: https://chromium-review.googlesource.com/1131925 Reviewed-by: Pedro Amaral <amaralp@chromium.org> Commit-Queue: Shimi Zhang <ctzsm@chromium.org> Cr-Commit-Position: refs/heads/master@{#573935} [modify] https://crrev.com/11599018ca2a7bba53215c1895d3a3e9e69928b8/content/public/android/java/src/org/chromium/content/browser/selection/AdditionalMenuItemProviderImpl.java |
|
►
Sign in to add a comment |
|
Comment 1 by ctzsm@chromium.org
, Apr 2 2018