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

Unified Diff: content/shell/shell_mac.mm

Issue 15983002: [content shell] When running layout tests on mac, move the window off-screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_mac.mm
diff --git a/content/shell/shell_mac.mm b/content/shell/shell_mac.mm
index f4c6789a6408c2f31cb2ec7a02b5ace648fd064f..28f74843492ec251ea6f9d986ee3a0d326e4c559 100644
--- a/content/shell/shell_mac.mm
+++ b/content/shell/shell_mac.mm
@@ -164,6 +164,10 @@ void Shell::PlatformCreateWindow(int width, int height) {
NSClosableWindowMask |
NSMiniaturizableWindowMask |
NSResizableWindowMask;
+ if (headless_) {
+ content_rect = NSOffsetRect(initial_window_bounds, -10000, -10000);
+ style_mask = NSBorderlessWindowMask;
+ }
CrShellWindow* window =
[[CrShellWindow alloc] initWithContentRect:content_rect
styleMask:style_mask
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698