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

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: 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..851ac76d83e6198fd35a673bf8db81c9b34e8ca0
--- /dev/null
+++ b/ui/gfx/android/window_android.h
@@ -0,0 +1,34 @@
+// 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/jni_helper.h"
+#include "base/android/scoped_java_ref.h"
+
+namespace ui {
+
+class WindowAndroid {
Ted C 2012/09/17 18:40:16 Maybe a simple class doc (should we say that it is
aurimas (slooooooooow) 2012/09/17 22:20:48 Done.
+ public:
+ WindowAndroid(JNIEnv* env, jobject obj);
+
+ void Destroy(JNIEnv* env, jobject obj);
+
+ base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
+
+ static bool RegisterWindowAndroid(JNIEnv* env);
+
+ private:
+ ~WindowAndroid();
+
+ JavaObjectWeakGlobalRef weak_java_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
+};
+
+} // namespace ui
+
+#endif // UI_GFX_ANDROID_WINDOW_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698