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

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

Issue 10384128: Quote WebPreferences in namespace webkit_glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2012 Created 8 years, 7 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
« no previous file with comments | « content/shell/shell_content_browser_client.cc ('k') | content/test/web_contents_tester.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // since we are using a MockRenderThread. 151 // since we are using a MockRenderThread.
152 RenderThreadImpl::RegisterSchemes(); 152 RenderThreadImpl::RegisterSchemes();
153 153
154 mock_process_.reset(new MockRenderProcess); 154 mock_process_.reset(new MockRenderProcess);
155 155
156 // This needs to pass the mock render thread to the view. 156 // This needs to pass the mock render thread to the view.
157 RenderViewImpl* view = RenderViewImpl::Create( 157 RenderViewImpl* view = RenderViewImpl::Create(
158 0, 158 0,
159 kOpenerId, 159 kOpenerId,
160 content::RendererPreferences(), 160 content::RendererPreferences(),
161 WebPreferences(), 161 webkit_glue::WebPreferences(),
162 new SharedRenderViewCounter(0), 162 new SharedRenderViewCounter(0),
163 kRouteId, 163 kRouteId,
164 kSurfaceId, 164 kSurfaceId,
165 dom_storage::kInvalidSessionStorageNamespaceId, 165 dom_storage::kInvalidSessionStorageNamespaceId,
166 string16(), 166 string16(),
167 false, 167 false,
168 false, 168 false,
169 1, 169 1,
170 WebKit::WebScreenInfo(), 170 WebKit::WebScreenInfo(),
171 false, 171 false,
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 457 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
458 impl->set_send_content_state_immediately(true); 458 impl->set_send_content_state_immediately(true);
459 } 459 }
460 460
461 WebKit::WebWidget* RenderViewTest::GetWebWidget() { 461 WebKit::WebWidget* RenderViewTest::GetWebWidget() {
462 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 462 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
463 return impl->webwidget(); 463 return impl->webwidget();
464 } 464 }
465 465
466 } // namespace content 466 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_content_browser_client.cc ('k') | content/test/web_contents_tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698