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

Side by Side Diff: ios/chrome/browser/web/sad_tab_tab_helper_delegate.h

Issue 2807843002: Refactor creation of SadTabView into a tab helper object (Closed)
Patch Set: Attempt to fix build dependency 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/web/sad_tab_tab_helper.mm ('k') | ios/chrome/browser/web/sad_tab_tab_helper_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698