Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / android / transition_page_helper.h
blob20d475b83eba22e538e61cb74e32d7072112664c
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"
12 namespace content {
13 class WebContents;
16 class TransitionPageHelper {
17 public:
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,
29 jobject jobj,
30 jobject jcontent_view_core,
31 jfloat opacity);
33 private:
34 scoped_ptr<content::WebContents> web_contents_;
36 DISALLOW_COPY_AND_ASSIGN(TransitionPageHelper);
39 #endif // CHROME_BROWSER_ANDROID_TRANSITION_PAGE_HELPER_H_