| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SIDE_SWIPE_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_SIDE_SWIPE_SIDE_SWIPE_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SIDE_SWIPE_SIDE_SWIPE_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_SIDE_SWIPE_SIDE_SWIPE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include "ios/chrome/browser/infobars/infobar_container_ios.h" | 10 #include "ios/chrome/browser/infobars/infobar_container_ios.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // -selectedTabChanged on the toolbar only if |newSelection| is YES. | 56 // -selectedTabChanged on the toolbar only if |newSelection| is YES. |
| 57 - (void)displayTab:(Tab*)tab isNewSelection:(BOOL)newSelection; | 57 - (void)displayTab:(Tab*)tab isNewSelection:(BOOL)newSelection; |
| 58 // Check the invariant of "toolbar in front of infobar container which | 58 // Check the invariant of "toolbar in front of infobar container which |
| 59 // is in front of content area." This DCHECK happens if addSubview and/or | 59 // is in front of content area." This DCHECK happens if addSubview and/or |
| 60 // insertSubview messed up the view ordering earlier. | 60 // insertSubview messed up the view ordering earlier. |
| 61 - (BOOL)verifyToolbarViewPlacementInView:(UIView*)views; | 61 - (BOOL)verifyToolbarViewPlacementInView:(UIView*)views; |
| 62 // Controls the visibility of views such as the findbar, infobar and voice | 62 // Controls the visibility of views such as the findbar, infobar and voice |
| 63 // search bar. | 63 // search bar. |
| 64 - (void)updateAccessoryViewsForSideSwipeWithVisibility:(BOOL)visible; | 64 - (void)updateAccessoryViewsForSideSwipeWithVisibility:(BOOL)visible; |
| 65 // Returns the height of the header view for the tab model's current tab. | 65 // Returns the height of the header view for the tab model's current tab. |
| 66 - (CGFloat)headerHeight; | 66 - (CGFloat)headerHeightForCurrentTab; |
| 67 // Returns |YES| if side swipe should be blocked from initiating, such as when | 67 // Returns |YES| if side swipe should be blocked from initiating, such as when |
| 68 // voice search is up, or if the tools menu is enabled. | 68 // voice search is up, or if the tools menu is enabled. |
| 69 - (BOOL)preventSideSwipe; | 69 - (BOOL)preventSideSwipe; |
| 70 @end | 70 @end |
| 71 | 71 |
| 72 // Controls how an edge gesture is processed, either as tab change or a page | 72 // Controls how an edge gesture is processed, either as tab change or a page |
| 73 // change. For tab changes two full screen CardSideSwipeView views are dragged | 73 // change. For tab changes two full screen CardSideSwipeView views are dragged |
| 74 // across the screen. For page changes the SideSwipeControllerDelegate | 74 // across the screen. For page changes the SideSwipeControllerDelegate |
| 75 // |contentView| is moved across the screen and a SideSwipeNavigationView is | 75 // |contentView| is moved across the screen and a SideSwipeNavigationView is |
| 76 // shown in the remaining space. | 76 // shown in the remaining space. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 96 | 96 |
| 97 // Returns |NO| if the device should not rotate. | 97 // Returns |NO| if the device should not rotate. |
| 98 - (BOOL)shouldAutorotate; | 98 - (BOOL)shouldAutorotate; |
| 99 | 99 |
| 100 // Resets the swipeDelegate's contentView frame origin x position to zero. | 100 // Resets the swipeDelegate's contentView frame origin x position to zero. |
| 101 - (void)resetContentView; | 101 - (void)resetContentView; |
| 102 | 102 |
| 103 @end | 103 @end |
| 104 | 104 |
| 105 #endif // IOS_CHROME_BROWSER_UI_SIDE_SWIPE_SIDE_SWIPE_CONTROLLER_H_ | 105 #endif // IOS_CHROME_BROWSER_UI_SIDE_SWIPE_SIDE_SWIPE_CONTROLLER_H_ |
| OLD | NEW |