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

Issue 2667283007: Refactor Samsung SmartClip implementation. (Closed)

Created:
3 years, 10 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 10 months ago
CC:
agrieve+watch_chromium.org, amaralp, android-webview-reviews_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, Jinsuk Kim, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nona+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor Samsung SmartClip implementation. Samsung "Smart Clip" (a.k.a. "Smart Select") is a Galaxy Note-specific proprietary API to select a rectangle with the stylus and extract the text contents. This moves it from the ContentViewCore->ViewMsg->WebViewImpl flow into the more modern WebContents->RenderFrameHost->WebLocalFrame path. Notes: - One of the values we're providing in the return data is the original rectangle that was passed into us. It's currently being passed in back and forth from Blink unnecessarily, and wasn't DIP-adjusted properly. Empirically on a Galaxy Note 5, there's no evidence that the OEM code ever looks at this rectangle, so just delete it. - This never supported subframes (even local iframes) and still doesn't. This patch is intended as a no-op refactoring for now; for subframe support, we might consider generating this out of the accessibility trees in the future. BUG=665665 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2667283007 Cr-Commit-Position: refs/heads/master@{#448816} Committed: https://chromium.googlesource.com/chromium/src/+/a3d72e6945823292c6fa7487268333b538b6a10e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move FrameMsg #

Total comments: 18

Patch Set 3 : Rebase #

Total comments: 1

Patch Set 4 : Code review comments #

Patch Set 5 : Really apply code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -271 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 2 chunks +4 lines, -23 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java View 5 chunks +0 lines, -8 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/SmartClipProviderTest.java View 5 chunks +2 lines, -11 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 2 chunks +0 lines, -11 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 2 chunks +0 lines, -32 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 4 chunks +11 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 3 chunks +26 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 2 chunks +0 lines, -10 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 2 chunks +29 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 2 chunks +0 lines, -10 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 3 chunks +5 lines, -25 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 6 chunks +0 lines, -64 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 4 5 chunks +42 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content_public/browser/SmartClipCallback.java View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_impl_android.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 4 chunks +36 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 2 chunks +0 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 4 chunks +8 lines, -12 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
aelias_OOO_until_Jul13
PTAL, boliu@ for content/browser and generally dtrainor@ for chrome/ tsepez@ for IPC
3 years, 10 months ago (2017-02-04 02:52:08 UTC) #5
Tom Sepez
https://codereview.chromium.org/2667283007/diff/1/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/2667283007/diff/1/content/common/frame_messages.h#newcode1444 content/common/frame_messages.h:1444: // Extracts the data at the given rect, returning ...
3 years, 10 months ago (2017-02-04 03:22:44 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/2667283007/diff/1/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/2667283007/diff/1/content/common/frame_messages.h#newcode1444 content/common/frame_messages.h:1444: // Extracts the data at the given rect, returning ...
3 years, 10 months ago (2017-02-04 03:26:53 UTC) #8
boliu
the code in content went from android-only to cross-platform, intended? https://codereview.chromium.org/2667283007/diff/20001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (left): https://codereview.chromium.org/2667283007/diff/20001/content/browser/android/content_view_core_impl.cc#oldcode1416 ...
3 years, 10 months ago (2017-02-06 13:08:09 UTC) #12
Tom Sepez
Messages LGTM
3 years, 10 months ago (2017-02-06 17:29:29 UTC) #13
David Trainor- moved to gerrit
chrome/ lgtm
3 years, 10 months ago (2017-02-07 19:28:59 UTC) #14
aelias_OOO_until_Jul13
https://codereview.chromium.org/2667283007/diff/20001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (left): https://codereview.chromium.org/2667283007/diff/20001/content/browser/android/content_view_core_impl.cc#oldcode1416 content/browser/android/content_view_core_impl.cc:1416: 1 : (int)(width / dpi_scale())), On 2017/02/06 at 13:08:09, ...
3 years, 10 months ago (2017-02-07 20:48:13 UTC) #18
boliu
lgtm
3 years, 10 months ago (2017-02-07 21:52:35 UTC) #20
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/2667283007/80001
3 years, 10 months ago (2017-02-07 22:04:22 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 00:29:19 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a3d72e6945823292c6fa74872683...

Powered by Google App Engine
This is Rietveld 408576698