Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Side by Side Diff: content/browser/screen_orientation/screen_orientation_provider_android.h

Issue 196193002: Implement ScreenOrientationProvider for Chrome Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698