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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/Tab.java

Issue 988323005: Move setCoveredByChild methods to Tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
index 72e93ea4c7666289fd388dfa6ca6a9943578ca46..b5320562dcf823a3411b81883175dd47bd30cb1f 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
@@ -2597,6 +2597,23 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener,
}
/**
+ * Check if the tab is covered by its child activity.
+ * @return Whether the tab is covered by its child activity.
+ */
+ public boolean isCoveredByChildActivity() {
+ // Default return value, this is only used by subclasses.
+ return false;
+ }
+
+ /**
+ * Update whether the tab is covered by its child activity.
+ * @param isCoveredByChildActivity Whether the tab is covered by its child activity.
+ */
+ public void setCoveredByChildActivity(boolean isCoveredByChildActivity) {
+ // Empty implementation, only used by subclasses.
+ }
+
+ /**
* Ensures the counter is at least as high as the specified value. The counter should always
* point to an unused ID (which will be handed out next time a request comes in). Exposed so
* that anything externally loading tabs and ids can set enforce new tabs start at the correct
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698