OLD | NEW |
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const base::android::JavaParamRef<jobject>& obj); | 68 const base::android::JavaParamRef<jobject>& obj); |
69 void OnActivityStarted(JNIEnv* env, | 69 void OnActivityStarted(JNIEnv* env, |
70 const base::android::JavaParamRef<jobject>& obj); | 70 const base::android::JavaParamRef<jobject>& obj); |
71 | 71 |
72 // Return whether the specified Android permission is granted. | 72 // Return whether the specified Android permission is granted. |
73 bool HasPermission(const std::string& permission); | 73 bool HasPermission(const std::string& permission); |
74 // Return whether the specified Android permission can be requested by Chrome. | 74 // Return whether the specified Android permission can be requested by Chrome. |
75 bool CanRequestPermission(const std::string& permission); | 75 bool CanRequestPermission(const std::string& permission); |
76 | 76 |
77 static WindowAndroid* createForTesting(); | 77 static WindowAndroid* createForTesting(); |
| 78 void StartDragAndDrop( |
| 79 const base::android::JavaRef<jobject>& jview_android_delegate, |
| 80 const base::android::JavaRef<jstring>& jtext, |
| 81 const base::android::JavaRef<jobject>& jimage); |
78 | 82 |
79 private: | 83 private: |
80 ~WindowAndroid(); | 84 ~WindowAndroid(); |
81 | 85 |
82 base::android::ScopedJavaGlobalRef<jobject> java_window_; | 86 base::android::ScopedJavaGlobalRef<jobject> java_window_; |
83 gfx::Vector2dF content_offset_; | 87 gfx::Vector2dF content_offset_; |
84 WindowAndroidCompositor* compositor_; | 88 WindowAndroidCompositor* compositor_; |
85 | 89 |
86 base::ObserverList<WindowAndroidObserver> observer_list_; | 90 base::ObserverList<WindowAndroidObserver> observer_list_; |
87 | 91 |
88 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); | 92 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); |
89 }; | 93 }; |
90 | 94 |
91 } // namespace ui | 95 } // namespace ui |
92 | 96 |
93 #endif // UI_ANDROID_WINDOW_ANDROID_H_ | 97 #endif // UI_ANDROID_WINDOW_ANDROID_H_ |
OLD | NEW |