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

Side by Side Diff: ui/android/window_android.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/android/ui_jni_registrar.cc ('k') | ui/android/window_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_ANDROID_WINDOW_ANDROID_H_ 5 #ifndef UI_ANDROID_WINDOW_ANDROID_H_
6 #define UI_GFX_ANDROID_WINDOW_ANDROID_H_ 6 #define UI_ANDROID_WINDOW_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include "base/android/jni_helper.h" 9 #include "base/android/jni_helper.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "ui/base/ui_export.h" 11 #include "ui/base/ui_export.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 // Android implementation of the activity window. 15 // Android implementation of the activity window.
16 class UI_EXPORT WindowAndroid { 16 class UI_EXPORT WindowAndroid {
17 public: 17 public:
18 WindowAndroid(JNIEnv* env, jobject obj); 18 WindowAndroid(JNIEnv* env, jobject obj);
19 19
20 void Destroy(JNIEnv* env, jobject obj); 20 void Destroy(JNIEnv* env, jobject obj);
21 21
22 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); 22 base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
23 23
24 static bool RegisterWindowAndroid(JNIEnv* env); 24 static bool RegisterWindowAndroid(JNIEnv* env);
25 25
26 private: 26 private:
27 ~WindowAndroid(); 27 ~WindowAndroid();
28 28
29 JavaObjectWeakGlobalRef weak_java_window_; 29 JavaObjectWeakGlobalRef weak_java_window_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); 31 DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
32 }; 32 };
33 33
34 } // namespace ui 34 } // namespace ui
35 35
36 #endif // UI_GFX_ANDROID_WINDOW_ANDROID_H_ 36 #endif // UI_ANDROID_WINDOW_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/android/ui_jni_registrar.cc ('k') | ui/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698