OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
7 | 7 |
8 #include "content/browser/web_contents/web_contents_impl.h" | 8 #include "content/browser/web_contents/web_contents_impl.h" |
9 #include "content/public/common/web_preferences.h" | 9 #include "content/public/common/web_preferences.h" |
10 #include "content/public/test/web_contents_tester.h" | 10 #include "content/public/test/web_contents_tester.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 int route_id, | 110 int route_id, |
111 blink::WebPopupType popup_type) override; | 111 blink::WebPopupType popup_type) override; |
112 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; | 112 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; |
113 void ShowCreatedWindow(int route_id, | 113 void ShowCreatedWindow(int route_id, |
114 WindowOpenDisposition disposition, | 114 WindowOpenDisposition disposition, |
115 const gfx::Rect& initial_pos, | 115 const gfx::Rect& initial_pos, |
116 bool user_gesture) override; | 116 bool user_gesture) override; |
117 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos) override; | 117 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos) override; |
118 void ShowCreatedFullscreenWidget(int route_id) override; | 118 void ShowCreatedFullscreenWidget(int route_id) override; |
119 | 119 |
120 // PlzNavigate | |
121 // Gets the speculative RenderFrameHost, if any, for the main frame. | |
122 TestRenderFrameHost* GetSpeculativeMainFrame() const; | |
clamy
2014/12/29 17:36:22
This method is currently private and used exactly
carlosk
2014/12/30 15:54:50
Done.
| |
123 | |
124 // PlzNavigate | |
125 // Gets the whether the pending or the speculative RenderFrameHost, whichever | |
126 // makes sense for the current environment. Returns nullptr if the selected | |
127 // RenderFrameHost is not set. | |
128 TestRenderFrameHost* GetFutureMainFrame() const; | |
clamy
2014/12/29 17:36:22
This method should not be private as we expect to
carlosk
2014/12/30 15:54:50
Done.
| |
129 | |
120 RenderViewHostDelegateView* delegate_view_override_; | 130 RenderViewHostDelegateView* delegate_view_override_; |
121 | 131 |
122 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 132 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
123 bool expect_set_history_offset_and_length_; | 133 bool expect_set_history_offset_and_length_; |
124 int expect_set_history_offset_and_length_history_offset_; | 134 int expect_set_history_offset_and_length_history_offset_; |
125 int expect_set_history_offset_and_length_history_length_; | 135 int expect_set_history_offset_and_length_history_length_; |
126 }; | 136 }; |
127 | 137 |
128 } // namespace content | 138 } // namespace content |
129 | 139 |
130 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 140 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
OLD | NEW |