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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 void UpdateOpener(); | 422 void UpdateOpener(); |
423 | 423 |
424 // Set this frame as focused in the renderer process. This supports | 424 // Set this frame as focused in the renderer process. This supports |
425 // cross-process window.focus() calls. | 425 // cross-process window.focus() calls. |
426 void SetFocusedFrame(); | 426 void SetFocusedFrame(); |
427 | 427 |
428 // Deletes the current selection plus the specified number of characters | 428 // Deletes the current selection plus the specified number of characters |
429 // before and after the selection or caret. | 429 // before and after the selection or caret. |
430 void ExtendSelectionAndDelete(size_t before, size_t after); | 430 void ExtendSelectionAndDelete(size_t before, size_t after); |
431 | 431 |
| 432 // Deletes text before and after the current cursor position, excluding the |
| 433 // selection. |
| 434 void DeleteSurroundingText(int before, int after); |
| 435 |
432 // Notifies the RenderFrame that the JavaScript message that was shown was | 436 // Notifies the RenderFrame that the JavaScript message that was shown was |
433 // closed by the user. | 437 // closed by the user. |
434 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 438 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
435 bool success, | 439 bool success, |
436 const base::string16& user_input, | 440 const base::string16& user_input, |
437 bool dialog_was_suppressed); | 441 bool dialog_was_suppressed); |
438 | 442 |
439 // Send a message to the renderer process to change the accessibility mode. | 443 // Send a message to the renderer process to change the accessibility mode. |
440 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); | 444 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); |
441 | 445 |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 | 995 |
992 // NOTE: This must be the last member. | 996 // NOTE: This must be the last member. |
993 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 997 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
994 | 998 |
995 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 999 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
996 }; | 1000 }; |
997 | 1001 |
998 } // namespace content | 1002 } // namespace content |
999 | 1003 |
1000 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1004 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |