blob: d8e299c51905056a2c145f3dd78eade2bb44ca26 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/test/fakes/fake_overscroll_actions_controller_delegate.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
@implementation FakeOverscrollActionsControllerDelegate
- (instancetype)init {
self = [super init];
if (self) {
_headerView = [[UIView alloc] init];
}
return self;
}
- (void)overscrollActionsController:(OverscrollActionsController*)controller
didTriggerAction:(OverscrollAction)action {
_selectedAction = action;
}
- (BOOL)shouldAllowOverscrollActions {
return YES;
}
- (UIView*)toolbarSnapshotView {
return nil;
}
- (UIView*)headerView {
return _headerView;
}
- (CGFloat)overscrollActionsControllerHeaderInset:
(OverscrollActionsController*)controller {
return 0;
}
- (CGFloat)overscrollHeaderHeight {
return 0;
}
@end