| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ | 5 #ifndef UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ |
| 6 #define UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ | 6 #define UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 display::Display GetDisplayNearestPoint( | 25 display::Display GetDisplayNearestPoint( |
| 26 const gfx::Point& point) const override; | 26 const gfx::Point& point) const override; |
| 27 display::Display GetDisplayMatching( | 27 display::Display GetDisplayMatching( |
| 28 const gfx::Rect& match_rect) const override; | 28 const gfx::Rect& match_rect) const override; |
| 29 | 29 |
| 30 // Methods called from Java. | 30 // Methods called from Java. |
| 31 | 31 |
| 32 void UpdateDisplay(JNIEnv* env, | 32 void UpdateDisplay(JNIEnv* env, |
| 33 const base::android::JavaParamRef<jobject>& jobject, | 33 const base::android::JavaParamRef<jobject>& jobject, |
| 34 jint sdkDisplayId, | 34 jint sdkDisplayId, |
| 35 jint physicalWidth, | |
| 36 jint physicalHeight, | |
| 37 jint width, | 35 jint width, |
| 38 jint height, | 36 jint height, |
| 39 jfloat dipScale, | 37 jfloat dipScale, |
| 40 jint rotationDegrees, | 38 jint rotationDegrees, |
| 41 jint bitsPerPixel, | 39 jint bitsPerPixel, |
| 42 jint bitsPerComponent); | 40 jint bitsPerComponent); |
| 43 void RemoveDisplay(JNIEnv* env, | 41 void RemoveDisplay(JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>& jobject, | 42 const base::android::JavaParamRef<jobject>& jobject, |
| 45 jint sdkDisplayId); | 43 jint sdkDisplayId); |
| 46 void SetPrimaryDisplayId(JNIEnv* env, | 44 void SetPrimaryDisplayId(JNIEnv* env, |
| 47 const base::android::JavaParamRef<jobject>& jobject, | 45 const base::android::JavaParamRef<jobject>& jobject, |
| 48 jint sdkDisplayId); | 46 jint sdkDisplayId); |
| 49 | 47 |
| 50 private: | 48 private: |
| 51 friend void SetScreenAndroid(); | 49 friend void SetScreenAndroid(); |
| 52 DisplayAndroidManager(); | 50 DisplayAndroidManager(); |
| 53 | 51 |
| 54 int primary_display_id_ = 0; | 52 int primary_display_id_ = 0; |
| 55 | 53 |
| 56 DISALLOW_COPY_AND_ASSIGN(DisplayAndroidManager); | 54 DISALLOW_COPY_AND_ASSIGN(DisplayAndroidManager); |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 } // namespace ui | 57 } // namespace ui |
| 60 | 58 |
| 61 #endif // UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ | 59 #endif // UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ |
| OLD | NEW |