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 <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 | 1290 |
1291 webview()->focusedFrame()->executeCommand( | 1291 webview()->focusedFrame()->executeCommand( |
1292 WebString::fromUTF8("SelectAll")); | 1292 WebString::fromUTF8("SelectAll")); |
1293 } | 1293 } |
1294 | 1294 |
1295 void RenderViewImpl::OnSelectRange(const gfx::Point& start, | 1295 void RenderViewImpl::OnSelectRange(const gfx::Point& start, |
1296 const gfx::Point& end) { | 1296 const gfx::Point& end) { |
1297 if (!webview()) | 1297 if (!webview()) |
1298 return; | 1298 return; |
1299 | 1299 |
| 1300 Send(new ViewHostMsg_SelectRange_ACK(routing_id_)); |
| 1301 |
1300 handling_select_range_ = true; | 1302 handling_select_range_ = true; |
1301 webview()->focusedFrame()->selectRange(start, end); | 1303 webview()->focusedFrame()->selectRange(start, end); |
1302 handling_select_range_ = false; | 1304 handling_select_range_ = false; |
1303 } | 1305 } |
1304 | 1306 |
1305 void RenderViewImpl::OnSetHistoryLengthAndPrune(int history_length, | 1307 void RenderViewImpl::OnSetHistoryLengthAndPrune(int history_length, |
1306 int32 minimum_page_id) { | 1308 int32 minimum_page_id) { |
1307 DCHECK_GE(history_length, 0); | 1309 DCHECK_GE(history_length, 0); |
1308 DCHECK(history_list_offset_ == history_list_length_ - 1); | 1310 DCHECK(history_list_offset_ == history_list_length_ - 1); |
1309 DCHECK_GE(minimum_page_id, -1); | 1311 DCHECK_GE(minimum_page_id, -1); |
(...skipping 4457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5767 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5769 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5768 return !!RenderThreadImpl::current()->compositor_thread(); | 5770 return !!RenderThreadImpl::current()->compositor_thread(); |
5769 } | 5771 } |
5770 | 5772 |
5771 void RenderViewImpl::OnJavaBridgeInit() { | 5773 void RenderViewImpl::OnJavaBridgeInit() { |
5772 DCHECK(!java_bridge_dispatcher_); | 5774 DCHECK(!java_bridge_dispatcher_); |
5773 #if defined(ENABLE_JAVA_BRIDGE) | 5775 #if defined(ENABLE_JAVA_BRIDGE) |
5774 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5776 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5775 #endif | 5777 #endif |
5776 } | 5778 } |
OLD | NEW |