1 // Copyright 2012 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.
5 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
7 #import <UIKit/UIKit.h>
9 #include "base/logging.h"
10 #import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h"
12 @implementation GenericChromeCommand
14 @synthesize tag = _tag;
16 - (instancetype)initWithTag:(NSInteger)tag {
24 - (instancetype)init {
29 - (void)executeOnMainWindow {
30 UIWindow* mainWindow = [[UIApplication sharedApplication] keyWindow];
32 [mainWindow chromeExecuteCommand:self];