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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 7863003: Mouse lock implementation, including the renderer side and the Windows version of the browser side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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/browser/renderer_host/test_render_view_host.h ('k') | content/common/view_messages.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/browser_url_handler.h" 5 #include "content/browser/browser_url_handler.h"
6 #include "content/browser/renderer_host/test_backing_store.h" 6 #include "content/browser/renderer_host/test_backing_store.h"
7 #include "content/browser/renderer_host/test_render_view_host.h" 7 #include "content/browser/renderer_host/test_render_view_host.h"
8 #include "content/browser/site_instance.h" 8 #include "content/browser/site_instance.h"
9 #include "content/browser/tab_contents/navigation_controller.h" 9 #include "content/browser/tab_contents/navigation_controller.h"
10 #include "content/browser/tab_contents/test_tab_contents.h" 10 #include "content/browser/tab_contents/test_tab_contents.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 #if defined(OS_POSIX) 245 #if defined(OS_POSIX)
246 gfx::Rect TestRenderWidgetHostView::GetRootWindowBounds() { 246 gfx::Rect TestRenderWidgetHostView::GetRootWindowBounds() {
247 return gfx::Rect(); 247 return gfx::Rect();
248 } 248 }
249 #endif 249 #endif
250 250
251 gfx::PluginWindowHandle TestRenderWidgetHostView::GetCompositingSurface() { 251 gfx::PluginWindowHandle TestRenderWidgetHostView::GetCompositingSurface() {
252 return gfx::kNullPluginWindow; 252 return gfx::kNullPluginWindow;
253 } 253 }
254 254
255 bool TestRenderWidgetHostView::LockMouse() {
256 return false;
257 }
258
259 void TestRenderWidgetHostView::UnlockMouse() {
260 }
261
255 TestRenderViewHostFactory::TestRenderViewHostFactory( 262 TestRenderViewHostFactory::TestRenderViewHostFactory(
256 RenderProcessHostFactory* rph_factory) 263 RenderProcessHostFactory* rph_factory)
257 : render_process_host_factory_(rph_factory) { 264 : render_process_host_factory_(rph_factory) {
258 RenderViewHostFactory::RegisterFactory(this); 265 RenderViewHostFactory::RegisterFactory(this);
259 } 266 }
260 267
261 TestRenderViewHostFactory::~TestRenderViewHostFactory() { 268 TestRenderViewHostFactory::~TestRenderViewHostFactory() {
262 RenderViewHostFactory::UnregisterFactory(); 269 RenderViewHostFactory::UnregisterFactory();
263 } 270 }
264 271
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 SetContents(NULL); 363 SetContents(NULL);
357 364
358 // Make sure that we flush any messages related to TabContents destruction 365 // Make sure that we flush any messages related to TabContents destruction
359 // before we destroy the browser context. 366 // before we destroy the browser context.
360 MessageLoop::current()->RunAllPending(); 367 MessageLoop::current()->RunAllPending();
361 368
362 // Release the browser context on the UI thread. 369 // Release the browser context on the UI thread.
363 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); 370 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release());
364 message_loop_.RunAllPending(); 371 message_loop_.RunAllPending();
365 } 372 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698