Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: content/public/test/render_view_test.cc

Issue 12463007: Disable partial swaps for webview guest renderer until we can figure out how to do that properly. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 webkit_glue::WebPreferences(), 166 webkit_glue::WebPreferences(),
167 new SharedRenderViewCounter(0), 167 new SharedRenderViewCounter(0),
168 kRouteId, 168 kRouteId,
169 kSurfaceId, 169 kSurfaceId,
170 dom_storage::kInvalidSessionStorageNamespaceId, 170 dom_storage::kInvalidSessionStorageNamespaceId,
171 string16(), 171 string16(),
172 false, 172 false,
173 false, 173 false,
174 1, 174 1,
175 WebKit::WebScreenInfo(), 175 WebKit::WebScreenInfo(),
176 AccessibilityModeOff); 176 AccessibilityModeOff,
177 true);
177 view->AddRef(); 178 view->AddRef();
178 view_ = view; 179 view_ = view;
179 } 180 }
180 181
181 void RenderViewTest::TearDown() { 182 void RenderViewTest::TearDown() {
182 // Try very hard to collect garbage before shutting down. 183 // Try very hard to collect garbage before shutting down.
183 GetMainFrame()->collectGarbage(); 184 GetMainFrame()->collectGarbage();
184 GetMainFrame()->collectGarbage(); 185 GetMainFrame()->collectGarbage();
185 186
186 // Run the loop so the release task from the renderwidget executes. 187 // Run the loop so the release task from the renderwidget executes.
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 357
357 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); 358 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params);
358 OnMessageReceived(navigate_message); 359 OnMessageReceived(navigate_message);
359 360
360 // The load actually happens asynchronously, so we pump messages to process 361 // The load actually happens asynchronously, so we pump messages to process
361 // the pending continuation. 362 // the pending continuation.
362 ProcessPendingMessages(); 363 ProcessPendingMessages();
363 } 364 }
364 365
365 } // namespace content 366 } // namespace content
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/browser_plugin/browser_plugin_compositing_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698