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 class SadTabTabHelper; |
| 13 |
| 14 // SadTabTabHelperDelegate defines an interface that allows SadTabTabHelper |
| 15 // instances to learn about the visibility of the Tab they are helping |
| 16 @protocol SadTabTabHelperDelegate<NSObject> |
| 17 |
| 18 // Returns whether the tab for the tab helper is visible, allowing differences |
| 19 // in the behavior of the helper for visible vs. non-visible tabs |
| 20 - (BOOL)isTabVisibleForTabHelper:(SadTabTabHelper*)tabHelper; |
| 21 |
| 22 @end |
| 23 |
| 24 NS_ASSUME_NONNULL_END |
| 25 |
| 26 #endif /* tab_helper_delegate_h */ |
OLD | NEW |