Revert 268405 "Make sure that ScratchBuffer::Allocate() always r..."
[chromium-blink-merge.git] / content / browser / screen_orientation / screen_orientation_provider_android.h
bloba526e24596cb6352f7990949c01a6563334c235b
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"
12 namespace content {
14 class ScreenOrientationProviderAndroid : public ScreenOrientationProvider {
15 public:
16 ScreenOrientationProviderAndroid();
18 static bool Register(JNIEnv* env);
20 // ScreenOrientationProvider
21 virtual void LockOrientation(blink::WebScreenOrientationLockType) OVERRIDE;
22 virtual void UnlockOrientation() OVERRIDE;
24 private:
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_