| // Copyright 2015 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 SKY_SHELL_SKY_VIEW_H_ |
| #define SKY_SHELL_SKY_VIEW_H_ |
| #include "base/android/jni_weak_ref.h" |
| #include "base/android/scoped_java_ref.h" |
| #include "base/memory/weak_ptr.h" |
| #include "base/single_thread_task_runner.h" |
| #include "sky/shell/ui_delegate.h" |
| base::WeakPtr<UIDelegate> ui_delegate; |
| scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner; |
| static bool Register(JNIEnv* env); |
| explicit PlatformView(const Config& config); |
| void ConnectToViewportObserver( |
| mojo::InterfaceRequest<ViewportObserver> request); |
| void Detach(JNIEnv* env, jobject obj); |
| void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface); |
| void SurfaceDestroyed(JNIEnv* env, jobject obj); |
| void SurfaceSetSize(JNIEnv* env, |
| DISALLOW_COPY_AND_ASSIGN(PlatformView); |
| #endif // SKY_SHELL_SKY_VIEW_H_ |