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 IOS_CHROME_BROWSER_WEB_SAD_TAB_TAB_HELPER_DELEGATE_H_ |
| 6 #define IOS_CHROME_BROWSER_WEB_SAD_TAB_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 - i.e. the tab is |
| 19 // frontmost and the application is in an active state - allowing differences |
| 20 // in the behavior of the helper for visible vs. non-visible tabs. |
| 21 - (BOOL)isTabVisibleForTabHelper:(SadTabTabHelper*)tabHelper; |
| 22 |
| 23 @end |
| 24 |
| 25 NS_ASSUME_NONNULL_END |
| 26 |
| 27 #endif // IOS_CHROME_BROWSER_WEB_SAD_TAB_TAB_HELPER_DELEGATE_H_ |
OLD | NEW |