chromium/ios/chrome/browser/shared/public/commands/omnibox_commands.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_SHARED_PUBLIC_COMMANDS_OMNIBOX_COMMANDS_H_
#define IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_OMNIBOX_COMMANDS_H_

#import <Foundation/Foundation.h>

// Commands for focusing the omnibox in varous ways
@protocol OmniboxCommands
// Give focus to the omnibox, if it is visible. No-op if it is not visible.  If
// current page is an NTP, first focus the NTP fakebox.
- (void)focusOmnibox;
// Focus the omnibox but skip the NTP check.
- (void)focusOmniboxFromFakebox;
// Cancel omnibox edit (from shield tap or cancel button tap).
- (void)cancelOmniboxEdit;
@end

#endif  // IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_OMNIBOX_COMMANDS_H_