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

Side by Side 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: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698