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

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

Issue 10544060: Merge 140030 - Revert 124453 - WebWidgetClient::screenInfo() no longer does a synchronous IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1132/src/
Patch Set: Created 8 years, 6 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_widget_fullscreen.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"
11 #include "content/renderer/render_view_impl.h" 11 #include "content/renderer/render_view_impl.h"
12 #include "content/renderer/renderer_main_platform_delegate.h" 12 #include "content/renderer/renderer_main_platform_delegate.h"
13 #include "content/test/mock_render_process.h" 13 #include "content/test/mock_render_process.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h " 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h "
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
22 #include "webkit/dom_storage/dom_storage_types.h" 21 #include "webkit/dom_storage/dom_storage_types.h"
23 #include "webkit/glue/webkit_glue.h" 22 #include "webkit/glue/webkit_glue.h"
24 23
25 #if defined(OS_LINUX) && !defined(USE_AURA) 24 #if defined(OS_LINUX) && !defined(USE_AURA)
26 #include "ui/base/gtk/event_synthesis_gtk.h" 25 #include "ui/base/gtk/event_synthesis_gtk.h"
27 #endif 26 #endif
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 content::RendererPreferences(), 159 content::RendererPreferences(),
161 WebPreferences(), 160 WebPreferences(),
162 new SharedRenderViewCounter(0), 161 new SharedRenderViewCounter(0),
163 kRouteId, 162 kRouteId,
164 kSurfaceId, 163 kSurfaceId,
165 dom_storage::kInvalidSessionStorageNamespaceId, 164 dom_storage::kInvalidSessionStorageNamespaceId,
166 string16(), 165 string16(),
167 false, 166 false,
168 false, 167 false,
169 1, 168 1,
170 WebKit::WebScreenInfo(),
171 false, 169 false,
172 AccessibilityModeOff); 170 AccessibilityModeOff);
173 view->AddRef(); 171 view->AddRef();
174 view_ = view; 172 view_ = view;
175 173
176 // Attach a pseudo keyboard device to this object. 174 // Attach a pseudo keyboard device to this object.
177 mock_keyboard_.reset(new MockKeyboard()); 175 mock_keyboard_.reset(new MockKeyboard());
178 } 176 }
179 177
180 void RenderViewTest::TearDown() { 178 void RenderViewTest::TearDown() {
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 455 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
458 impl->set_send_content_state_immediately(true); 456 impl->set_send_content_state_immediately(true);
459 } 457 }
460 458
461 WebKit::WebWidget* RenderViewTest::GetWebWidget() { 459 WebKit::WebWidget* RenderViewTest::GetWebWidget() {
462 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 460 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
463 return impl->webwidget(); 461 return impl->webwidget();
464 } 462 }
465 463
466 } // namespace content 464 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698