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

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

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
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 #endif 148 #endif
149 149
150 #if defined(TOOLKIT_USES_GTK) 150 #if defined(TOOLKIT_USES_GTK)
151 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } 151 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { }
152 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } 152 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { }
153 virtual void AcceleratedCompositingActivated(bool activated) { } 153 virtual void AcceleratedCompositingActivated(bool activated) { }
154 #endif 154 #endif
155 155
156 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; 156 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE;
157 157
158 virtual bool LockMouse() OVERRIDE;
159 virtual void UnlockMouse() OVERRIDE;
160
158 bool is_showing() const { return is_showing_; } 161 bool is_showing() const { return is_showing_; }
159 162
160 private: 163 private:
161 RenderWidgetHost* rwh_; 164 RenderWidgetHost* rwh_;
162 bool is_showing_; 165 bool is_showing_;
163 }; 166 };
164 167
165 // TestRenderViewHost ---------------------------------------------------------- 168 // TestRenderViewHost ----------------------------------------------------------
166 169
167 // TODO(brettw) this should use a TestTabContents which should be generalized 170 // TODO(brettw) this should use a TestTabContents which should be generalized
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 MockRenderProcessHostFactory rph_factory_; 337 MockRenderProcessHostFactory rph_factory_;
335 TestRenderViewHostFactory rvh_factory_; 338 TestRenderViewHostFactory rvh_factory_;
336 339
337 private: 340 private:
338 scoped_ptr<TestTabContents> contents_; 341 scoped_ptr<TestTabContents> contents_;
339 342
340 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 343 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
341 }; 344 };
342 345
343 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 346 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698