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

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

Issue 929903002: Remove cc dependency from ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes in ui/PRESUBMIT.py Created 5 years, 9 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
« no previous file with comments | « ui/android/ui_android_jni_registrar.cc ('k') | ui/android/view_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BASE_ANDROID_VIEW_ANDROID_H_ 5 #ifndef UI_ANDROID_VIEW_ANDROID_H_
6 #define UI_BASE_ANDROID_VIEW_ANDROID_H_ 6 #define UI_ANDROID_VIEW_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include "base/android/jni_weak_ref.h" 9 #include "base/android/jni_weak_ref.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "ui/base/ui_base_export.h" 11 #include "ui/android/ui_android_export.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 class WindowAndroid; 15 class WindowAndroid;
16 16
17 // This class is the native counterpart for ViewAndroid. It is owned by the 17 // This class is the native counterpart for ViewAndroid. It is owned by the
18 // Java ViewAndroid object. 18 // Java ViewAndroid object.
19 class UI_BASE_EXPORT ViewAndroid { 19 class UI_ANDROID_EXPORT ViewAndroid {
20 public: 20 public:
21 ViewAndroid(JNIEnv* env, jobject obj, WindowAndroid* window); 21 ViewAndroid(JNIEnv* env, jobject obj, WindowAndroid* window);
22 22
23 void Destroy(JNIEnv* env, jobject obj); 23 void Destroy(JNIEnv* env, jobject obj);
24 24
25 WindowAndroid* GetWindowAndroid(); 25 WindowAndroid* GetWindowAndroid();
26 26
27 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); 27 base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
28 28
29 static bool RegisterViewAndroid(JNIEnv* env); 29 static bool RegisterViewAndroid(JNIEnv* env);
30 30
31 private: 31 private:
32 ~ViewAndroid(); 32 ~ViewAndroid();
33 JavaObjectWeakGlobalRef weak_java_view_; 33 JavaObjectWeakGlobalRef weak_java_view_;
34 WindowAndroid* window_android_; 34 WindowAndroid* window_android_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); 36 DISALLOW_COPY_AND_ASSIGN(ViewAndroid);
37 }; 37 };
38 38
39 } // namespace ui 39 } // namespace ui
40 40
41 #endif // UI_BASE_ANDROID_VIEW_ANDROID_H_ 41 #endif // UI_ANDROID_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/android/ui_android_jni_registrar.cc ('k') | ui/android/view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698