blob: bde557461049802781a7b3ef6f1cfb0f4ef005a8 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ANDROID_TAB_BROWSER_CONTROLS_CONSTRAINTS_HELPER_H_
#define CHROME_BROWSER_ANDROID_TAB_BROWSER_CONTROLS_CONSTRAINTS_HELPER_H_
#include "base/android/scoped_java_ref.h"
// Dispatches changes to the browser controls constraints for a given tab.
class TabBrowserControlsConstraintsHelper {
public:
TabBrowserControlsConstraintsHelper(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj);
~TabBrowserControlsConstraintsHelper();
void UpdateState(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& jweb_contents,
jint constraints,
jint current,
jboolean animate,
const base::android::JavaParamRef<jobject>& joffset_tag_modifications);
void OnDestroyed(JNIEnv* env);
private:
base::android::ScopedJavaGlobalRef<jobject> jobj_;
};
#endif // CHROME_BROWSER_ANDROID_TAB_BROWSER_CONTROLS_CONSTRAINTS_HELPER_H_