Chromium Code Reviews| Index: ui/app_list/cocoa/app_list_view.mm |
| diff --git a/ui/app_list/cocoa/app_list_view.mm b/ui/app_list/cocoa/app_list_view.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..77a48597df30c9343dca33ff5d290696c34a6f8f |
| --- /dev/null |
| +++ b/ui/app_list/cocoa/app_list_view.mm |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2013 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 "ui/app_list/cocoa/app_list_view.h" |
| + |
| +@implementation AppListView; |
| + |
| +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)
|
| +const int kWindowHeight = 200; |
| + |
| +- (id)initAsBubble { |
| + NSRect frame = NSMakeRect(0, 0, kWindowWidth, kWindowHeight); |
| + if ((self = [super initWithContentRect:frame |
| + styleMask:NSBorderlessWindowMask |
| + backing:NSBackingStoreBuffered |
| + defer:NO])) { |
| + [self setBackgroundColor:[NSColor grayColor]]; |
| + } |
| + |
| + return self; |
| +} |
| + |
| +@end |