OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
Paweł Hajdan Jr.
2015/01/30 12:24:29
nit: 2015
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_ | |
6 #define IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_ | |
7 | |
8 #import <UIKit/UIKit.h> | |
9 | |
10 #include "base/mac/scoped_nsobject.h" | |
11 | |
12 // Simple object containing all the information needed to display an overlay | |
13 // view in a snapshot. | |
14 @interface SnapshotOverlay : NSObject { | |
15 @private | |
16 // The overlay view. | |
17 base::scoped_nsobject<UIView> view_; | |
18 | |
19 // Y offset for the overlay view. Used to adjust the y position of |view_| | |
20 // within the snapshot. | |
21 CGFloat yOffset_; | |
22 } | |
23 | |
24 // Initialize SnapshotOverlay with the given view and yOffset. | |
25 - (id)initWithView:(UIView*)view yOffset:(CGFloat)yOffset; | |
26 - (UIView*)view; | |
27 - (CGFloat)yOffset; | |
28 | |
29 @end | |
30 | |
31 #endif // IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_OVERLAY_H_ | |
OLD | NEW |