#include "base/android/jni_android.h"
#include "base/android/scoped_java_ref.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
#include "ui/android/view_android.h"
#include "content/public/test/android/content_test_jni/DOMUtils_jni.h"
using base::android::JavaParamRef;
namespace content {
static jint JNI_DOMUtils_GetTopControlsShrinkBlinkHeight(
JNIEnv* env,
const JavaParamRef<jobject>& jweb_contents) {
WebContents* web_contents = WebContents::FromJavaWebContents(jweb_contents);
WebContentsDelegate* delegate = web_contents->GetDelegate();
return delegate && delegate->DoBrowserControlsShrinkRendererSize(web_contents)
? delegate->GetTopControlsHeight()
: 0;
}
}
DEFINE_JNI(DOMUtils)