OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 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 "ui/app_list/cocoa/app_list_view.h" | |
6 | |
7 @implementation AppListView; | |
8 | |
9 const int kWindowWidth = 200; | |
sail
2013/01/08 07:25:27
move above the @implementation line?
or maybe insi
tapted
2013/01/09 04:29:49
Done. (moved to init method)
| |
10 const int kWindowHeight = 200; | |
11 | |
12 - (id)initAsBubble { | |
13 NSRect frame = NSMakeRect(0, 0, kWindowWidth, kWindowHeight); | |
14 if ((self = [super initWithContentRect:frame | |
15 styleMask:NSBorderlessWindowMask | |
16 backing:NSBackingStoreBuffered | |
17 defer:NO])) { | |
18 [self setBackgroundColor:[NSColor grayColor]]; | |
19 } | |
20 | |
21 return self; | |
22 } | |
23 | |
24 @end | |
OLD | NEW |