1 // Copyright 2014 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 CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID_H_
6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID_H_
8 #include "base/android/jni_android.h"
9 #include "base/compiler_specific.h"
10 #include "content/browser/screen_orientation/screen_orientation_provider.h"
14 class ScreenOrientationProviderAndroid
: public ScreenOrientationProvider
{
16 ScreenOrientationProviderAndroid();
18 static bool Register(JNIEnv
* env
);
20 // ScreenOrientationProvider
21 virtual void LockOrientation(blink::WebScreenOrientationLockType
) OVERRIDE
;
22 virtual void UnlockOrientation() OVERRIDE
;
25 virtual ~ScreenOrientationProviderAndroid();
27 base::android::ScopedJavaGlobalRef
<jobject
> j_screen_orientation_provider_
;
29 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProviderAndroid
);
32 } // namespace content
34 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID_H_