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

Unified 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: Further small review changes 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/sad_tab_tab_helper_delegate.h
diff --git a/ios/chrome/browser/web/sad_tab_tab_helper_delegate.h b/ios/chrome/browser/web/sad_tab_tab_helper_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..e10dd9a0037c69bdaad7e8c014e4751f459c4d07
--- /dev/null
+++ b/ios/chrome/browser/web/sad_tab_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 __IOS_CHROME_BROWSER_WEB_SAD_TAB_TAB_HELPER_DELEGATE_H_
Eugene But (OOO till 7-30) 2017/04/12 01:01:32 IOS_CHROME_BROWSER_WEB_SAD_TAB_TAB_HELPER_DELEGATE
peterlaurens 2017/04/12 17:07:38 This is the boilerplate boilerplate.py generated,
+#define __IOS_CHROME_BROWSER_WEB_SAD_TAB_TAB_HELPER_DELEGATE_H_
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+class SadTabTabHelper;
+
+// SadTabTabHelperDelegate defines an interface that allows SadTabTabHelper
+// instances to learn about the visibility of the Tab they are helping.
+@protocol SadTabTabHelperDelegate<NSObject>
+
+// Returns whether the tab for the tab helper is visible - i.e. the tab is
+// frontmost and the application is in an active state - allowing differences
+// in the behavior of the helper for visible vs. non-visible tabs.
+- (BOOL)isTabVisibleForTabHelper:(SadTabTabHelper*)tabHelper;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // __IOS_CHROME_BROWSER_WEB_SAD_TAB_TAB_HELPER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698