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