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

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

Issue 1214553002: Make showing the page title in a custom tab a dev option (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made the added constants final Created 5 years, 6 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 | « chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java ('k') | no next file » | 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/toolbar/ToolbarManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
index d7cc1f393fc5e809b56f9ba100e8998d505e6172..38654cecb01939fe8f46ddbf647917cd6b4ab5c8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
@@ -797,6 +797,14 @@ public class ToolbarManager implements ToolbarTabController, UrlFocusChangeListe
}
/**
+ * Sets whether a title should be shown within the Toolbar.
+ * @param showTitle Whether a title should be shown.
+ */
+ public void setShowTitle(boolean showTitle) {
+ mLocationBar.setShowTitle(showTitle);
+ }
+
+ /**
* Focuses or unfocuses the URL bar.
* @param focused Whether URL bar should be focused.
*/
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698