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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 // represents the frame that requested a focus change. It must be in the same | 451 // represents the frame that requested a focus change. It must be in the same |
452 // process as this or |nullptr|. | 452 // process as this or |nullptr|. |
453 void AdvanceFocus(blink::WebFocusType type, | 453 void AdvanceFocus(blink::WebFocusType type, |
454 RenderFrameProxyHost* source_proxy); | 454 RenderFrameProxyHost* source_proxy); |
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 | 460 // Deletes text before and after the current cursor position, excluding the |
461 // selection. | 461 // selection. The lengths are supplied in Java chars (UTF-16 Code Unit), not |
| 462 // in code points or in glyphs. |
462 void DeleteSurroundingText(size_t before, size_t after); | 463 void DeleteSurroundingText(size_t before, size_t after); |
463 | 464 |
| 465 // Deletes text before and after the current cursor position, excluding the |
| 466 // selection. The lengths are supplied in code points, not in Java chars |
| 467 // (UTF-16 Code Unit) or in glyphs. Do nothing if there are one or more |
| 468 // invalid surrogate pairs in the requested range. |
| 469 void DeleteSurroundingTextInCodePoints(int before, int after); |
| 470 |
464 // Notifies the RenderFrame that the JavaScript message that was shown was | 471 // Notifies the RenderFrame that the JavaScript message that was shown was |
465 // closed by the user. | 472 // closed by the user. |
466 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 473 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
467 bool success, | 474 bool success, |
468 const base::string16& user_input, | 475 const base::string16& user_input, |
469 bool dialog_was_suppressed); | 476 bool dialog_was_suppressed); |
470 | 477 |
471 // Get the accessibility mode from the delegate and Send a message to the | 478 // Get the accessibility mode from the delegate and Send a message to the |
472 // renderer process to change the accessibility mode. | 479 // renderer process to change the accessibility mode. |
473 void UpdateAccessibilityMode(); | 480 void UpdateAccessibilityMode(); |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 | 1158 |
1152 // NOTE: This must be the last member. | 1159 // NOTE: This must be the last member. |
1153 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1160 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1154 | 1161 |
1155 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1162 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1156 }; | 1163 }; |
1157 | 1164 |
1158 } // namespace content | 1165 } // namespace content |
1159 | 1166 |
1160 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1167 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |