blob: d41b8a64e6f2a9a8931391bf7c54750d2c96c82d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// 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 "ios/chrome/browser/snapshots/snapshot_overlay.h"
#include "base/logging.h"
#import "base/mac/scoped_nsobject.h"
@implementation SnapshotOverlay {
base::scoped_nsobject<UIView> _view;
}
@synthesize yOffset = _yOffset;
- (instancetype)initWithView:(UIView*)view yOffset:(CGFloat)yOffset {
self = [super init];
if (self) {
DCHECK(view);
_view.reset([view retain]);
_yOffset = yOffset;
}
return self;
}
- (instancetype)init {
NOTREACHED();
return nil;
}
- (UIView*)view {
return _view;
}
@end
|