OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
Paweł Hajdan Jr.
2015/01/30 12:24:29
nit: 2015
| |
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 "ios/chrome/browser/snapshots/snapshot_overlay.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 @implementation SnapshotOverlay | |
10 | |
11 - (id)initWithView:(UIView*)view yOffset:(CGFloat)yOffset { | |
12 self = [super init]; | |
13 if (self) { | |
14 DCHECK(view); | |
15 view_.reset([view retain]); | |
16 yOffset_ = yOffset; | |
17 } | |
18 return self; | |
19 } | |
20 | |
21 - (UIView*)view { | |
22 return view_; | |
23 } | |
24 | |
25 - (CGFloat)yOffset { | |
26 return yOffset_; | |
27 } | |
28 | |
29 @end | |
OLD | NEW |