| 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 REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ | 5 #ifndef REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ |
| 6 #define REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ | 6 #define REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ |
| 7 | 7 |
| 8 #include <EGL/egl.h> | 8 #include <EGL/egl.h> |
| 9 #include <jni.h> | 9 #include <jni.h> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 void OnPixelTransformationChanged( | 62 void OnPixelTransformationChanged( |
| 63 JNIEnv* env, | 63 JNIEnv* env, |
| 64 const base::android::JavaParamRef<jobject>& caller, | 64 const base::android::JavaParamRef<jobject>& caller, |
| 65 const base::android::JavaParamRef<jfloatArray>& matrix | 65 const base::android::JavaParamRef<jfloatArray>& matrix |
| 66 ); | 66 ); |
| 67 | 67 |
| 68 void OnCursorPixelPositionChanged( | 68 void OnCursorPixelPositionChanged( |
| 69 JNIEnv* env, | 69 JNIEnv* env, |
| 70 const base::android::JavaParamRef<jobject>& caller, | 70 const base::android::JavaParamRef<jobject>& caller, |
| 71 int x, | 71 float x, |
| 72 int y); | 72 float y); |
| 73 | 73 |
| 74 void OnCursorVisibilityChanged( | 74 void OnCursorVisibilityChanged( |
| 75 JNIEnv* env, | 75 JNIEnv* env, |
| 76 const base::android::JavaParamRef<jobject>& caller, | 76 const base::android::JavaParamRef<jobject>& caller, |
| 77 bool visible); | 77 bool visible); |
| 78 | 78 |
| 79 void OnCursorInputFeedback( | 79 void OnCursorInputFeedback( |
| 80 JNIEnv* env, | 80 JNIEnv* env, |
| 81 const base::android::JavaParamRef<jobject>& caller, | 81 const base::android::JavaParamRef<jobject>& caller, |
| 82 int x, | 82 float x, |
| 83 int y, | 83 float y, |
| 84 float diameter); | 84 float diameter); |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 // GlRendererDelegate interface. | 87 // GlRendererDelegate interface. |
| 88 bool CanRenderFrame() override; | 88 bool CanRenderFrame() override; |
| 89 void OnFrameRendered() override; | 89 void OnFrameRendered() override; |
| 90 void OnSizeChanged(int width, int height) override; | 90 void OnSizeChanged(int width, int height) override; |
| 91 | 91 |
| 92 // CursorShapeStub interface. | 92 // CursorShapeStub interface. |
| 93 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; | 93 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 120 | 120 |
| 121 // Used on display thread. | 121 // Used on display thread. |
| 122 base::WeakPtr<JniGlDisplayHandler> weak_ptr_; | 122 base::WeakPtr<JniGlDisplayHandler> weak_ptr_; |
| 123 base::WeakPtrFactory<JniGlDisplayHandler> weak_factory_; | 123 base::WeakPtrFactory<JniGlDisplayHandler> weak_factory_; |
| 124 DISALLOW_COPY_AND_ASSIGN(JniGlDisplayHandler); | 124 DISALLOW_COPY_AND_ASSIGN(JniGlDisplayHandler); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace remoting | 127 } // namespace remoting |
| 128 | 128 |
| 129 #endif // REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ | 129 #endif // REMOTING_CLIENT_JNI_JNI_GL_DISPLAY_HANDLER_H_ |
| OLD | NEW |