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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 // represents the frame that requested a focus change. It must be in the same | 456 // represents the frame that requested a focus change. It must be in the same |
457 // process as this or |nullptr|. | 457 // process as this or |nullptr|. |
458 void AdvanceFocus(blink::WebFocusType type, | 458 void AdvanceFocus(blink::WebFocusType type, |
459 RenderFrameProxyHost* source_proxy); | 459 RenderFrameProxyHost* source_proxy); |
460 | 460 |
461 // Deletes the current selection plus the specified number of characters | 461 // Deletes the current selection plus the specified number of characters |
462 // before and after the selection or caret. | 462 // before and after the selection or caret. |
463 void ExtendSelectionAndDelete(size_t before, size_t after); | 463 void ExtendSelectionAndDelete(size_t before, size_t after); |
464 | 464 |
465 // Deletes text before and after the current cursor position, excluding the | 465 // Deletes text before and after the current cursor position, excluding the |
466 // selection. | 466 // selection. The lengths are supplied in Java chars, not in code points or in |
| 467 // glyphs. |
467 void DeleteSurroundingText(size_t before, size_t after); | 468 void DeleteSurroundingText(size_t before, size_t after); |
468 | 469 |
| 470 // Deletes text before and after the current cursor position, excluding the |
| 471 // selection. The lengths are supplied in code points, not in Java chars or in |
| 472 // glyphs. Do nothing if there are one or more invalid surrogate pairs in the |
| 473 // requested range. |
| 474 void DeleteSurroundingTextInCodePoints(size_t before, size_t after); |
| 475 |
469 // Notifies the RenderFrame that the JavaScript message that was shown was | 476 // Notifies the RenderFrame that the JavaScript message that was shown was |
470 // closed by the user. | 477 // closed by the user. |
471 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 478 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
472 bool success, | 479 bool success, |
473 const base::string16& user_input, | 480 const base::string16& user_input, |
474 bool dialog_was_suppressed); | 481 bool dialog_was_suppressed); |
475 | 482 |
476 // Get the accessibility mode from the delegate and Send a message to the | 483 // Get the accessibility mode from the delegate and Send a message to the |
477 // renderer process to change the accessibility mode. | 484 // renderer process to change the accessibility mode. |
478 void UpdateAccessibilityMode(); | 485 void UpdateAccessibilityMode(); |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 | 1148 |
1142 // NOTE: This must be the last member. | 1149 // NOTE: This must be the last member. |
1143 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1150 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1144 | 1151 |
1145 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1152 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1146 }; | 1153 }; |
1147 | 1154 |
1148 } // namespace content | 1155 } // namespace content |
1149 | 1156 |
1150 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1157 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |