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

Side by Side Diff: chrome/browser/cocoa/cocoa_test_helper.mm

Issue 192031: [Mac] Add testing code to expose an NSColor memory leak. (Closed)
Patch Set: Remove egregious s/private/public/ leftover from prototyping. Created 11 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/cocoa/cocoa_test_helper.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/cocoa_test_helper.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698