OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.pm.ActivityInfo; | 8 import android.content.pm.ActivityInfo; |
9 import android.content.pm.PackageManager; | 9 import android.content.pm.PackageManager; |
10 import android.util.Log; | 10 import android.util.Log; |
11 | 11 |
12 import org.chromium.base.ApplicationStatus; | 12 import org.chromium.base.ApplicationStatus; |
13 import org.chromium.base.CalledByNative; | 13 import org.chromium.base.CalledByNative; |
14 import org.chromium.base.JNINamespace; | 14 import org.chromium.base.JNINamespace; |
15 import org.chromium.base.ThreadUtils; | 15 import org.chromium.base.ThreadUtils; |
16 import org.chromium.content.common.ScreenOrientationValues; | 16 import org.chromium.content_public.common.ScreenOrientationValues; |
17 | 17 |
18 /** | 18 /** |
19 * This is the implementation of the C++ counterpart ScreenOrientationProvider. | 19 * This is the implementation of the C++ counterpart ScreenOrientationProvider. |
20 */ | 20 */ |
21 @JNINamespace("content") | 21 @JNINamespace("content") |
22 class ScreenOrientationProvider { | 22 class ScreenOrientationProvider { |
23 private static final String TAG = "ScreenOrientationProvider"; | 23 private static final String TAG = "ScreenOrientationProvider"; |
24 | 24 |
25 private static int getOrientationFromWebScreenOrientations(byte orientations
) { | 25 private static int getOrientationFromWebScreenOrientations(byte orientations
) { |
26 switch (orientations) { | 26 switch (orientations) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 @Override | 97 @Override |
98 public void run() { | 98 public void run() { |
99 ScreenOrientationListener.getInstance().stopAccurateListening(); | 99 ScreenOrientationListener.getInstance().stopAccurateListening(); |
100 } | 100 } |
101 }); | 101 }); |
102 } | 102 } |
103 | 103 |
104 private ScreenOrientationProvider() { | 104 private ScreenOrientationProvider() { |
105 } | 105 } |
106 } | 106 } |
OLD | NEW |