| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_FRAME_H_ |
| 7 |
| 8 #include "content/renderer/render_frame_impl.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class RenderViewImpl; |
| 13 struct CommonNavigationParams; |
| 14 struct RequestNavigationParams; |
| 15 struct StartNavigationParams; |
| 16 |
| 17 // A test class to use in RenderViewTests. |
| 18 class TestRenderFrame : public RenderFrameImpl { |
| 19 public: |
| 20 static RenderFrameImpl* CreateTestRenderFrame(RenderViewImpl* render_view, |
| 21 int32 routing_id); |
| 22 ~TestRenderFrame() override; |
| 23 |
| 24 void Navigate(const CommonNavigationParams& common_params, |
| 25 const StartNavigationParams& start_params, |
| 26 const RequestNavigationParams& request_params); |
| 27 void SwapOut(int proxy_routing_id, |
| 28 bool is_loading, |
| 29 const FrameReplicationState& replicated_frame_state); |
| 30 void SetEditableSelectionOffsets(int start, int end); |
| 31 void ExtendSelectionAndDelete(int before, int after); |
| 32 void Unselect(); |
| 33 void SetAccessibilityMode(AccessibilityMode new_mode); |
| 34 void SetCompositionFromExistingText( |
| 35 int start, |
| 36 int end, |
| 37 const std::vector<blink::WebCompositionUnderline>& underlines); |
| 38 |
| 39 private: |
| 40 TestRenderFrame(RenderViewImpl* render_view, int32 routing_id); |
| 41 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame); |
| 42 }; |
| 43 |
| 44 } // namespace content |
| 45 |
| 46 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_ |
| OLD | NEW |