Index: mojo/services/native_viewport/native_viewport_context.h |
diff --git a/mojo/services/native_viewport/native_viewport_context.h b/mojo/services/native_viewport/native_viewport_context.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..578a1e1dadf57e5dffa11e9b6fb2f83b11bf1cfa |
--- /dev/null |
+++ b/mojo/services/native_viewport/native_viewport_context.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2013 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 MOJO_SERVICES_NATIVE_VIEWPORT_CONTEXT_H_ |
+#define MOJO_SERVICES_NATIVE_VIEWPORT_CONTEXT_H_ |
+ |
+#include "build/build_config.h" |
+ |
+#if defined(OS_ANDROID) |
+#include "base/android/scoped_java_ref.h" |
+#endif // defined(OS_ANDROID) |
+ |
+namespace mojo { |
+namespace services { |
+ |
+// Class used by native_viewport to provide the activity (on Android). |
+class NativeViewportContext { |
+ public: |
+#if defined(OS_ANDROID) |
+ virtual jobject GetActivity() = 0; |
+#endif // defined(OS_ANDROID) |
+}; |
+ |
+} // namespace services |
+} // namespace mojo |
+ |
+#endif // MOJO_SERVICES_NATIVE_VIEWPORT_CONTEXT_H_ |