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

Unified Diff: ui/android/window_android.cc

Issue 14169011: [Android] Rename NativeWindow to WindowAndroid. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Return Activity context for now Created 7 years, 8 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/android/window_android.h ('k') | ui/gfx/android/window_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/window_android.cc
diff --git a/ui/gfx/android/window_android.cc b/ui/android/window_android.cc
similarity index 88%
rename from ui/gfx/android/window_android.cc
rename to ui/android/window_android.cc
index 9ade2bb02465237589f31fde8110d2552b2b9e37..1f2ccb2f97259dcf4b6456af86048385f7a24205 100644
--- a/ui/gfx/android/window_android.cc
+++ b/ui/android/window_android.cc
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "window_android.h"
+#include "ui/android/window_android.h"
#include "base/android/jni_android.h"
#include "base/android/jni_helper.h"
#include "base/android/scoped_java_ref.h"
-#include "jni/NativeWindow_jni.h"
+#include "jni/WindowAndroid_jni.h"
namespace ui {
@@ -23,8 +23,7 @@ void WindowAndroid::Destroy(JNIEnv* env, jobject obj) {
}
ScopedJavaLocalRef<jobject> WindowAndroid::GetJavaObject() {
- JNIEnv* env = AttachCurrentThread();
- return weak_java_window_.get(env);
+ return weak_java_window_.get(AttachCurrentThread());
}
bool WindowAndroid::RegisterWindowAndroid(JNIEnv* env) {
« no previous file with comments | « ui/android/window_android.h ('k') | ui/gfx/android/window_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698