Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: ios/chrome/browser/snapshots/snapshot_overlay.mm

Issue 862693003: Upstream //ios/chrome/browser/snapshots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 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.
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/snapshots/snapshot_overlay.h ('k') | ios/chrome/browser/snapshots/snapshots_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698