| Index: ios/chrome/browser/snapshots/snapshot_overlay.mm
|
| diff --git a/ios/chrome/browser/snapshots/snapshot_overlay.mm b/ios/chrome/browser/snapshots/snapshot_overlay.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c1e0175ce435fd5c916b2b519a48ab041814a26c
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/snapshots/snapshot_overlay.mm
|
| @@ -0,0 +1,29 @@
|
| +// 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"
|
| +
|
| +@implementation SnapshotOverlay
|
| +
|
| +- (id)initWithView:(UIView*)view yOffset:(CGFloat)yOffset {
|
| + self = [super init];
|
| + if (self) {
|
| + DCHECK(view);
|
| + view_.reset([view retain]);
|
| + yOffset_ = yOffset;
|
| + }
|
| + return self;
|
| +}
|
| +
|
| +- (UIView*)view {
|
| + return view_;
|
| +}
|
| +
|
| +- (CGFloat)yOffset {
|
| + return yOffset_;
|
| +}
|
| +
|
| +@end
|
|
|