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

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 int to size_t Created 4 years, 2 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 void SetFocusedFrame(); 449 void SetFocusedFrame();
450 450
451 // This is used to clear focus inside an inner WebContents when focus shifts 451 // This is used to clear focus inside an inner WebContents when focus shifts
452 // to a frame in the outer WebContents or a sibling WebContents. 452 // to a frame in the outer WebContents or a sibling WebContents.
453 void ClearFocusedFrame(); 453 void ClearFocusedFrame();
454 454
455 // Deletes the current selection plus the specified number of characters 455 // Deletes the current selection plus the specified number of characters
456 // before and after the selection or caret. 456 // before and after the selection or caret.
457 void ExtendSelectionAndDelete(size_t before, size_t after); 457 void ExtendSelectionAndDelete(size_t before, size_t after);
458 458
459 // Deletes text before and after the current cursor position, excluding the
460 // selection.
461 void DeleteSurroundingText(size_t before, size_t after);
462
459 // Notifies the RenderFrame that the JavaScript message that was shown was 463 // Notifies the RenderFrame that the JavaScript message that was shown was
460 // closed by the user. 464 // closed by the user.
461 void JavaScriptDialogClosed(IPC::Message* reply_msg, 465 void JavaScriptDialogClosed(IPC::Message* reply_msg,
462 bool success, 466 bool success,
463 const base::string16& user_input, 467 const base::string16& user_input,
464 bool dialog_was_suppressed); 468 bool dialog_was_suppressed);
465 469
466 // Send a message to the renderer process to change the accessibility mode. 470 // Send a message to the renderer process to change the accessibility mode.
467 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); 471 void SetAccessibilityMode(AccessibilityMode AccessibilityMode);
468 472
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 remote_associated_interfaces_; 1060 remote_associated_interfaces_;
1057 // NOTE: This must be the last member. 1061 // NOTE: This must be the last member.
1058 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1062 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1059 1063
1060 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1064 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1061 }; 1065 };
1062 1066
1063 } // namespace content 1067 } // namespace content
1064 1068
1065 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1069 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | content/test/test_render_frame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698