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

Unified Diff: mojo/services/native_viewport/native_viewport_context.h

Issue 404913002: Break dependency of native_viewport_service on mojo::shell::Context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 6 years, 5 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
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_

Powered by Google App Engine
This is Rietveld 408576698