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

Side by Side Diff: content/renderer/render_view_impl_android.cc

Issue 2667283007: Refactor Samsung SmartClip implementation. (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "cc/trees/layer_tree_host.h" 9 #include "cc/trees/layer_tree_host.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (delta.height == 0) 64 if (delta.height == 0)
65 return; 65 return;
66 66
67 BrowserControlsState current = delta.height < 0 67 BrowserControlsState current = delta.height < 0
68 ? BROWSER_CONTROLS_STATE_SHOWN 68 ? BROWSER_CONTROLS_STATE_SHOWN
69 : BROWSER_CONTROLS_STATE_HIDDEN; 69 : BROWSER_CONTROLS_STATE_HIDDEN;
70 70
71 UpdateBrowserControlsState(top_controls_constraints_, current, true); 71 UpdateBrowserControlsState(top_controls_constraints_, current, true);
72 } 72 }
73 73
74 void RenderViewImpl::OnExtractSmartClipData(const gfx::Rect& rect) {
aelias_OOO_until_Jul13 2017/02/07 20:48:13 Yes, the bulk of the code on the Blink side was al
75 blink::WebString clip_text;
76 blink::WebString clip_html;
77 blink::WebRect clip_rect;
78 webview()->extractSmartClipData(rect, clip_text, clip_html, clip_rect);
79 Send(new ViewHostMsg_SmartClipDataExtracted(routing_id_, clip_text.utf16(),
80 clip_html.utf16(), clip_rect));
81 }
82
83 } // namespace content 74 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698