Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: sky/shell/platform_view.h

Issue 1139873004: Make android directory for Android-specific bits of SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/shell/org/domokit/sky/shell/TracingController.java ('k') | sky/shell/platform_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/platform_view.h
diff --git a/sky/shell/platform_view.h b/sky/shell/platform_view.h
deleted file mode 100644
index 31466b86ee41fb778addbb27fbb3fd98b5f2aea1..0000000000000000000000000000000000000000
--- a/sky/shell/platform_view.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// 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/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "base/single_thread_task_runner.h"
-#include "sky/shell/ui_delegate.h"
-
-struct ANativeWindow;
-
-namespace sky {
-namespace shell {
-
-class PlatformView {
- public:
- struct Config {
- base::WeakPtr<UIDelegate> ui_delegate;
- scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner;
- };
-
- static bool Register(JNIEnv* env);
-
- explicit PlatformView(const Config& config);
- ~PlatformView();
-
- void ConnectToViewportObserver(
- mojo::InterfaceRequest<ViewportObserver> request);
-
- // Called from Java
- void Detach(JNIEnv* env, jobject obj);
- void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface);
- void SurfaceDestroyed(JNIEnv* env, jobject obj);
- void SurfaceSetSize(JNIEnv* env,
- jobject obj,
- jint width,
- jint height,
- jfloat density);
-
- private:
- void ReleaseWindow();
-
- Config config_;
- ANativeWindow* window_;
-
- DISALLOW_COPY_AND_ASSIGN(PlatformView);
-};
-
-} // namespace shell
-} // namespace sky
-
-#endif // SKY_SHELL_SKY_VIEW_H_
« no previous file with comments | « sky/shell/org/domokit/sky/shell/TracingController.java ('k') | sky/shell/platform_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698