|
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
Total comments: 2
Total comments: 18
Total comments: 1
|
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
|
Total messages: 27 (17 generated)
|