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 19 matching lines...) Expand all Loading... |
30 #include "content/renderer/history_controller.h" | 30 #include "content/renderer/history_controller.h" |
31 #include "content/renderer/history_serialization.h" | 31 #include "content/renderer/history_serialization.h" |
32 #include "content/renderer/render_thread_impl.h" | 32 #include "content/renderer/render_thread_impl.h" |
33 #include "content/renderer/render_view_impl.h" | 33 #include "content/renderer/render_view_impl.h" |
34 #include "content/renderer/renderer_blink_platform_impl.h" | 34 #include "content/renderer/renderer_blink_platform_impl.h" |
35 #include "content/renderer/renderer_main_platform_delegate.h" | 35 #include "content/renderer/renderer_main_platform_delegate.h" |
36 #include "content/test/fake_compositor_dependencies.h" | 36 #include "content/test/fake_compositor_dependencies.h" |
37 #include "content/test/mock_render_process.h" | 37 #include "content/test/mock_render_process.h" |
38 #include "content/test/test_content_client.h" | 38 #include "content/test/test_content_client.h" |
39 #include "content/test/test_render_frame.h" | 39 #include "content/test/test_render_frame.h" |
| 40 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
| 41 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
40 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 42 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
41 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" | 43 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
42 #include "third_party/WebKit/public/web/WebDocument.h" | 44 #include "third_party/WebKit/public/web/WebDocument.h" |
43 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 45 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
44 #include "third_party/WebKit/public/web/WebInputElement.h" | 46 #include "third_party/WebKit/public/web/WebInputElement.h" |
45 #include "third_party/WebKit/public/web/WebInputEvent.h" | |
46 #include "third_party/WebKit/public/web/WebKit.h" | 47 #include "third_party/WebKit/public/web/WebKit.h" |
47 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 48 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
48 #include "third_party/WebKit/public/web/WebScriptSource.h" | 49 #include "third_party/WebKit/public/web/WebScriptSource.h" |
49 #include "third_party/WebKit/public/web/WebView.h" | 50 #include "third_party/WebKit/public/web/WebView.h" |
50 #include "ui/base/resource/resource_bundle.h" | 51 #include "ui/base/resource/resource_bundle.h" |
51 #include "ui/events/keycodes/keyboard_codes.h" | 52 #include "ui/events/keycodes/keyboard_codes.h" |
52 #include "v8/include/v8.h" | 53 #include "v8/include/v8.h" |
53 | 54 |
54 #if defined(OS_MACOSX) | 55 #if defined(OS_MACOSX) |
55 #include "base/mac/scoped_nsautorelease_pool.h" | 56 #include "base/mac/scoped_nsautorelease_pool.h" |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 static_cast<TestRenderFrame*>(impl->GetMainRenderFrame()); | 658 static_cast<TestRenderFrame*>(impl->GetMainRenderFrame()); |
658 frame->Navigate(common_params, StartNavigationParams(), request_params); | 659 frame->Navigate(common_params, StartNavigationParams(), request_params); |
659 | 660 |
660 // The load actually happens asynchronously, so we pump messages to process | 661 // The load actually happens asynchronously, so we pump messages to process |
661 // the pending continuation. | 662 // the pending continuation. |
662 FrameLoadWaiter(frame).Wait(); | 663 FrameLoadWaiter(frame).Wait(); |
663 view_->GetWebView()->updateAllLifecyclePhases(); | 664 view_->GetWebView()->updateAllLifecyclePhases(); |
664 } | 665 } |
665 | 666 |
666 } // namespace content | 667 } // namespace content |
OLD | NEW |