Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 if (delta.height == 0) | 57 if (delta.height == 0) |
| 58 return; | 58 return; |
| 59 if (compositor_) { | 59 if (compositor_) { |
| 60 cc::TopControlsState current = delta.height < 0 ? cc::SHOWN : cc::HIDDEN; | 60 cc::TopControlsState current = delta.height < 0 ? cc::SHOWN : cc::HIDDEN; |
| 61 compositor_->UpdateTopControlsState(top_controls_constraints_, | 61 compositor_->UpdateTopControlsState(top_controls_constraints_, |
| 62 current, | 62 current, |
| 63 true); | 63 true); |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 | 66 |
| 67 void RenderViewImpl::OnExtractSmartClipData(const gfx::Rect& rect) { | 67 void RenderViewImpl::OnExtractSmartClipData(const gfx::Rect& rect) { |
|
Yaron
2014/07/09 23:08:14
whomever reviewed this original CL
Changwan Ryu
2014/07/10 01:20:30
Added jam@
On 2014/07/09 23:08:14, Yaron wrote:
| |
| 68 blink::WebString clip_text; | 68 blink::WebString clip_text; |
| 69 blink::WebRect clip_rect; | 69 blink::WebRect clip_rect; |
| 70 webview()->getSmartClipData(rect, clip_text, clip_rect); | 70 webview()->getSmartClipData(rect, clip_text, clip_rect); |
| 71 blink::WebString clip_html = webview()->extractSmartClipDataAsMarkup(rect); | |
|
Yaron
2014/07/09 23:08:14
can this not be done in the previous call?
Changwan Ryu
2014/07/10 01:20:30
Fixed by extending getSmartClipData. However, chan
| |
| 71 Send(new ViewHostMsg_SmartClipDataExtracted( | 72 Send(new ViewHostMsg_SmartClipDataExtracted( |
| 72 routing_id_, clip_text, clip_rect)); | 73 routing_id_, clip_text, clip_html, clip_rect)); |
| 73 } | 74 } |
| 74 | 75 |
| 75 } // namespace content | 76 } // namespace content |
| OLD | NEW |