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

Side by Side Diff: sky/shell/android/platform_view_android.h

Issue 1169983005: sky/shell updates for Android and iOS (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
6 #define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
7
8 #include "sky/shell/platform_view.h"
9
10 struct ANativeWindow;
11
12 namespace sky {
13 namespace shell {
14
15 class PlatformViewAndroid : public PlatformView {
16 public:
17 static bool Register(JNIEnv* env);
18 ~PlatformViewAndroid() override;
19
20 // Called from Java
21 void Detach(JNIEnv* env, jobject obj);
22 void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface);
23 void SurfaceDestroyed(JNIEnv* env, jobject obj);
24
25 private:
26 void ReleaseWindow();
27
28 ANativeWindow* window_;
29
30 DISALLOW_COPY_AND_ASSIGN(PlatformViewAndroid);
31 };
32
33 } // namespace shell
34 } // namespace sky
35
36 #endif // SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698