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

Unified Diff: ios/chrome/browser/web/tab_helper_delegate.h

Issue 2807843002: Refactor creation of SadTabView into a tab helper object (Closed)
Patch Set: Created 3 years, 8 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/web/tab_helper_delegate.h
diff --git a/ios/chrome/browser/web/tab_helper_delegate.h b/ios/chrome/browser/web/tab_helper_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..81f8715b227e6dee14f0b16fde65027e0331fd85
--- /dev/null
+++ b/ios/chrome/browser/web/tab_helper_delegate.h
@@ -0,0 +1,27 @@
+// 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 tab_helper_delegate_h
+#define tab_helper_delegate_h
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Tab Helper IDs
+
+extern NSString* const SadTabTabHelperID;
+
+@protocol TabHelperDelegate<NSObject>
kkhorimoto 2017/04/10 22:31:10 Also, for C++ objects, we should use C++ delegates
kkhorimoto 2017/04/10 22:31:10 Can you add comments elaborating the purpose of th
PL 2017/04/11 01:35:22 Done, thanks! Changing this as discussed offline:
+
+// Returns whether the helper should be active and providing 'help' to the
+// delegate.
+// tabHelperID is a mechanism for identifying the specific tabHelper identity
+- (BOOL)tabHelperShouldBeActive:(NSString*)tabHelperID;
kkhorimoto 2017/04/10 22:44:14 Another reason I'm not a big fan of this is that "
Eugene But (OOO till 7-30) 2017/04/10 22:56:28 Do you want to rename this delegate to SadTabTabHe
PL 2017/04/11 01:35:22 Done, thanks! Changing this as discussed offline:
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* tab_helper_delegate_h */

Powered by Google App Engine
This is Rietveld 408576698