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

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

Issue 9968097: Browser Plugin: Renderer-side changes (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make RefCounted<GuestToEmbedderChannel> a friend 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/renderer/render_view_impl.cc ('k') | no next file » | 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698