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

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: review comments 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_
Michael van Ouwerkerk 2014/03/12 14:42:55 Afaik this should be the full path, so CONTENT_BRO
mlamouri (slow - plz ping) 2014/03/12 20:19:55 Do you mind if I change that for all the files in
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.
Michael van Ouwerkerk 2014/03/12 14:42:55 This comment doesn't add much. Delete it?
mlamouri (slow - plz ping) 2014/03/12 20:19:55 Done.
15 class ScreenOrientationProviderAndroid : public ScreenOrientationProvider {
16 public:
17 ScreenOrientationProviderAndroid();
18
19 static bool Register(JNIEnv* env);
20
21 // ScreenOrientationProvider
22 virtual void LockOrientation(blink::WebScreenOrientations) OVERRIDE;
23 virtual void UnlockOrientation() OVERRIDE;
24
25 private:
26 virtual ~ScreenOrientationProviderAndroid();
27
28 base::android::ScopedJavaGlobalRef<jobject> j_screen_orientation_provider_;
29
30 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProviderAndroid);
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698