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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 | 1164 |
1158 // NOTE: This must be the last member. | 1165 // NOTE: This must be the last member. |
1159 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1166 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1160 | 1167 |
1161 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1168 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1162 }; | 1169 }; |
1163 | 1170 |
1164 } // namespace content | 1171 } // namespace content |
1165 | 1172 |
1166 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1173 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |