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

Unified Diff: chrome/test/base/ui_test_utils_mac.mm

Issue 10806056: Move plugin_browsertests.cc from browser_tests to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to mac+win fixes Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/ui_test_utils_mac.mm
===================================================================
--- chrome/test/base/ui_test_utils_mac.mm (revision 147965)
+++ chrome/test/base/ui_test_utils_mac.mm (working copy)
@@ -17,17 +17,6 @@
namespace ui_test_utils {
-void SetWindowBounds(gfx::NativeWindow window, const gfx::Rect& bounds) {
- NSRect new_bounds = NSRectFromCGRect(bounds.ToCGRect());
- if ([[NSScreen screens] count] > 0) {
- new_bounds.origin.y =
- [[[NSScreen screens] objectAtIndex:0] frame].size.height -
- new_bounds.origin.y - new_bounds.size.height;
- }
-
- [window setFrame:new_bounds display:NO];
-}
-
bool IsViewFocused(const Browser* browser, ViewID vid) {
NSWindow* window = browser->window()->GetNativeWindow();
DCHECK(window);

Powered by Google App Engine
This is Rietveld 408576698