chromium/ios/chrome/browser/ui/toolbar/test/test_toolbar_ui_observer.h

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TEST_TEST_TOOLBAR_UI_OBSERVER_H_
#define IOS_CHROME_BROWSER_UI_TOOLBAR_TEST_TEST_TOOLBAR_UI_OBSERVER_H_

#import <Foundation/Foundation.h>

#import "ios/chrome/browser/ui/broadcaster/chrome_broadcaster.h"

// An object that observes the toolbar's UI state.
@interface TestToolbarUIObserver : NSObject<ChromeBroadcastObserver>

// The broadcaster.  Setting will start observing broadcast values from the
// broadcaster.
@property(nonatomic, strong) ChromeBroadcaster* broadcaster;
// The broadcasted UI state observed by this object.
@property(nonatomic, readonly) CGFloat collapsedTopToolbarHeight;
@property(nonatomic, readonly) CGFloat expandedTopToolbarHeight;
@property(nonatomic, readonly) CGFloat expandedBottomToolbarHeight;
@property(nonatomic, readonly) CGFloat collapsedBottomToolbarHeight;

@end
#endif  // IOS_CHROME_BROWSER_UI_TOOLBAR_TEST_TEST_TOOLBAR_UI_OBSERVER_H_