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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 810853003: Upstream FullscreenManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index ddc027b63fa4074d1ccbcd22ea89b545b02a354d..2f5221a9933ff9ec2d26358f31f70f48e8dc1809 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -41,6 +41,7 @@
#include "chrome/browser/ui/tab_contents/core_tab_helper.h"
#include "chrome/browser/ui/tab_helpers.h"
#include "chrome/common/instant_types.h"
+#include "chrome/common/render_messages.h"
#include "chrome/common/url_constants.h"
#include "components/google/core/browser/google_url_tracker.h"
#include "components/google/core/browser/google_util.h"
@@ -52,6 +53,7 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/top_controls_state.h"
#include "jni/Tab_jni.h"
#include "skia/ext/image_operations.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
@@ -712,6 +714,20 @@ void TabAndroid::CreateHistoricalTab(JNIEnv* env, jobject obj) {
TabAndroid::CreateHistoricalTabFromContents(web_contents());
}
+void TabAndroid::UpdateTopControlsState(JNIEnv* env,
+ jobject obj,
+ jint constraints,
+ jint current,
+ jboolean animate) {
+ content::TopControlsState constraints_state =
+ static_cast<content::TopControlsState>(constraints);
+ content::TopControlsState current_state =
+ static_cast<content::TopControlsState>(current);
+ WebContents* sender = web_contents();
+ sender->Send(new ChromeViewMsg_UpdateTopControlsState(
+ sender->GetRoutingID(), constraints_state, current_state, animate));
+}
+
static void Init(JNIEnv* env, jobject obj) {
TRACE_EVENT0("native", "TabAndroid::Init");
// This will automatically bind to the Java object and pass ownership there.

Powered by Google App Engine
This is Rietveld 408576698