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

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

Issue 2270323004: Add BlimpView to a Chrome tab when Blimp is enabled. (Closed)
Patch Set: addressed nit, renamed CreateForTesting and piped through touch handling Created 4 years, 3 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/resources/resource_manager_impl_unittest.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void OnActivityStopped(JNIEnv* env, 69 void OnActivityStopped(JNIEnv* env,
70 const base::android::JavaParamRef<jobject>& obj); 70 const base::android::JavaParamRef<jobject>& obj);
71 void OnActivityStarted(JNIEnv* env, 71 void OnActivityStarted(JNIEnv* env,
72 const base::android::JavaParamRef<jobject>& obj); 72 const base::android::JavaParamRef<jobject>& obj);
73 73
74 // Return whether the specified Android permission is granted. 74 // Return whether the specified Android permission is granted.
75 bool HasPermission(const std::string& permission); 75 bool HasPermission(const std::string& permission);
76 // Return whether the specified Android permission can be requested by Chrome. 76 // Return whether the specified Android permission can be requested by Chrome.
77 bool CanRequestPermission(const std::string& permission); 77 bool CanRequestPermission(const std::string& permission);
78 78
79 static WindowAndroid* createForTesting(); 79 static WindowAndroid* CreateForTesting();
80 void DestroyForTesting();
80 81
81 private: 82 private:
82 ~WindowAndroid() override; 83 ~WindowAndroid() override;
83 84
84 // ViewAndroid overrides. 85 // ViewAndroid overrides.
85 WindowAndroid* GetWindowAndroid() const override; 86 WindowAndroid* GetWindowAndroid() const override;
86 87
87 base::android::ScopedJavaGlobalRef<jobject> java_window_; 88 base::android::ScopedJavaGlobalRef<jobject> java_window_;
88 gfx::Vector2dF content_offset_; 89 gfx::Vector2dF content_offset_;
89 WindowAndroidCompositor* compositor_; 90 WindowAndroidCompositor* compositor_;
90 91
91 base::ObserverList<WindowAndroidObserver> observer_list_; 92 base::ObserverList<WindowAndroidObserver> observer_list_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); 94 DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
94 }; 95 };
95 96
96 } // namespace ui 97 } // namespace ui
97 98
98 #endif // UI_ANDROID_WINDOW_ANDROID_H_ 99 #endif // UI_ANDROID_WINDOW_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/android/resources/resource_manager_impl_unittest.cc ('k') | ui/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698