Chromium Code Reviews| 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. |
|
Paweł Hajdan Jr.
2015/01/30 12:24:29
nit: 2015
|
| +// 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_ |