Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: ios/chrome/browser/ui/commands/set_up_for_testing_command.h

Issue 1124173004: [iOS] Upstream //ios/chrome/browser/ui/commands changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/commands/set_up_for_testing_command.h
diff --git a/ios/chrome/browser/ui/commands/set_up_for_testing_command.h b/ios/chrome/browser/ui/commands/set_up_for_testing_command.h
index 9329d864a1a62c567a1cfd36c39ff5b1b26273c2..89f484b0c727f2098143658d9dd1ce7364b6a365 100644
--- a/ios/chrome/browser/ui/commands/set_up_for_testing_command.h
+++ b/ios/chrome/browser/ui/commands/set_up_for_testing_command.h
@@ -7,10 +7,15 @@
#import <Foundation/Foundation.h>
+#import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
+
class GURL;
// Set up for testing command that can be passed to |chromeExecuteCommand|.
-@interface SetUpForTestingCommand : NSObject
+@interface SetUpForTestingCommand : GenericChromeCommand
+
+// Mark inherited initializer as unavailable to prevent calling it by mistake.
+- (instancetype)initWithTag:(NSInteger)tag NS_UNAVAILABLE;
// Initializes this command by parsing the url query.
- (instancetype)initWithURL:(const GURL&)url;
@@ -18,11 +23,17 @@ class GURL;
// Initializes this command.
- (instancetype)initWithClearBrowsingData:(BOOL)clearBrowsingData
closeTabs:(BOOL)closeTabs
- numberOfNewTabs:(NSInteger)numberOfNewTabs;
+ numberOfNewTabs:(NSInteger)numberOfNewTabs
+ NS_DESIGNATED_INITIALIZER;
+
+// Whether the browsing data should be cleared.
+@property(nonatomic, readonly) BOOL clearBrowsingData;
+
+// Whether the existing tabs should be closed.
+@property(nonatomic, readonly) BOOL closeTabs;
-@property(nonatomic, readonly, assign) BOOL clearBrowsingData;
-@property(nonatomic, readonly, assign) BOOL closeTabs;
-@property(nonatomic, assign) NSInteger numberOfNewTabs;
+// The number of new tabs to create.
+@property(nonatomic, readonly) NSInteger numberOfNewTabs;
@end
« no previous file with comments | « ios/chrome/browser/ui/commands/open_url_command.mm ('k') | ios/chrome/browser/ui/commands/set_up_for_testing_command.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698