#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "cc/trees/layer_tree_host.h"
+#include "content/common/view_messages.h"
#include "content/renderer/gpu/render_widget_compositor.h"
+#include "third_party/WebKit/public/web/WebView.h"
namespace content {
top_controls_constraints_ = constraints_cc;
}
-void RenderViewImpl::didScrollWithKeyboard(const WebKit::WebSize& delta) {
+void RenderViewImpl::didScrollWithKeyboard(const blink::WebSize& delta) {
if (delta.height == 0)
return;
if (compositor_) {
}
}
+void RenderViewImpl::OnExtractSmartClipData(const gfx::Rect& rect) {
+ blink::WebString clip_text;
+ blink::WebString clip_html;
+ blink::WebRect clip_rect;
+ webview()->extractSmartClipData(rect, clip_text, clip_html, clip_rect);
+ Send(new ViewHostMsg_SmartClipDataExtracted(
+ routing_id_, clip_text, clip_html, clip_rect));
+}
+
} // namespace content