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

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

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: Move over to render frame (but not WebFrameClient yet) + a bunch of cleanups Created 3 years, 8 months 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
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 <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "content/renderer/render_frame_impl.h" 11 #include "content/renderer/render_frame_impl.h"
10 12
11 namespace blink { 13 namespace blink {
12 class WebHistoryItem; 14 class WebHistoryItem;
13 } 15 }
14 16
15 namespace content { 17 namespace content {
16 18
17 struct CommonNavigationParams; 19 struct CommonNavigationParams;
20 class MockFrameHostIPC;
18 struct RequestNavigationParams; 21 struct RequestNavigationParams;
19 struct StartNavigationParams; 22 struct StartNavigationParams;
20 23
21 // A test class to use in RenderViewTests. 24 // A test class to use in RenderViewTests.
22 class TestRenderFrame : public RenderFrameImpl { 25 class TestRenderFrame : public RenderFrameImpl {
23 public: 26 public:
24 static RenderFrameImpl* CreateTestRenderFrame( 27 static RenderFrameImpl* CreateTestRenderFrame(
25 const RenderFrameImpl::CreateParams& params); 28 const RenderFrameImpl::CreateParams& params);
26 ~TestRenderFrame() override; 29 ~TestRenderFrame() override;
27 30
(...skipping 14 matching lines...) Expand all
42 void CollapseSelection(); 45 void CollapseSelection();
43 void SetAccessibilityMode(AccessibilityMode new_mode); 46 void SetAccessibilityMode(AccessibilityMode new_mode);
44 void SetCompositionFromExistingText( 47 void SetCompositionFromExistingText(
45 int start, 48 int start,
46 int end, 49 int end,
47 const std::vector<blink::WebCompositionUnderline>& underlines); 50 const std::vector<blink::WebCompositionUnderline>& underlines);
48 51
49 blink::WebNavigationPolicy DecidePolicyForNavigation( 52 blink::WebNavigationPolicy DecidePolicyForNavigation(
50 const blink::WebFrameClient::NavigationPolicyInfo& info) override; 53 const blink::WebFrameClient::NavigationPolicyInfo& info) override;
51 54
55 mojom::FrameHostIPC* GetFrameHostIPC() override;
56
52 private: 57 private:
53 explicit TestRenderFrame(const RenderFrameImpl::CreateParams& params); 58 explicit TestRenderFrame(const RenderFrameImpl::CreateParams& params);
59
60 std::unique_ptr<MockFrameHostIPC> mock_frame_host_ipc_;
61
54 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame); 62 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame);
55 }; 63 };
56 64
57 } // namespace content 65 } // namespace content
58 66
59 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_ 67 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698