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 #include "content/public/test/render_view_test.h" | 5 #include "content/public/test/render_view_test.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "content/common/dom_storage/dom_storage_types.h" | 8 #include "content/common/dom_storage/dom_storage_types.h" |
9 #include "content/common/frame_messages.h" | 9 #include "content/common/frame_messages.h" |
10 #include "content/common/input_messages.h" | 10 #include "content/common/input_messages.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 item.initialize(); | 373 item.initialize(); |
374 impl->GetMainRenderFrame()->didNavigateWithinPage( | 374 impl->GetMainRenderFrame()->didNavigateWithinPage( |
375 frame, | 375 frame, |
376 item, | 376 item, |
377 is_new_navigation ? blink::WebStandardCommit | 377 is_new_navigation ? blink::WebStandardCommit |
378 : blink::WebHistoryInertCommit); | 378 : blink::WebHistoryInertCommit); |
379 } | 379 } |
380 | 380 |
381 void RenderViewTest::SendContentStateImmediately() { | 381 void RenderViewTest::SendContentStateImmediately() { |
382 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 382 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
383 impl->set_page_state_sent_immediately(true); | 383 impl->set_send_content_state_immediately(true); |
384 } | 384 } |
385 | 385 |
386 blink::WebWidget* RenderViewTest::GetWebWidget() { | 386 blink::WebWidget* RenderViewTest::GetWebWidget() { |
387 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 387 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
388 return impl->webwidget(); | 388 return impl->webwidget(); |
389 } | 389 } |
390 | 390 |
391 | 391 |
392 ContentClient* RenderViewTest::CreateContentClient() { | 392 ContentClient* RenderViewTest::CreateContentClient() { |
393 return new TestContentClient; | 393 return new TestContentClient; |
(...skipping 28 matching lines...) Expand all Loading... |
422 FrameMsg_Navigate navigate_message(impl->GetMainRenderFrame()->GetRoutingID(), | 422 FrameMsg_Navigate navigate_message(impl->GetMainRenderFrame()->GetRoutingID(), |
423 navigate_params); | 423 navigate_params); |
424 impl->GetMainRenderFrame()->OnMessageReceived(navigate_message); | 424 impl->GetMainRenderFrame()->OnMessageReceived(navigate_message); |
425 | 425 |
426 // The load actually happens asynchronously, so we pump messages to process | 426 // The load actually happens asynchronously, so we pump messages to process |
427 // the pending continuation. | 427 // the pending continuation. |
428 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait(); | 428 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait(); |
429 } | 429 } |
430 | 430 |
431 } // namespace content | 431 } // namespace content |
OLD | NEW |