| Index: remoting/client/jni/jni_display_handler.h
|
| diff --git a/remoting/client/jni/jni_display_handler.h b/remoting/client/jni/jni_display_handler.h
|
| deleted file mode 100644
|
| index be8516f17084b74d95d43d431e07512342b11cf2..0000000000000000000000000000000000000000
|
| --- a/remoting/client/jni/jni_display_handler.h
|
| +++ /dev/null
|
| @@ -1,75 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef REMOTING_CLIENT_JNI_JNI_DISPLAY_HANDLER_H_
|
| -#define REMOTING_CLIENT_JNI_JNI_DISPLAY_HANDLER_H_
|
| -
|
| -#include <jni.h>
|
| -
|
| -#include "base/android/scoped_java_ref.h"
|
| -#include "base/macros.h"
|
| -#include "base/memory/weak_ptr.h"
|
| -#include "remoting/client/jni/display_updater_factory.h"
|
| -#include "remoting/protocol/cursor_shape_stub.h"
|
| -
|
| -namespace remoting {
|
| -
|
| -namespace protocol {
|
| -class VideoRenderer;
|
| -} // namespace protocol
|
| -
|
| -class ChromotingJniRuntime;
|
| -
|
| -// Handles display operations. Must be called and deleted on the display thread
|
| -// unless otherwise noted.
|
| -class JniDisplayHandler : public DisplayUpdaterFactory,
|
| - public protocol::CursorShapeStub {
|
| - public:
|
| - explicit JniDisplayHandler(ChromotingJniRuntime* runtime);
|
| -
|
| - // Must be deleted on the display thread.
|
| - ~JniDisplayHandler() override;
|
| -
|
| - // Sets the DesktopViewFactory for the Java client.
|
| - void InitializeClient(
|
| - const base::android::JavaRef<jobject>& java_client);
|
| -
|
| - // DisplayUpdaterFactory overrides (functions can be called on any thread).
|
| - std::unique_ptr<protocol::CursorShapeStub> CreateCursorShapeStub() override;
|
| - std::unique_ptr<protocol::VideoRenderer> CreateVideoRenderer() override;
|
| -
|
| - // Creates a new Bitmap object to store a video frame. Can be called on any
|
| - // thread.
|
| - static base::android::ScopedJavaLocalRef<jobject> NewBitmap(int width,
|
| - int height);
|
| -
|
| - // Updates video frame bitmap. |bitmap| must be an instance of
|
| - // android.graphics.Bitmap.
|
| - void UpdateFrameBitmap(base::android::ScopedJavaGlobalRef<jobject> bitmap);
|
| -
|
| - // Draws the latest image buffer onto the canvas.
|
| - void RedrawCanvas();
|
| -
|
| - static bool RegisterJni(JNIEnv* env);
|
| -
|
| - // Schedule redraw. Can be called on any thread.
|
| - void ScheduleRedraw(JNIEnv* env,
|
| - const base::android::JavaParamRef<jobject>& caller);
|
| -
|
| - private:
|
| - // CursorShapeStub interface.
|
| - void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override;
|
| -
|
| - ChromotingJniRuntime* runtime_;
|
| -
|
| - base::android::ScopedJavaGlobalRef<jobject> java_display_;
|
| - base::WeakPtr<JniDisplayHandler> weak_ptr_;
|
| - base::WeakPtrFactory<JniDisplayHandler> weak_factory_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(JniDisplayHandler);
|
| -};
|
| -
|
| -} // namespace remoting
|
| -
|
| -#endif // REMOTING_CLIENT_JNI_JNI_DISPLAY_HANDLER_H_
|
|
|