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 #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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 void UpdateOpener(); | 443 void UpdateOpener(); |
444 | 444 |
445 // Set this frame as focused in the renderer process. This supports | 445 // Set this frame as focused in the renderer process. This supports |
446 // cross-process window.focus() calls. | 446 // cross-process window.focus() calls. |
447 void SetFocusedFrame(); | 447 void SetFocusedFrame(); |
448 | 448 |
449 // Deletes the current selection plus the specified number of characters | 449 // Deletes the current selection plus the specified number of characters |
450 // before and after the selection or caret. | 450 // before and after the selection or caret. |
451 void ExtendSelectionAndDelete(size_t before, size_t after); | 451 void ExtendSelectionAndDelete(size_t before, size_t after); |
452 | 452 |
| 453 // Deletes text before and after the current cursor position, excluding the |
| 454 // selection. |
| 455 void DeleteSurroundingText(int before, int after); |
| 456 |
453 // Notifies the RenderFrame that the JavaScript message that was shown was | 457 // Notifies the RenderFrame that the JavaScript message that was shown was |
454 // closed by the user. | 458 // closed by the user. |
455 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 459 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
456 bool success, | 460 bool success, |
457 const base::string16& user_input, | 461 const base::string16& user_input, |
458 bool dialog_was_suppressed); | 462 bool dialog_was_suppressed); |
459 | 463 |
460 // Send a message to the renderer process to change the accessibility mode. | 464 // Send a message to the renderer process to change the accessibility mode. |
461 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); | 465 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); |
462 | 466 |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 | 1035 |
1032 // NOTE: This must be the last member. | 1036 // NOTE: This must be the last member. |
1033 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1037 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1034 | 1038 |
1035 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1039 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1036 }; | 1040 }; |
1037 | 1041 |
1038 } // namespace content | 1042 } // namespace content |
1039 | 1043 |
1040 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1044 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |