blob: 1b24cdc3075abcfc4e0e942d5e6673097db2e6d7 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// 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_COMMANDS_NEW_TAB_COMMAND_H_
#define IOS_CHROME_BROWSER_UI_COMMANDS_NEW_TAB_COMMAND_H_
#import <UIKit/UIKit.h>
#import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
// Command sent to open a new tab, optionally including a point (in UIWindow
// coordinates).
@interface NewTabCommand : GenericChromeCommand
- (instancetype)initWithIncognito:(BOOL)incognito
originPoint:(CGPoint)originPoint
NS_DESIGNATED_INITIALIZER;
// Create a NewTabCommand with an OriginPoint of CGPointZero.
- (instancetype)initWithIncognito:(BOOL)incognito;
// Mark inherited initializer as unavailable to prevent calling it by mistake.
- (instancetype)initWithTag:(NSInteger)tag NS_UNAVAILABLE;
@property(nonatomic, readonly) BOOL incognito;
@property(nonatomic, readonly) CGPoint originPoint;
@end
#endif // IOS_CHROME_BROWSER_UI_COMMANDS_NEW_TAB_COMMAND_H_