Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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. | |
| 4 | |
| 5 #ifndef tab_helper_delegate_h | |
| 6 #define tab_helper_delegate_h | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 NS_ASSUME_NONNULL_BEGIN | |
| 11 | |
| 12 // Tab Helper IDs | |
| 13 | |
| 14 extern NSString* const SadTabTabHelperID; | |
| 15 | |
| 16 @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:
| |
| 17 | |
| 18 // Returns whether the helper should be active and providing 'help' to the | |
| 19 // delegate. | |
| 20 // tabHelperID is a mechanism for identifying the specific tabHelper identity | |
| 21 - (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:
| |
| 22 | |
| 23 @end | |
| 24 | |
| 25 NS_ASSUME_NONNULL_END | |
| 26 | |
| 27 #endif /* tab_helper_delegate_h */ | |
| OLD | NEW |