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_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 return main_render_frame_host_; | 313 return main_render_frame_host_; |
314 } | 314 } |
315 void set_main_render_frame_host(TestRenderFrameHost* rfh) { | 315 void set_main_render_frame_host(TestRenderFrameHost* rfh) { |
316 main_render_frame_host_ = rfh; | 316 main_render_frame_host_ = rfh; |
317 } | 317 } |
318 | 318 |
319 // RenderViewHost overrides -------------------------------------------------- | 319 // RenderViewHost overrides -------------------------------------------------- |
320 | 320 |
321 virtual bool CreateRenderView(const base::string16& frame_name, | 321 virtual bool CreateRenderView(const base::string16& frame_name, |
322 int opener_route_id, | 322 int opener_route_id, |
323 int32 max_page_id) OVERRIDE; | 323 int32 max_page_id, |
| 324 bool created_with_opener) OVERRIDE; |
324 virtual bool IsRenderViewLive() const OVERRIDE; | 325 virtual bool IsRenderViewLive() const OVERRIDE; |
325 virtual bool IsFullscreen() const OVERRIDE; | 326 virtual bool IsFullscreen() const OVERRIDE; |
326 | 327 |
327 private: | 328 private: |
328 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); | 329 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); |
329 | 330 |
330 void SendNavigateWithTransitionAndResponseCode(int page_id, | 331 void SendNavigateWithTransitionAndResponseCode(int page_id, |
331 const GURL& url, | 332 const GURL& url, |
332 PageTransition transition, | 333 PageTransition transition, |
333 int response_code); | 334 int response_code); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 private: | 387 private: |
387 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 388 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
388 ScopedSetSupportedScaleFactors; | 389 ScopedSetSupportedScaleFactors; |
389 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 390 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
390 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 391 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
391 }; | 392 }; |
392 | 393 |
393 } // namespace content | 394 } // namespace content |
394 | 395 |
395 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 396 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |