uikit_ui_util.h 626 B

123456789101112131415161718
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef IOS_WEB_COMMON_UIKIT_UI_UTIL_H_
  5. #define IOS_WEB_COMMON_UIKIT_UI_UTIL_H_
  6. #import <UIKit/UIKit.h>
  7. // Returns current keyWindow, from the list of all of this application windows.
  8. // Use only if the context of which window doesn't matter.
  9. UIWindow* GetAnyKeyWindow();
  10. // Returns interface orientation for the current window, returned by
  11. // GetAnyKeyWindow().
  12. UIInterfaceOrientation GetInterfaceOrientation();
  13. #endif // IOS_WEB_COMMON_UIKIT_UI_UTIL_H_