chromium/ios/chrome/browser/ui/toolbar/secondary_toolbar_keyboard_state_provider.h

// Copyright 2023 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_SECONDARY_TOOLBAR_KEYBOARD_STATE_PROVIDER_H_
#define IOS_CHROME_BROWSER_UI_TOOLBAR_SECONDARY_TOOLBAR_KEYBOARD_STATE_PROVIDER_H_

/// Protocol to retrieve the keyboard state on the active web state.
@protocol SecondaryToolbarKeyboardStateProvider <NSObject>

/// Returns whether the keyboard is active for web content. Aka. not interacting
/// with the app's UI.
- (BOOL)keyboardIsActiveForWebContent;

@end

#endif  // IOS_CHROME_BROWSER_UI_TOOLBAR_SECONDARY_TOOLBAR_KEYBOARD_STATE_PROVIDER_H_