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

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

Issue 1525793005: Move Tab's top controls visibility to a delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed getContentViewCore related logic Created 5 years 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: chrome/android/java/src/org/chromium/chrome/browser/tab/TabDelegateFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabDelegateFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabDelegateFactory.java
index aa616f273411125ede953ee8d66f391b0b8e3969..da692ed80cdd081bbc57720fb5037b6ce1d9e408 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabDelegateFactory.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabDelegateFactory.java
@@ -57,4 +57,13 @@ public class TabDelegateFactory {
public AppBannerManager createAppBannerManager(Tab tab) {
return new AppBannerManager(tab, tab.getApplicationContext());
}
+
+ /**
+ * Creates the {@link TopControlsVisibilityDelegate} the tab will be initialized with.
+ * @param tab The associated {@link Tab}.
+ * @return {@link TopControlsVisibilityDelegate} to be used for the given tab.
+ */
+ public TopControlsVisibilityDelegate createTopControlsVisibilityDelegate(Tab tab) {
+ return new TopControlsVisibilityDelegate(tab);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698