| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
| 6 |
| 7 @implementation CocoaTestHelperWindow |
| 8 |
| 9 - (id)initWithContentRect:(NSRect)contentRect { |
| 10 return [self initWithContentRect:contentRect |
| 11 styleMask:NSBorderlessWindowMask |
| 12 backing:NSBackingStoreBuffered |
| 13 defer:NO]; |
| 14 } |
| 15 |
| 16 - (id)init { |
| 17 return [self initWithContentRect:NSMakeRect(0, 0, 800, 600)]; |
| 18 } |
| 19 |
| 20 - (void)setPretendIsKeyWindow:(BOOL)flag { |
| 21 pretendIsKeyWindow_ = flag; |
| 22 } |
| 23 |
| 24 - (BOOL)isKeyWindow { |
| 25 return pretendIsKeyWindow_; |
| 26 } |
| 27 |
| 28 @end |
| OLD | NEW |