OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_UI_SIDE_SWIPE_CARD_SIDE_SWIPE_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_SIDE_SWIPE_CARD_SIDE_SWIPE_VIEW_H_ |
6 #define IOS_CHROME_BROWSER_UI_SIDE_SWIPE_CARD_SIDE_SWIPE_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_SIDE_SWIPE_CARD_SIDE_SWIPE_VIEW_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // Space reserved at the top for the toolbar. | 35 // Space reserved at the top for the toolbar. |
36 CGFloat topMargin_; | 36 CGFloat topMargin_; |
37 | 37 |
38 // Tab model. | 38 // Tab model. |
39 TabModel* model_; // weak | 39 TabModel* model_; // weak |
40 | 40 |
41 // The image view containing the background image. | 41 // The image view containing the background image. |
42 base::scoped_nsobject<UIImageView> backgroundView_; | 42 base::scoped_nsobject<UIImageView> backgroundView_; |
43 } | 43 } |
44 | 44 |
45 @property(nonatomic, assign) id<SideSwipeControllerDelegate> delegate; | 45 @property(nonatomic, weak) id<SideSwipeControllerDelegate> delegate; |
46 @property(nonatomic, assign) CGFloat topMargin; | 46 @property(nonatomic, assign) CGFloat topMargin; |
47 | 47 |
48 - (id)initWithFrame:(CGRect)frame | 48 - (id)initWithFrame:(CGRect)frame |
49 topMargin:(CGFloat)margin | 49 topMargin:(CGFloat)margin |
50 model:(TabModel*)model; | 50 model:(TabModel*)model; |
51 - (void)updateViewsForDirection:(UISwipeGestureRecognizerDirection)direction | 51 - (void)updateViewsForDirection:(UISwipeGestureRecognizerDirection)direction |
52 withToolbar:(WebToolbarController*)toolbarController; | 52 withToolbar:(WebToolbarController*)toolbarController; |
53 - (void)handleHorizontalPan:(SideSwipeGestureRecognizer*)gesture; | 53 - (void)handleHorizontalPan:(SideSwipeGestureRecognizer*)gesture; |
54 | 54 |
55 @end | 55 @end |
56 | 56 |
57 #endif // IOS_CHROME_BROWSER_UI_SIDE_SWIPE_CARD_SIDE_SWIPE_VIEW_H_ | 57 #endif // IOS_CHROME_BROWSER_UI_SIDE_SWIPE_CARD_SIDE_SWIPE_VIEW_H_ |
OLD | NEW |