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

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

Issue 2626723003: Revert "Introduce ViewRoot forwarding input/view events to native" (Closed)
Patch Set: Created 3 years, 11 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/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 <list> 9 #include <list>
10 #include <memory> 10 #include <memory>
(...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);
79 77
80 // Return whether the specified Android permission is granted. 78 // Return whether the specified Android permission is granted.
81 bool HasPermission(const std::string& permission); 79 bool HasPermission(const std::string& permission);
82 // Return whether the specified Android permission can be requested by Chrome. 80 // Return whether the specified Android permission can be requested by Chrome.
83 bool CanRequestPermission(const std::string& permission); 81 bool CanRequestPermission(const std::string& permission);
84 82
85 static WindowAndroid* CreateForTesting(); 83 static WindowAndroid* CreateForTesting();
86 void DestroyForTesting(); 84 void DestroyForTesting();
87 85
88 private: 86 private:
(...skipping 21 matching lines...) Expand all
110 std::unique_ptr<WindowBeginFrameSource> begin_frame_source_; 108 std::unique_ptr<WindowBeginFrameSource> begin_frame_source_;
111 bool needs_begin_frames_; 109 bool needs_begin_frames_;
112 std::list<base::Closure> vsync_complete_callbacks_; 110 std::list<base::Closure> vsync_complete_callbacks_;
113 111
114 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); 112 DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
115 }; 113 };
116 114
117 } // namespace ui 115 } // namespace ui
118 116
119 #endif // UI_ANDROID_WINDOW_ANDROID_H_ 117 #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