Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / chrome / browser / snapshots / snapshot_overlay.h
blob2e2369317cc5982b298ed5691482528469514db7
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.
5 #ifndef IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_
6 #define IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_
8 #import <UIKit/UIKit.h>
10 // Simple object containing all the information needed to display an overlay
11 // view in a snapshot.
12 @interface SnapshotOverlay : NSObject
14 // Initialize SnapshotOverlay with the given |view| and |yOffset|.
15 - (instancetype)initWithView:(UIView*)view
16 yOffset:(CGFloat)yOffset NS_DESIGNATED_INITIALIZER;
18 - (instancetype)init NS_UNAVAILABLE;
20 // The overlay view.
21 @property(nonatomic, readonly) UIView* view;
23 // Y offset for the overlay view. Used to adjust the y position of |_view|
24 // within the snapshot.
25 @property(nonatomic, readonly) CGFloat yOffset;
27 @end
29 #endif // IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_