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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 void UpdateOpener(); | 450 void UpdateOpener(); |
451 | 451 |
452 // Set this frame as focused in the renderer process. This supports | 452 // Set this frame as focused in the renderer process. This supports |
453 // cross-process window.focus() calls. | 453 // cross-process window.focus() calls. |
454 void SetFocusedFrame(); | 454 void SetFocusedFrame(); |
455 | 455 |
456 // Deletes the current selection plus the specified number of characters | 456 // Deletes the current selection plus the specified number of characters |
457 // before and after the selection or caret. | 457 // before and after the selection or caret. |
458 void ExtendSelectionAndDelete(size_t before, size_t after); | 458 void ExtendSelectionAndDelete(size_t before, size_t after); |
459 | 459 |
| 460 // Deletes text before and after the current cursor position, excluding the |
| 461 // selection. |
| 462 void DeleteSurroundingText(int before, int after); |
| 463 |
460 // Notifies the RenderFrame that the JavaScript message that was shown was | 464 // Notifies the RenderFrame that the JavaScript message that was shown was |
461 // closed by the user. | 465 // closed by the user. |
462 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 466 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
463 bool success, | 467 bool success, |
464 const base::string16& user_input, | 468 const base::string16& user_input, |
465 bool dialog_was_suppressed); | 469 bool dialog_was_suppressed); |
466 | 470 |
467 // Send a message to the renderer process to change the accessibility mode. | 471 // Send a message to the renderer process to change the accessibility mode. |
468 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); | 472 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); |
469 | 473 |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 | 1048 |
1045 // NOTE: This must be the last member. | 1049 // NOTE: This must be the last member. |
1046 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1050 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1047 | 1051 |
1048 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1052 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1049 }; | 1053 }; |
1050 | 1054 |
1051 } // namespace content | 1055 } // namespace content |
1052 | 1056 |
1053 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1057 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |