Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: content/test/test_render_frame.h

Issue 1425303002: OOPIF: Stop using HistoryController and refactor UpdateState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/layouttest_support.cc ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_
6 #define CONTENT_TEST_TEST_RENDER_FRAME_H_ 6 #define CONTENT_TEST_TEST_RENDER_FRAME_H_
7 7
8 #include "content/renderer/render_frame_impl.h" 8 #include "content/renderer/render_frame_impl.h"
9 9
10 namespace blink {
11 class WebHistoryItem;
12 }
13
10 namespace content { 14 namespace content {
11 15
12 class RenderViewImpl; 16 class RenderViewImpl;
13 struct CommonNavigationParams; 17 struct CommonNavigationParams;
14 struct RequestNavigationParams; 18 struct RequestNavigationParams;
15 struct StartNavigationParams; 19 struct StartNavigationParams;
16 20
17 // A test class to use in RenderViewTests. 21 // A test class to use in RenderViewTests.
18 class TestRenderFrame : public RenderFrameImpl { 22 class TestRenderFrame : public RenderFrameImpl {
19 public: 23 public:
20 static RenderFrameImpl* CreateTestRenderFrame( 24 static RenderFrameImpl* CreateTestRenderFrame(
21 const RenderFrameImpl::CreateParams& params); 25 const RenderFrameImpl::CreateParams& params);
22 ~TestRenderFrame() override; 26 ~TestRenderFrame() override;
23 27
28 const blink::WebHistoryItem& current_history_item() {
29 return current_history_item_;
30 }
31
24 void Navigate(const CommonNavigationParams& common_params, 32 void Navigate(const CommonNavigationParams& common_params,
25 const StartNavigationParams& start_params, 33 const StartNavigationParams& start_params,
26 const RequestNavigationParams& request_params); 34 const RequestNavigationParams& request_params);
27 void SwapOut(int proxy_routing_id, 35 void SwapOut(int proxy_routing_id,
28 bool is_loading, 36 bool is_loading,
29 const FrameReplicationState& replicated_frame_state); 37 const FrameReplicationState& replicated_frame_state);
30 void SetEditableSelectionOffsets(int start, int end); 38 void SetEditableSelectionOffsets(int start, int end);
31 void ExtendSelectionAndDelete(int before, int after); 39 void ExtendSelectionAndDelete(int before, int after);
32 void Unselect(); 40 void Unselect();
33 void SetAccessibilityMode(AccessibilityMode new_mode); 41 void SetAccessibilityMode(AccessibilityMode new_mode);
34 void SetCompositionFromExistingText( 42 void SetCompositionFromExistingText(
35 int start, 43 int start,
36 int end, 44 int end,
37 const std::vector<blink::WebCompositionUnderline>& underlines); 45 const std::vector<blink::WebCompositionUnderline>& underlines);
38 46
39 private: 47 private:
40 explicit TestRenderFrame(const RenderFrameImpl::CreateParams& params); 48 explicit TestRenderFrame(const RenderFrameImpl::CreateParams& params);
41 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame); 49 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame);
42 }; 50 };
43 51
44 } // namespace content 52 } // namespace content
45 53
46 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_ 54 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/test/layouttest_support.cc ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698