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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove semicolon from end of message declaration Created 7 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 | « content/common/view_messages.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index bc44c529258d2f586500e4032d3c18e340722f0d..363ff072b0ecf4af88a66d68cac4fc7a98dfb0d6 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -2495,6 +2495,13 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
}
/**
+ * Show or hide the top controls.
+ */
+ public void showTopControls(boolean show) {
+ nativeShowTopControls(mNativeContentViewCore, show);
+ }
+
+ /**
* @See android.webkit.WebView#pageDown(boolean)
*/
public boolean pageDown(boolean bottom) {
@@ -2760,6 +2767,8 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
private native void nativeExitFullscreen(int nativeContentViewCoreImpl);
private native void nativeEnableHidingTopControls(
int nativeContentViewCoreImpl, boolean enable);
+ private native void nativeShowTopControls(
+ int nativeContentViewCoreImpl, boolean show);
private native void nativeShowImeIfNeeded(int nativeContentViewCoreImpl);
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698