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

Unified Diff: ios/chrome/browser/snapshots/snapshot_overlay.h

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_manager.mm ('k') | ios/chrome/browser/snapshots/snapshot_overlay.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/snapshots/snapshot_overlay.h
diff --git a/ios/chrome/browser/snapshots/snapshot_overlay.h b/ios/chrome/browser/snapshots/snapshot_overlay.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8b5ec970e88702247cac144760c19daa78a4e66
--- /dev/null
+++ b/ios/chrome/browser/snapshots/snapshot_overlay.h
@@ -0,0 +1,31 @@
+// 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.
+
+#ifndef IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_
+#define IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_
+
+#import <UIKit/UIKit.h>
+
+#include "base/mac/scoped_nsobject.h"
+
+// Simple object containing all the information needed to display an overlay
+// view in a snapshot.
+@interface SnapshotOverlay : NSObject {
+ @private
+ // The overlay view.
+ base::scoped_nsobject<UIView> view_;
+
+ // Y offset for the overlay view. Used to adjust the y position of |view_|
+ // within the snapshot.
+ CGFloat yOffset_;
+}
+
+// Initialize SnapshotOverlay with the given view and yOffset.
+- (id)initWithView:(UIView*)view yOffset:(CGFloat)yOffset;
+- (UIView*)view;
+- (CGFloat)yOffset;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_
« no previous file with comments | « ios/chrome/browser/snapshots/snapshot_manager.mm ('k') | ios/chrome/browser/snapshots/snapshot_overlay.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698