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 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2572 | 2572 |
2573 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2573 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2574 size_t after) { | 2574 size_t after) { |
2575 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2575 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2576 } | 2576 } |
2577 | 2577 |
2578 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { | 2578 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { |
2579 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); | 2579 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
2580 } | 2580 } |
2581 | 2581 |
| 2582 void RenderFrameHostImpl::DeleteSurroundingTextInCodePoints(size_t before, |
| 2583 size_t after) { |
| 2584 Send(new InputMsg_DeleteSurroundingTextInCodePoints(routing_id_, before, |
| 2585 after)); |
| 2586 } |
| 2587 |
2582 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2588 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2583 IPC::Message* reply_msg, | 2589 IPC::Message* reply_msg, |
2584 bool success, | 2590 bool success, |
2585 const base::string16& user_input, | 2591 const base::string16& user_input, |
2586 bool dialog_was_suppressed) { | 2592 bool dialog_was_suppressed) { |
2587 GetProcess()->SetIgnoreInputEvents(false); | 2593 GetProcess()->SetIgnoreInputEvents(false); |
2588 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2594 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2589 | 2595 |
2590 // If we are executing as part of (before)unload event handling, we don't | 2596 // If we are executing as part of (before)unload event handling, we don't |
2591 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2597 // 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... |
3406 // There is no pending NavigationEntry in these cases, so pass 0 as the | 3412 // There is no pending NavigationEntry in these cases, so pass 0 as the |
3407 // pending_nav_entry_id. If the previous handle was a prematurely aborted | 3413 // pending_nav_entry_id. If the previous handle was a prematurely aborted |
3408 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. | 3414 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. |
3409 return NavigationHandleImpl::Create( | 3415 return NavigationHandleImpl::Create( |
3410 params.url, frame_tree_node_, is_renderer_initiated, | 3416 params.url, frame_tree_node_, is_renderer_initiated, |
3411 params.was_within_same_page, base::TimeTicks::Now(), | 3417 params.was_within_same_page, base::TimeTicks::Now(), |
3412 entry_id_for_data_nav, false); // started_from_context_menu | 3418 entry_id_for_data_nav, false); // started_from_context_menu |
3413 } | 3419 } |
3414 | 3420 |
3415 } // namespace content | 3421 } // namespace content |
OLD | NEW |