OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 2502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2513 | 2513 |
2514 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2514 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2515 size_t after) { | 2515 size_t after) { |
2516 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2516 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2517 } | 2517 } |
2518 | 2518 |
2519 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { | 2519 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { |
2520 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); | 2520 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
2521 } | 2521 } |
2522 | 2522 |
| 2523 void RenderFrameHostImpl::DeleteSurroundingTextInCodePoints(size_t before, |
| 2524 size_t after) { |
| 2525 Send(new InputMsg_DeleteSurroundingTextInCodePoints(routing_id_, before, |
| 2526 after)); |
| 2527 } |
| 2528 |
2523 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2529 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2524 IPC::Message* reply_msg, | 2530 IPC::Message* reply_msg, |
2525 bool success, | 2531 bool success, |
2526 const base::string16& user_input, | 2532 const base::string16& user_input, |
2527 bool dialog_was_suppressed) { | 2533 bool dialog_was_suppressed) { |
2528 GetProcess()->SetIgnoreInputEvents(false); | 2534 GetProcess()->SetIgnoreInputEvents(false); |
2529 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2535 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2530 | 2536 |
2531 // If we are executing as part of (before)unload event handling, we don't | 2537 // If we are executing as part of (before)unload event handling, we don't |
2532 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2538 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3347 // There is no pending NavigationEntry in these cases, so pass 0 as the | 3353 // There is no pending NavigationEntry in these cases, so pass 0 as the |
3348 // pending_nav_entry_id. If the previous handle was a prematurely aborted | 3354 // pending_nav_entry_id. If the previous handle was a prematurely aborted |
3349 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. | 3355 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. |
3350 return NavigationHandleImpl::Create( | 3356 return NavigationHandleImpl::Create( |
3351 params.url, frame_tree_node_, is_renderer_initiated, | 3357 params.url, frame_tree_node_, is_renderer_initiated, |
3352 params.was_within_same_page, base::TimeTicks::Now(), | 3358 params.was_within_same_page, base::TimeTicks::Now(), |
3353 entry_id_for_data_nav, false); // started_from_context_menu | 3359 entry_id_for_data_nav, false); // started_from_context_menu |
3354 } | 3360 } |
3355 | 3361 |
3356 } // namespace content | 3362 } // namespace content |
OLD | NEW |