| Index: chrome/browser/cocoa/cocoa_test_helper.mm
|
| diff --git a/chrome/browser/cocoa/cocoa_test_helper.mm b/chrome/browser/cocoa/cocoa_test_helper.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..efe5c5cec2694673324731f6aaeb805535936fef
|
| --- /dev/null
|
| +++ b/chrome/browser/cocoa/cocoa_test_helper.mm
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#import "chrome/browser/cocoa/cocoa_test_helper.h"
|
| +
|
| +@implementation CocoaTestHelperWindow
|
| +
|
| +- (id)initWithContentRect:(NSRect)contentRect {
|
| + return [self initWithContentRect:contentRect
|
| + styleMask:NSBorderlessWindowMask
|
| + backing:NSBackingStoreBuffered
|
| + defer:NO];
|
| +}
|
| +
|
| +- (id)init {
|
| + return [self initWithContentRect:NSMakeRect(0, 0, 800, 600)];
|
| +}
|
| +
|
| +- (void)setPretendIsKeyWindow:(BOOL)flag {
|
| + pretendIsKeyWindow_ = flag;
|
| +}
|
| +
|
| +- (BOOL)isKeyWindow {
|
| + return pretendIsKeyWindow_;
|
| +}
|
| +
|
| +@end
|
|
|