chromium/ios/web/common/uikit_ui_util.h

// Copyright 2020 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_WEB_COMMON_UIKIT_UI_UTIL_H_
#define IOS_WEB_COMMON_UIKIT_UI_UTIL_H_

#import <UIKit/UIKit.h>

// Returns current keyWindow, from the list of all of this application windows.
// Use only if the context of which window doesn't matter.
UIWindow* GetAnyKeyWindow();

// Returns interface orientation for the current window, returned by
// GetAnyKeyWindow().
UIInterfaceOrientation GetInterfaceOrientation();

#endif  // IOS_WEB_COMMON_UIKIT_UI_UTIL_H_