Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Don't convert utf8 Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after
2646 2646
2647 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, 2647 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before,
2648 size_t after) { 2648 size_t after) {
2649 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); 2649 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after));
2650 } 2650 }
2651 2651
2652 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { 2652 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) {
2653 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); 2653 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after));
2654 } 2654 }
2655 2655
2656 void RenderFrameHostImpl::DeleteSurroundingTextInCodePoints(size_t before,
2657 size_t after) {
2658 Send(new InputMsg_DeleteSurroundingTextInCodePoints(routing_id_, before,
2659 after));
2660 }
2661
2656 void RenderFrameHostImpl::JavaScriptDialogClosed( 2662 void RenderFrameHostImpl::JavaScriptDialogClosed(
2657 IPC::Message* reply_msg, 2663 IPC::Message* reply_msg,
2658 bool success, 2664 bool success,
2659 const base::string16& user_input, 2665 const base::string16& user_input,
2660 bool dialog_was_suppressed) { 2666 bool dialog_was_suppressed) {
2661 GetProcess()->SetIgnoreInputEvents(false); 2667 GetProcess()->SetIgnoreInputEvents(false);
2662 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); 2668 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK();
2663 2669
2664 // If we are executing as part of (before)unload event handling, we don't 2670 // If we are executing as part of (before)unload event handling, we don't
2665 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to 2671 // 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
3480 // There is no pending NavigationEntry in these cases, so pass 0 as the 3486 // There is no pending NavigationEntry in these cases, so pass 0 as the
3481 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3487 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3482 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3488 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3483 return NavigationHandleImpl::Create( 3489 return NavigationHandleImpl::Create(
3484 params.url, params.redirects, frame_tree_node_, is_renderer_initiated, 3490 params.url, params.redirects, frame_tree_node_, is_renderer_initiated,
3485 params.was_within_same_page, base::TimeTicks::Now(), 3491 params.was_within_same_page, base::TimeTicks::Now(),
3486 entry_id_for_data_nav, false); // started_from_context_menu 3492 entry_id_for_data_nav, false); // started_from_context_menu
3487 } 3493 }
3488 3494
3489 } // namespace content 3495 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698