| 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_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_CONTROLLER_H
_ | 5 #ifndef IOS_CHROME_BROWSER_UI_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_CONTROLLER_H
_ |
| 6 #define IOS_CHROME_BROWSER_UI_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_CONTROLLER_H
_ | 6 #define IOS_CHROME_BROWSER_UI_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_CONTROLLER_H
_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #import "ios/chrome/browser/ui/overscroll_actions/overscroll_actions_view.h" | 10 #import "ios/chrome/browser/ui/overscroll_actions/overscroll_actions_view.h" |
| 11 #import "ios/chrome/browser/ui/util/relaxed_bounds_constraints_hittest.h" | 11 #import "ios/chrome/browser/ui/util/relaxed_bounds_constraints_hittest.h" |
| 12 #import "ios/web/public/web_state/crw_web_controller_observer.h" | 12 #import "ios/web/public/web_state/crw_web_controller_observer.h" |
| 13 #import "ios/web/public/web_state/crw_web_view_scroll_view_proxy.h" | 13 #import "ios/web/public/web_state/ui/crw_web_view_scroll_view_proxy.h" |
| 14 | 14 |
| 15 @class OverscrollActionsController; | 15 @class OverscrollActionsController; |
| 16 | 16 |
| 17 // Describe the current state of the overscroll action controller. | 17 // Describe the current state of the overscroll action controller. |
| 18 enum class OverscrollState { | 18 enum class OverscrollState { |
| 19 NO_PULL_STARTED, // No pull started. | 19 NO_PULL_STARTED, // No pull started. |
| 20 STARTED_PULLING, // Started pulling. | 20 STARTED_PULLING, // Started pulling. |
| 21 ACTION_READY // Ready to take action on pull end. | 21 ACTION_READY // Ready to take action on pull end. |
| 22 }; | 22 }; |
| 23 | 23 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 - (void)disableOverscrollActions; | 111 - (void)disableOverscrollActions; |
| 112 // Enabling overscroll actions will reverse the effect of a call to | 112 // Enabling overscroll actions will reverse the effect of a call to |
| 113 // -disableOverscrollActions. | 113 // -disableOverscrollActions. |
| 114 - (void)enableOverscrollActions; | 114 - (void)enableOverscrollActions; |
| 115 // Sets the style of the overscroll actions. | 115 // Sets the style of the overscroll actions. |
| 116 - (void)setStyle:(OverscrollStyle)style; | 116 - (void)setStyle:(OverscrollStyle)style; |
| 117 | 117 |
| 118 @end | 118 @end |
| 119 | 119 |
| 120 #endif // IOS_CHROME_BROWSER_UI_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_CONTROLLE
R_H_ | 120 #endif // IOS_CHROME_BROWSER_UI_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_CONTROLLE
R_H_ |
| OLD | NEW |