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 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 | 1287 |
1288 webview()->focusedFrame()->executeCommand( | 1288 webview()->focusedFrame()->executeCommand( |
1289 WebString::fromUTF8("SelectAll")); | 1289 WebString::fromUTF8("SelectAll")); |
1290 } | 1290 } |
1291 | 1291 |
1292 void RenderViewImpl::OnSelectRange(const gfx::Point& start, | 1292 void RenderViewImpl::OnSelectRange(const gfx::Point& start, |
1293 const gfx::Point& end) { | 1293 const gfx::Point& end) { |
1294 if (!webview()) | 1294 if (!webview()) |
1295 return; | 1295 return; |
1296 | 1296 |
| 1297 Send(new ViewHostMsg_SelectRange_ACK(routing_id_)); |
| 1298 |
1297 handling_select_range_ = true; | 1299 handling_select_range_ = true; |
1298 webview()->focusedFrame()->selectRange(start, end); | 1300 webview()->focusedFrame()->selectRange(start, end); |
1299 handling_select_range_ = false; | 1301 handling_select_range_ = false; |
1300 } | 1302 } |
1301 | 1303 |
1302 void RenderViewImpl::OnSetHistoryLengthAndPrune(int history_length, | 1304 void RenderViewImpl::OnSetHistoryLengthAndPrune(int history_length, |
1303 int32 minimum_page_id) { | 1305 int32 minimum_page_id) { |
1304 DCHECK(history_length >= 0); | 1306 DCHECK(history_length >= 0); |
1305 DCHECK(history_list_offset_ == history_list_length_ - 1); | 1307 DCHECK(history_list_offset_ == history_list_length_ - 1); |
1306 DCHECK(minimum_page_id >= -1); | 1308 DCHECK(minimum_page_id >= -1); |
(...skipping 4460 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 |