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

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

Issue 23129015: Initialize RenderWidget(Host)(View)s with correct visibility state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
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 "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "content/common/dom_storage/dom_storage_types.h" 8 #include "content/common/dom_storage/dom_storage_types.h"
9 #include "content/common/input_messages.h" 9 #include "content/common/input_messages.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 RenderViewImpl* view = RenderViewImpl::Create( 168 RenderViewImpl* view = RenderViewImpl::Create(
169 kOpenerId, 169 kOpenerId,
170 RendererPreferences(), 170 RendererPreferences(),
171 WebPreferences(), 171 WebPreferences(),
172 new SharedRenderViewCounter(0), 172 new SharedRenderViewCounter(0),
173 kRouteId, 173 kRouteId,
174 kMainFrameRouteId, 174 kMainFrameRouteId,
175 kSurfaceId, 175 kSurfaceId,
176 kInvalidSessionStorageNamespaceId, 176 kInvalidSessionStorageNamespaceId,
177 string16(), 177 string16(),
178 false, 178 false, // is_renderer_created
179 false, 179 false, // swapped_out
180 1, 180 false, // hidden
181 1, // next_page_id
181 WebKit::WebScreenInfo(), 182 WebKit::WebScreenInfo(),
182 AccessibilityModeOff, 183 AccessibilityModeOff,
183 true); 184 true);
184 view->AddRef(); 185 view->AddRef();
185 view_ = view; 186 view_ = view;
186 } 187 }
187 188
188 void RenderViewTest::TearDown() { 189 void RenderViewTest::TearDown() {
189 // Try very hard to collect garbage before shutting down. 190 // Try very hard to collect garbage before shutting down.
190 GetMainFrame()->collectGarbage(); 191 GetMainFrame()->collectGarbage();
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 372
372 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); 373 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params);
373 OnMessageReceived(navigate_message); 374 OnMessageReceived(navigate_message);
374 375
375 // The load actually happens asynchronously, so we pump messages to process 376 // The load actually happens asynchronously, so we pump messages to process
376 // the pending continuation. 377 // the pending continuation.
377 ProcessPendingMessages(); 378 ProcessPendingMessages();
378 } 379 }
379 380
380 } // namespace content 381 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents.cc ('k') | content/renderer/render_process_visibility_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698