OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_ANDROID_H_ |
| 7 |
| 8 #include "base/android/jni_android.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/screen_orientation/screen_orientation_provider.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class ScreenOrientationProviderAndroid : public ScreenOrientationProvider { |
| 15 public: |
| 16 ScreenOrientationProviderAndroid(); |
| 17 |
| 18 static bool Register(JNIEnv* env); |
| 19 |
| 20 // ScreenOrientationProvider |
| 21 virtual void LockOrientation(blink::WebScreenOrientations) OVERRIDE; |
| 22 virtual void UnlockOrientation() OVERRIDE; |
| 23 |
| 24 private: |
| 25 virtual ~ScreenOrientationProviderAndroid(); |
| 26 |
| 27 base::android::ScopedJavaGlobalRef<jobject> j_screen_orientation_provider_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProviderAndroid); |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_ANDROID_H_ |
OLD | NEW |