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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |