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

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: Yaron'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..9f58d572ee7ca71f63c17466daaa685fa0ddb41a
--- /dev/null
+++ b/ui/gfx/android/window_android.h
@@ -0,0 +1,30 @@
+// 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"
+
+namespace ui {
+
+class WindowAndroid{
sky 2012/09/13 16:24:04 WindowAndroid{ -> WindowAndroid {
aurimas (slooooooooow) 2012/09/14 00:06:59 Done.
+ public:
+ WindowAndroid(JNIEnv* env, jobject obj);
+ virtual ~WindowAndroid();
sky 2012/09/13 16:24:04 Why virtual?
aurimas (slooooooooow) 2012/09/14 00:06:59 Done.
+ void Destroy(JNIEnv* env, jobject obj);
sky 2012/09/13 16:24:04 newline between 16/17
aurimas (slooooooooow) 2012/09/14 00:06:59 Done.
+
+ base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
+
+ static bool RegisterWindowAndroid(JNIEnv* env);
+
+ private:
+ struct JavaObject;
+ JavaObject* java_object_;
sky 2012/09/13 16:24:04 Why don't you declare JavaObject by value?
aurimas (slooooooooow) 2012/09/14 00:06:59 Done.
+};
sky 2012/09/13 16:24:04 DISALLOW_..
aurimas (slooooooooow) 2012/09/14 00:06:59 Done.
+
+} // namespace ui
+
+#endif // UI_GFX_ANDROID_WINDOW_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698