OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/dom_storage_common.h" | 7 #include "content/common/dom_storage_common.h" |
8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
9 #include "content/public/browser/native_web_keyboard_event.h" | 9 #include "content/public/browser/native_web_keyboard_event.h" |
10 #include "content/public/common/renderer_preferences.h" | 10 #include "content/public/common/renderer_preferences.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // This needs to pass the mock render thread to the view. | 146 // This needs to pass the mock render thread to the view. |
147 RenderViewImpl* view = RenderViewImpl::Create( | 147 RenderViewImpl* view = RenderViewImpl::Create( |
148 0, | 148 0, |
149 kOpenerId, | 149 kOpenerId, |
150 content::RendererPreferences(), | 150 content::RendererPreferences(), |
151 WebPreferences(), | 151 WebPreferences(), |
152 new SharedRenderViewCounter(0), | 152 new SharedRenderViewCounter(0), |
153 kRouteId, | 153 kRouteId, |
154 kInvalidSessionStorageNamespaceId, | 154 kInvalidSessionStorageNamespaceId, |
155 string16(), | 155 string16(), |
| 156 false /* is_renderer_created */, |
156 1); | 157 1); |
157 view->AddRef(); | 158 view->AddRef(); |
158 view_ = view; | 159 view_ = view; |
159 | 160 |
160 // Attach a pseudo keyboard device to this object. | 161 // Attach a pseudo keyboard device to this object. |
161 mock_keyboard_.reset(new MockKeyboard()); | 162 mock_keyboard_.reset(new MockKeyboard()); |
162 } | 163 } |
163 | 164 |
164 void RenderViewTest::TearDown() { | 165 void RenderViewTest::TearDown() { |
165 // Try very hard to collect garbage before shutting down. | 166 // Try very hard to collect garbage before shutting down. |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 430 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
430 impl->set_send_content_state_immediately(true); | 431 impl->set_send_content_state_immediately(true); |
431 } | 432 } |
432 | 433 |
433 WebKit::WebWidget* RenderViewTest::GetWebWidget() { | 434 WebKit::WebWidget* RenderViewTest::GetWebWidget() { |
434 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 435 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
435 return impl->webwidget(); | 436 return impl->webwidget(); |
436 } | 437 } |
437 | 438 |
438 } // namespace content | 439 } // namespace content |
OLD | NEW |