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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java

Issue 584523003: Create org.chromium.content_public.common and move two classes there. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_display_in_shortcuthelper
Patch Set: Created 6 years, 3 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698