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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 | 1278 |
1279 webview()->focusedFrame()->executeCommand( | 1279 webview()->focusedFrame()->executeCommand( |
1280 WebString::fromUTF8("SelectAll")); | 1280 WebString::fromUTF8("SelectAll")); |
1281 } | 1281 } |
1282 | 1282 |
1283 void RenderViewImpl::OnSelectRange(const gfx::Point& start, | 1283 void RenderViewImpl::OnSelectRange(const gfx::Point& start, |
1284 const gfx::Point& end) { | 1284 const gfx::Point& end) { |
1285 if (!webview()) | 1285 if (!webview()) |
1286 return; | 1286 return; |
1287 | 1287 |
| 1288 Send(new ViewHostMsg_SelectRange_ACK(routing_id_)); |
| 1289 |
1288 handling_select_range_ = true; | 1290 handling_select_range_ = true; |
1289 webview()->focusedFrame()->selectRange(start, end); | 1291 webview()->focusedFrame()->selectRange(start, end); |
1290 handling_select_range_ = false; | 1292 handling_select_range_ = false; |
1291 } | 1293 } |
1292 | 1294 |
1293 void RenderViewImpl::OnSetHistoryLengthAndPrune(int history_length, | 1295 void RenderViewImpl::OnSetHistoryLengthAndPrune(int history_length, |
1294 int32 minimum_page_id) { | 1296 int32 minimum_page_id) { |
1295 DCHECK(history_length >= 0); | 1297 DCHECK(history_length >= 0); |
1296 DCHECK(history_list_offset_ == history_list_length_ - 1); | 1298 DCHECK(history_list_offset_ == history_list_length_ - 1); |
1297 DCHECK(minimum_page_id >= -1); | 1299 DCHECK(minimum_page_id >= -1); |
(...skipping 4438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5736 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5738 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5737 return !!RenderThreadImpl::current()->compositor_thread(); | 5739 return !!RenderThreadImpl::current()->compositor_thread(); |
5738 } | 5740 } |
5739 | 5741 |
5740 void RenderViewImpl::OnJavaBridgeInit() { | 5742 void RenderViewImpl::OnJavaBridgeInit() { |
5741 DCHECK(!java_bridge_dispatcher_); | 5743 DCHECK(!java_bridge_dispatcher_); |
5742 #if defined(ENABLE_JAVA_BRIDGE) | 5744 #if defined(ENABLE_JAVA_BRIDGE) |
5743 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5745 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5744 #endif | 5746 #endif |
5745 } | 5747 } |
OLD | NEW |