Chromium Code Reviews| 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 // ScreenOrientationProvider for Android. | |
| 15 class ScreenOrientationProviderAndroid : public ScreenOrientationProvider { | |
| 16 public: | |
| 17 static bool Register(JNIEnv* env); | |
| 18 | |
| 19 // ScreenOrientationProvider | |
| 20 virtual void LockOrientation(blink::WebScreenOrientations) OVERRIDE; | |
| 21 virtual void UnlockOrientation() OVERRIDE; | |
| 22 | |
| 23 private: | |
| 24 virtual ~ScreenOrientationProviderAndroid() {} | |
|
jochen (gone - plz use gerrit)
2014/03/12 12:42:27
don't put non-trivial dtors in the header (it's no
mlamouri (slow - plz ping)
2014/03/12 14:16:36
Done.
| |
| 25 | |
| 26 base::android::ScopedJavaGlobalRef<jobject> j_screen_orientation_provider_; | |
| 27 }; | |
|
jochen (gone - plz use gerrit)
2014/03/12 12:42:27
disallow copy/assign
mlamouri (slow - plz ping)
2014/03/12 14:16:36
Done.
| |
| 28 | |
| 29 } // namespace content | |
| 30 | |
| 31 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_ANDROID_H_ | |
| OLD | NEW |