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

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

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change for changwan@'s review Created 4 years, 5 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 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 void UpdateOpener(); 446 void UpdateOpener();
447 447
448 // Set this frame as focused in the renderer process. This supports 448 // Set this frame as focused in the renderer process. This supports
449 // cross-process window.focus() calls. 449 // cross-process window.focus() calls.
450 void SetFocusedFrame(); 450 void SetFocusedFrame();
451 451
452 // Deletes the current selection plus the specified number of characters 452 // Deletes the current selection plus the specified number of characters
453 // before and after the selection or caret. 453 // before and after the selection or caret.
454 void ExtendSelectionAndDelete(size_t before, size_t after); 454 void ExtendSelectionAndDelete(size_t before, size_t after);
455 455
456 // Deletes text before and after the current cursor position, excluding the
457 // selection.
458 void DeleteSurroundingText(int before, int after);
459
456 // Notifies the RenderFrame that the JavaScript message that was shown was 460 // Notifies the RenderFrame that the JavaScript message that was shown was
457 // closed by the user. 461 // closed by the user.
458 void JavaScriptDialogClosed(IPC::Message* reply_msg, 462 void JavaScriptDialogClosed(IPC::Message* reply_msg,
459 bool success, 463 bool success,
460 const base::string16& user_input, 464 const base::string16& user_input,
461 bool dialog_was_suppressed); 465 bool dialog_was_suppressed);
462 466
463 // Send a message to the renderer process to change the accessibility mode. 467 // Send a message to the renderer process to change the accessibility mode.
464 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); 468 void SetAccessibilityMode(AccessibilityMode AccessibilityMode);
465 469
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 1045
1042 // NOTE: This must be the last member. 1046 // NOTE: This must be the last member.
1043 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1047 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1044 1048
1045 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1049 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1046 }; 1050 };
1047 1051
1048 } // namespace content 1052 } // namespace content
1049 1053
1050 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1054 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698