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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cctype> | 9 #include <cctype> |
10 | 10 |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 item.setDocumentSequenceNumber(current_item.documentSequenceNumber()); | 610 item.setDocumentSequenceNumber(current_item.documentSequenceNumber()); |
611 | 611 |
612 impl->GetMainRenderFrame()->didNavigateWithinPage( | 612 impl->GetMainRenderFrame()->didNavigateWithinPage( |
613 frame, item, is_new_navigation ? blink::WebStandardCommit | 613 frame, item, is_new_navigation ? blink::WebStandardCommit |
614 : blink::WebHistoryInertCommit, | 614 : blink::WebHistoryInertCommit, |
615 content_initiated); | 615 content_initiated); |
616 } | 616 } |
617 | 617 |
618 blink::WebWidget* RenderViewTest::GetWebWidget() { | 618 blink::WebWidget* RenderViewTest::GetWebWidget() { |
619 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 619 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
620 return impl->webwidget(); | 620 return impl->GetWebWidget(); |
621 } | 621 } |
622 | 622 |
623 | |
624 ContentClient* RenderViewTest::CreateContentClient() { | 623 ContentClient* RenderViewTest::CreateContentClient() { |
625 return new TestContentClient; | 624 return new TestContentClient; |
626 } | 625 } |
627 | 626 |
628 ContentBrowserClient* RenderViewTest::CreateContentBrowserClient() { | 627 ContentBrowserClient* RenderViewTest::CreateContentBrowserClient() { |
629 return new ContentBrowserClient; | 628 return new ContentBrowserClient; |
630 } | 629 } |
631 | 630 |
632 ContentRendererClient* RenderViewTest::CreateContentRendererClient() { | 631 ContentRendererClient* RenderViewTest::CreateContentRendererClient() { |
633 return new ContentRendererClient; | 632 return new ContentRendererClient; |
(...skipping 29 matching lines...) Expand all Loading... |
663 static_cast<TestRenderFrame*>(impl->GetMainRenderFrame()); | 662 static_cast<TestRenderFrame*>(impl->GetMainRenderFrame()); |
664 frame->Navigate(common_params, StartNavigationParams(), request_params); | 663 frame->Navigate(common_params, StartNavigationParams(), request_params); |
665 | 664 |
666 // The load actually happens asynchronously, so we pump messages to process | 665 // The load actually happens asynchronously, so we pump messages to process |
667 // the pending continuation. | 666 // the pending continuation. |
668 FrameLoadWaiter(frame).Wait(); | 667 FrameLoadWaiter(frame).Wait(); |
669 view_->GetWebView()->updateAllLifecyclePhases(); | 668 view_->GetWebView()->updateAllLifecyclePhases(); |
670 } | 669 } |
671 | 670 |
672 } // namespace content | 671 } // namespace content |
OLD | NEW |