| 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/test/render_view_test.h" | 5 #include "content/test/render_view_test.h" |
| 6 | 6 |
| 7 #include "content/common/view_messages.h" | 7 #include "content/common/view_messages.h" |
| 8 #include "content/public/browser/native_web_keyboard_event.h" | 8 #include "content/public/browser/native_web_keyboard_event.h" |
| 9 #include "content/public/common/renderer_preferences.h" | 9 #include "content/public/common/renderer_preferences.h" |
| 10 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // since we are using a MockRenderThread. | 151 // since we are using a MockRenderThread. |
| 152 RenderThreadImpl::RegisterSchemes(); | 152 RenderThreadImpl::RegisterSchemes(); |
| 153 | 153 |
| 154 mock_process_.reset(new MockRenderProcess); | 154 mock_process_.reset(new MockRenderProcess); |
| 155 | 155 |
| 156 // This needs to pass the mock render thread to the view. | 156 // This needs to pass the mock render thread to the view. |
| 157 RenderViewImpl* view = RenderViewImpl::Create( | 157 RenderViewImpl* view = RenderViewImpl::Create( |
| 158 0, | 158 0, |
| 159 kOpenerId, | 159 kOpenerId, |
| 160 content::RendererPreferences(), | 160 content::RendererPreferences(), |
| 161 WebPreferences(), | 161 webkit_glue::WebPreferences(), |
| 162 new SharedRenderViewCounter(0), | 162 new SharedRenderViewCounter(0), |
| 163 kRouteId, | 163 kRouteId, |
| 164 kSurfaceId, | 164 kSurfaceId, |
| 165 dom_storage::kInvalidSessionStorageNamespaceId, | 165 dom_storage::kInvalidSessionStorageNamespaceId, |
| 166 string16(), | 166 string16(), |
| 167 false, | 167 false, |
| 168 false, | 168 false, |
| 169 1, | 169 1, |
| 170 WebKit::WebScreenInfo(), | 170 WebKit::WebScreenInfo(), |
| 171 false, | 171 false, |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 457 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
| 458 impl->set_send_content_state_immediately(true); | 458 impl->set_send_content_state_immediately(true); |
| 459 } | 459 } |
| 460 | 460 |
| 461 WebKit::WebWidget* RenderViewTest::GetWebWidget() { | 461 WebKit::WebWidget* RenderViewTest::GetWebWidget() { |
| 462 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 462 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
| 463 return impl->webwidget(); | 463 return impl->webwidget(); |
| 464 } | 464 } |
| 465 | 465 |
| 466 } // namespace content | 466 } // namespace content |
| OLD | NEW |