1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_ANDROID_TRANSITION_PAGE_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_TRANSITION_PAGE_HELPER_H_
8 #include "base/android/jni_android.h"
9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h"
16 class TransitionPageHelper
{
18 static TransitionPageHelper
* FromJavaObject(JNIEnv
* env
, jobject jobj
);
19 static bool Register(JNIEnv
* env
);
21 TransitionPageHelper();
22 virtual ~TransitionPageHelper();
24 void Destroy(JNIEnv
* env
, jobject jobj
);
26 void SetWebContents(JNIEnv
* env
, jobject jobj
, jobject jcontent_view_core
);
27 void ReleaseWebContents(JNIEnv
* env
, jobject jobj
);
28 void SetOpacity(JNIEnv
* env
,
30 jobject jcontent_view_core
,
34 scoped_ptr
<content::WebContents
> web_contents_
;
36 DISALLOW_COPY_AND_ASSIGN(TransitionPageHelper
);
39 #endif // CHROME_BROWSER_ANDROID_TRANSITION_PAGE_HELPER_H_