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

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
« no previous file with comments | « ui/base/dialogs/select_file_dialog_android.cc ('k') | ui/gfx/android/window_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8c3aa321fe11ba9ff793c387fa6984b3acebe8df
--- /dev/null
+++ b/ui/gfx/android/window_android.h
@@ -0,0 +1,35 @@
+// 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 {
+
+// Android implementation of the activity window.
+class WindowAndroid {
+ 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_
« no previous file with comments | « ui/base/dialogs/select_file_dialog_android.cc ('k') | ui/gfx/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698