[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / tab_contents / overlayable_contents_controller.mm
blob50b743ac9eeb3c5079b361d1f904ff9dc379b858
1 // Copyright 2011 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/tab_contents/overlayable_contents_controller.h"
7 #include "content/public/browser/web_contents.h"
9 @implementation OverlayableContentsController
11 - (id)initWithBrowser:(Browser*)browser {
12   if ((self = [super init])) {
13     base::scoped_nsobject<NSView> view(
14         [[NSView alloc] initWithFrame:NSZeroRect]);
15     [view setAutoresizingMask:NSViewHeightSizable | NSViewWidthSizable];
16     [self setView:view];
18     activeContainer_.reset([[NSView alloc] initWithFrame:NSZeroRect]);
19     [activeContainer_ setAutoresizingMask:NSViewHeightSizable |
20                                           NSViewWidthSizable];
21     [view addSubview:activeContainer_];
22   }
23   return self;
26 - (NSView*)activeContainer {
27   return activeContainer_.get();
30 @end