| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ | 5 #ifndef UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ |
| 6 #define UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ | 6 #define UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace ui { | 21 namespace ui { |
| 22 | 22 |
| 23 class ANDROID_WINDOW_EXPORT PlatformWindowAndroid : public PlatformWindow { | 23 class ANDROID_WINDOW_EXPORT PlatformWindowAndroid : public PlatformWindow { |
| 24 public: | 24 public: |
| 25 static bool Register(JNIEnv* env); | 25 static bool Register(JNIEnv* env); |
| 26 | 26 |
| 27 explicit PlatformWindowAndroid(PlatformWindowDelegate* delegate); | 27 explicit PlatformWindowAndroid(PlatformWindowDelegate* delegate); |
| 28 ~PlatformWindowAndroid() override; | 28 ~PlatformWindowAndroid() override; |
| 29 | 29 |
| 30 void Destroy(JNIEnv* env, jobject obj); | 30 void Destroy(JNIEnv* env, jobject obj); |
| 31 void JavaPlatformWindowCreated(JNIEnv* env, jobject obj); |
| 31 void SurfaceCreated(JNIEnv* env, | 32 void SurfaceCreated(JNIEnv* env, |
| 32 jobject obj, | 33 jobject obj, |
| 33 jobject jsurface, | 34 jobject jsurface, |
| 34 float device_pixel_ratio); | 35 float device_pixel_ratio); |
| 35 void SurfaceDestroyed(JNIEnv* env, jobject obj); | 36 void SurfaceDestroyed(JNIEnv* env, jobject obj); |
| 36 void SurfaceSetSize(JNIEnv* env, | 37 void SurfaceSetSize(JNIEnv* env, |
| 37 jobject obj, | 38 jobject obj, |
| 38 jint width, | 39 jint width, |
| 39 jint height, | 40 jint height, |
| 40 jfloat density); | 41 jfloat density); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 PlatformImeControllerAndroid platform_ime_controller_; | 90 PlatformImeControllerAndroid platform_ime_controller_; |
| 90 | 91 |
| 91 base::WeakPtrFactory<PlatformWindowAndroid> weak_factory_; | 92 base::WeakPtrFactory<PlatformWindowAndroid> weak_factory_; |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(PlatformWindowAndroid); | 94 DISALLOW_COPY_AND_ASSIGN(PlatformWindowAndroid); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace ui | 97 } // namespace ui |
| 97 | 98 |
| 98 #endif // UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ | 99 #endif // UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ |
| OLD | NEW |