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

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

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Address dcheng@'s review Created 3 years, 9 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 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2594 2594
2595 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, 2595 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before,
2596 size_t after) { 2596 size_t after) {
2597 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); 2597 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after));
2598 } 2598 }
2599 2599
2600 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { 2600 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) {
2601 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); 2601 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after));
2602 } 2602 }
2603 2603
2604 void RenderFrameHostImpl::DeleteSurroundingTextInCodePoints(int before,
2605 int after) {
2606 Send(new InputMsg_DeleteSurroundingTextInCodePoints(routing_id_, before,
2607 after));
2608 }
2609
2604 void RenderFrameHostImpl::JavaScriptDialogClosed( 2610 void RenderFrameHostImpl::JavaScriptDialogClosed(
2605 IPC::Message* reply_msg, 2611 IPC::Message* reply_msg,
2606 bool success, 2612 bool success,
2607 const base::string16& user_input, 2613 const base::string16& user_input,
2608 bool dialog_was_suppressed) { 2614 bool dialog_was_suppressed) {
2609 GetProcess()->SetIgnoreInputEvents(false); 2615 GetProcess()->SetIgnoreInputEvents(false);
2610 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); 2616 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK();
2611 2617
2612 // If we are executing as part of (before)unload event handling, we don't 2618 // If we are executing as part of (before)unload event handling, we don't
2613 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to 2619 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
3447 // There is no pending NavigationEntry in these cases, so pass 0 as the 3453 // There is no pending NavigationEntry in these cases, so pass 0 as the
3448 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3454 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3449 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3455 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3450 return NavigationHandleImpl::Create( 3456 return NavigationHandleImpl::Create(
3451 params.url, params.redirects, frame_tree_node_, is_renderer_initiated, 3457 params.url, params.redirects, frame_tree_node_, is_renderer_initiated,
3452 params.was_within_same_page, base::TimeTicks::Now(), 3458 params.was_within_same_page, base::TimeTicks::Now(),
3453 entry_id_for_data_nav, false); // started_from_context_menu 3459 entry_id_for_data_nav, false); // started_from_context_menu
3454 } 3460 }
3455 3461
3456 } // namespace content 3462 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/renderer_host/ime_adapter_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698