Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / fast_resize_view.mm
blobb5bfb1eabe4908c8c91f0841c98e448e8f0a4b8f
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.
5 #import "chrome/browser/ui/cocoa/fast_resize_view.h"
7 #import <Cocoa/Cocoa.h>
9 #include "base/logging.h"
10 #include "base/mac/scoped_nsobject.h"
11 #include "ui/base/cocoa/animation_utils.h"
13 @implementation FastResizeView
15 - (id)initWithFrame:(NSRect)frameRect {
16   if ((self = [super initWithFrame:frameRect])) {
17     ScopedCAActionDisabler disabler;
18     base::scoped_nsobject<CALayer> layer([[CALayer alloc] init]);
19     [layer setBackgroundColor:CGColorGetConstantColor(kCGColorWhite)];
20     [self setLayer:layer];
21     [self setWantsLayer:YES];
22   }
23   return self;
26 - (BOOL)isOpaque {
27   return YES;
30 @end