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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« 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