blob: efe5c5cec2694673324731f6aaeb805535936fef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|