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

Unified Diff: blimp/client/public/blimp_client_context_delegate.h

Issue 2191743002: Setup the delegate in Chrome, so we may put chrome java functions we need in blimp to the delegate … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 4 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: blimp/client/public/blimp_client_context_delegate.h
diff --git a/blimp/client/public/blimp_client_context_delegate.h b/blimp/client/public/blimp_client_context_delegate.h
index 506d9483c19491bb8d29d54c794215aee9df91ac..db7155fc778c175883e4b7b3ce1fdfed6e03890a 100644
--- a/blimp/client/public/blimp_client_context_delegate.h
+++ b/blimp/client/public/blimp_client_context_delegate.h
@@ -6,6 +6,11 @@
#define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
#include "base/macros.h"
+#include "build/build_config.h"
+
+#if defined(OS_ANDROID)
+#include "base/android/jni_android.h"
+#endif // defined(OS_ANDROID)
namespace blimp {
namespace client {
@@ -15,6 +20,11 @@ class BlimpContents;
// functionality it needs from its embedder.
class BlimpClientContextDelegate {
public:
+#if defined(OS_ANDROID)
+ // Returns a Java object of the type BlimpClientContextDelegate.
+ virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0;
David Trainor- moved to gerrit 2016/08/03 19:39:54 Would a static GetJavaObject(Delegate* delegate) b
+#endif // defined(OS_ANDROID)
+
virtual ~BlimpClientContextDelegate() = default;
// Attaches any required base::SupportsUserData::Data to the BlimpContents.

Powered by Google App Engine
This is Rietveld 408576698