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

Unified Diff: ui/gfx/android/window_android.h

Issue 10916160: Upstreaming SelectFileDialog for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Elliot's nits Created 8 years, 3 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: ui/gfx/android/window_android.h
diff --git a/ui/gfx/android/window_android.h b/ui/gfx/android/window_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..75849b54b66b2f1e8d03784696c657ee5489e67b
--- /dev/null
+++ b/ui/gfx/android/window_android.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 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 UI_GFX_ANDROID_WINDOW_ANDROID_H_
+#define UI_GFX_ANDROID_WINDOW_ANDROID_H_
+
+#include <jni.h>
+#include "base/android/scoped_java_ref.h"
+
+class WindowAndroid{
+ public:
+ WindowAndroid(JNIEnv* env, jobject obj);
+ virtual ~WindowAndroid();
+ void Destroy(JNIEnv* env, jobject obj);
+
+ base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
+
+ private:
+ struct JavaObject;
+ JavaObject* java_object_;
Yaron 2012/09/12 19:14:45 I think this should be a JavaObjectWeakGlobalRef
aurimas (slooooooooow) 2012/09/13 15:37:15 Is there an example somewhere? I followed content_
+};
+
+bool RegisterWindowAndroid(JNIEnv* env);
Yaron 2012/09/12 19:14:45 Nit: make static member of above
aurimas (slooooooooow) 2012/09/13 15:37:15 Done.
+
+#endif // UI_GFX_ANDROID_WINDOW_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698