OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "content/test/test_render_frame.h" | 5 #include "content/test/test_render_frame.h" |
6 | 6 |
7 #include "content/common/navigation_params.h" | 7 #include "content/common/navigation_params.h" |
8 #include "content/common/resource_request_body_impl.h" | 8 #include "content/common/resource_request_body_impl.h" |
9 #include "content/public/common/browser_side_navigation_policy.h" | 9 #include "content/public/common/browser_side_navigation_policy.h" |
10 #include "content/public/common/resource_response.h" | 10 #include "content/public/common/resource_response.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 | 50 |
51 void TestRenderFrame::ExtendSelectionAndDelete(int before, int after) { | 51 void TestRenderFrame::ExtendSelectionAndDelete(int before, int after) { |
52 OnExtendSelectionAndDelete(before, after); | 52 OnExtendSelectionAndDelete(before, after); |
53 } | 53 } |
54 | 54 |
55 void TestRenderFrame::DeleteSurroundingText(int before, int after) { | 55 void TestRenderFrame::DeleteSurroundingText(int before, int after) { |
56 OnDeleteSurroundingText(before, after); | 56 OnDeleteSurroundingText(before, after); |
57 } | 57 } |
58 | 58 |
| 59 void TestRenderFrame::DeleteSurroundingTextInCodePoints(int before, int after) { |
| 60 OnDeleteSurroundingTextInCodePoints(before, after); |
| 61 } |
| 62 |
59 void TestRenderFrame::Unselect() { | 63 void TestRenderFrame::Unselect() { |
60 OnUnselect(); | 64 OnUnselect(); |
61 } | 65 } |
62 | 66 |
63 void TestRenderFrame::SetAccessibilityMode(AccessibilityMode new_mode) { | 67 void TestRenderFrame::SetAccessibilityMode(AccessibilityMode new_mode) { |
64 OnSetAccessibilityMode(new_mode); | 68 OnSetAccessibilityMode(new_mode); |
65 } | 69 } |
66 | 70 |
67 void TestRenderFrame::SetCompositionFromExistingText( | 71 void TestRenderFrame::SetCompositionFromExistingText( |
68 int start, | 72 int start, |
(...skipping 10 matching lines...) Expand all Loading... |
79 info.form.isNull()) { | 83 info.form.isNull()) { |
80 // RenderViewTest::LoadHTML already disables PlzNavigate for the main frame | 84 // RenderViewTest::LoadHTML already disables PlzNavigate for the main frame |
81 // requests. However if the loaded html has a subframe, the WebURLRequest | 85 // requests. However if the loaded html has a subframe, the WebURLRequest |
82 // will be created inside Blink and it won't have this flag set. | 86 // will be created inside Blink and it won't have this flag set. |
83 info.urlRequest.setCheckForBrowserSideNavigation(false); | 87 info.urlRequest.setCheckForBrowserSideNavigation(false); |
84 } | 88 } |
85 return RenderFrameImpl::decidePolicyForNavigation(info); | 89 return RenderFrameImpl::decidePolicyForNavigation(info); |
86 } | 90 } |
87 | 91 |
88 } // namespace content | 92 } // namespace content |
OLD | NEW |