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

Side by Side Diff: mojo/services/native_viewport/native_viewport_android.h

Issue 93793009: Implement ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow Android to be built Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_ANDROID_H_ 5 #ifndef MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_ANDROID_H_
6 #define MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_ANDROID_H_ 6 #define MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_ANDROID_H_
7 7
8 #include "base/android/jni_helper.h" 8 #include "base/android/jni_helper.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "mojo/services/native_viewport/native_viewport.h" 11 #include "mojo/services/native_viewport/native_viewport.h"
12 #include "mojo/services/native_viewport/native_viewport_export.h"
12 #include "ui/events/event_constants.h" 13 #include "ui/events/event_constants.h"
13 #include "ui/gfx/sequential_id_generator.h" 14 #include "ui/gfx/sequential_id_generator.h"
14 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
15 16
16 namespace gpu { 17 namespace gpu {
17 class GLInProcessContext; 18 class GLInProcessContext;
18 } 19 }
19 20
20 struct ANativeWindow; 21 struct ANativeWindow;
21 22
22 namespace mojo { 23 namespace mojo {
23 namespace services { 24 namespace services {
24 25
25 class NativeViewportAndroid : public NativeViewport { 26 class MOJO_NATIVE_VIEWPORT_EXPORT NativeViewportAndroid
27 : public NativeViewport {
26 public: 28 public:
27 static bool Register(JNIEnv* env); 29 static MOJO_NATIVE_VIEWPORT_EXPORT bool Register(JNIEnv* env);
28 30
29 explicit NativeViewportAndroid(shell::Context* context, 31 explicit NativeViewportAndroid(shell::Context* context,
30 NativeViewportDelegate* delegate); 32 NativeViewportDelegate* delegate);
31 virtual ~NativeViewportAndroid(); 33 virtual ~NativeViewportAndroid();
32 34
33 void Destroy(JNIEnv* env, jobject obj); 35 void Destroy(JNIEnv* env, jobject obj);
34 void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface); 36 void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface);
35 void SurfaceDestroyed(JNIEnv* env, jobject obj); 37 void SurfaceDestroyed(JNIEnv* env, jobject obj);
36 void SurfaceSetSize(JNIEnv* env, jobject obj, jint width, jint height); 38 void SurfaceSetSize(JNIEnv* env, jobject obj, jint width, jint height);
37 bool TouchEvent(JNIEnv* env, jobject obj, jint pointer_id, jint action, 39 bool TouchEvent(JNIEnv* env, jobject obj, jint pointer_id, jint action,
(...skipping 18 matching lines...) Expand all
56 base::WeakPtrFactory<NativeViewportAndroid> weak_factory_; 58 base::WeakPtrFactory<NativeViewportAndroid> weak_factory_;
57 59
58 DISALLOW_COPY_AND_ASSIGN(NativeViewportAndroid); 60 DISALLOW_COPY_AND_ASSIGN(NativeViewportAndroid);
59 }; 61 };
60 62
61 63
62 } // namespace services 64 } // namespace services
63 } // namespace mojo 65 } // namespace mojo
64 66
65 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_ANDROID_H_ 67 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_ANDROID_H_
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/native_viewport.h ('k') | mojo/services/native_viewport/native_viewport_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698