| 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/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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 kOpenerId, | 159 kOpenerId, |
| 160 content::RendererPreferences(), | 160 content::RendererPreferences(), |
| 161 WebPreferences(), | 161 WebPreferences(), |
| 162 new SharedRenderViewCounter(0), | 162 new SharedRenderViewCounter(0), |
| 163 kRouteId, | 163 kRouteId, |
| 164 kSurfaceId, | 164 kSurfaceId, |
| 165 kInvalidSessionStorageNamespaceId, | 165 kInvalidSessionStorageNamespaceId, |
| 166 string16(), | 166 string16(), |
| 167 1, | 167 1, |
| 168 WebKit::WebScreenInfo(), | 168 WebKit::WebScreenInfo(), |
| 169 false); | 169 false, |
| 170 AccessibilityModeOff); |
| 170 view->AddRef(); | 171 view->AddRef(); |
| 171 view_ = view; | 172 view_ = view; |
| 172 | 173 |
| 173 // Attach a pseudo keyboard device to this object. | 174 // Attach a pseudo keyboard device to this object. |
| 174 mock_keyboard_.reset(new MockKeyboard()); | 175 mock_keyboard_.reset(new MockKeyboard()); |
| 175 } | 176 } |
| 176 | 177 |
| 177 void RenderViewTest::TearDown() { | 178 void RenderViewTest::TearDown() { |
| 178 // Try very hard to collect garbage before shutting down. | 179 // Try very hard to collect garbage before shutting down. |
| 179 GetMainFrame()->collectGarbage(); | 180 GetMainFrame()->collectGarbage(); |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 455 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
| 455 impl->set_send_content_state_immediately(true); | 456 impl->set_send_content_state_immediately(true); |
| 456 } | 457 } |
| 457 | 458 |
| 458 WebKit::WebWidget* RenderViewTest::GetWebWidget() { | 459 WebKit::WebWidget* RenderViewTest::GetWebWidget() { |
| 459 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 460 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
| 460 return impl->webwidget(); | 461 return impl->webwidget(); |
| 461 } | 462 } |
| 462 | 463 |
| 463 } // namespace content | 464 } // namespace content |
| OLD | NEW |