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

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

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: prevent view_root_ gc'ed Created 4 years 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/view_client.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 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_ANDROID_WINDOW_ANDROID_H_ 5 #ifndef UI_ANDROID_WINDOW_ANDROID_H_
6 #define UI_ANDROID_WINDOW_ANDROID_H_ 6 #define UI_ANDROID_WINDOW_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const base::android::JavaParamRef<jobject>& obj, 67 const base::android::JavaParamRef<jobject>& obj,
68 jlong time_micros, 68 jlong time_micros,
69 jlong period_micros); 69 jlong period_micros);
70 void OnVisibilityChanged(JNIEnv* env, 70 void OnVisibilityChanged(JNIEnv* env,
71 const base::android::JavaParamRef<jobject>& obj, 71 const base::android::JavaParamRef<jobject>& obj,
72 bool visible); 72 bool visible);
73 void OnActivityStopped(JNIEnv* env, 73 void OnActivityStopped(JNIEnv* env,
74 const base::android::JavaParamRef<jobject>& obj); 74 const base::android::JavaParamRef<jobject>& obj);
75 void OnActivityStarted(JNIEnv* env, 75 void OnActivityStarted(JNIEnv* env,
76 const base::android::JavaParamRef<jobject>& obj); 76 const base::android::JavaParamRef<jobject>& obj);
77 base::android::ScopedJavaLocalRef<jobject> GetViewRootForJava(JNIEnv* env,
78 const base::android::JavaParamRef<jobject>& obj);
77 79
78 // Return whether the specified Android permission is granted. 80 // Return whether the specified Android permission is granted.
79 bool HasPermission(const std::string& permission); 81 bool HasPermission(const std::string& permission);
80 // Return whether the specified Android permission can be requested by Chrome. 82 // Return whether the specified Android permission can be requested by Chrome.
81 bool CanRequestPermission(const std::string& permission); 83 bool CanRequestPermission(const std::string& permission);
82 84
83 static WindowAndroid* CreateForTesting(); 85 static WindowAndroid* CreateForTesting();
84 void DestroyForTesting(); 86 void DestroyForTesting();
85 87
86 private: 88 private:
(...skipping 13 matching lines...) Expand all
100 WindowAndroidCompositor* compositor_; 102 WindowAndroidCompositor* compositor_;
101 103
102 base::ObserverList<WindowAndroidObserver> observer_list_; 104 base::ObserverList<WindowAndroidObserver> observer_list_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); 106 DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
105 }; 107 };
106 108
107 } // namespace ui 109 } // namespace ui
108 110
109 #endif // UI_ANDROID_WINDOW_ANDROID_H_ 111 #endif // UI_ANDROID_WINDOW_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/android/view_client.cc ('k') | ui/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698