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_VIEW_ANDROID_H_ | 5 #ifndef UI_ANDROID_VIEW_ANDROID_H_ |
6 #define UI_ANDROID_VIEW_ANDROID_H_ | 6 #define UI_ANDROID_VIEW_ANDROID_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" |
13 #include "ui/android/ui_android_export.h" | 14 #include "ui/android/ui_android_export.h" |
14 #include "ui/gfx/geometry/rect_f.h" | 15 #include "ui/gfx/geometry/rect_f.h" |
15 | 16 |
16 namespace cc { | 17 namespace cc { |
17 class Layer; | 18 class Layer; |
18 } | 19 } |
19 | 20 |
20 namespace ui { | 21 namespace ui { |
21 class EventForwarder; | 22 class EventForwarder; |
22 class MotionEventAndroid; | 23 class MotionEventAndroid; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 void RemoveFromParent(); | 129 void RemoveFromParent(); |
129 | 130 |
130 // Sets the layout relative to parent. Used to do hit testing against events. | 131 // Sets the layout relative to parent. Used to do hit testing against events. |
131 void SetLayout(LayoutParams params); | 132 void SetLayout(LayoutParams params); |
132 | 133 |
133 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, | 134 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, |
134 const base::android::JavaRef<jobject>& jimage); | 135 const base::android::JavaRef<jobject>& jimage); |
135 | 136 |
136 gfx::Size GetPhysicalBackingSize(); | 137 gfx::Size GetPhysicalBackingSize(); |
137 void OnPhysicalBackingSizeChanged(const gfx::Size& size); | 138 void OnPhysicalBackingSizeChanged(const gfx::Size& size); |
| 139 void OnCursorChanged(bool to_custom_cursor, |
| 140 int type, |
| 141 const SkBitmap& custom_image, |
| 142 const gfx::Point& hotspot); |
138 void OnBackgroundColorChanged(unsigned int color); | 143 void OnBackgroundColorChanged(unsigned int color); |
139 void OnTopControlsChanged(float top_controls_offset, | 144 void OnTopControlsChanged(float top_controls_offset, |
140 float top_content_offset); | 145 float top_content_offset); |
141 void OnBottomControlsChanged(float bottom_controls_offset, | 146 void OnBottomControlsChanged(float bottom_controls_offset, |
142 float bottom_content_offset); | 147 float bottom_content_offset); |
143 int GetSystemWindowInsetBottom(); | 148 int GetSystemWindowInsetBottom(); |
144 | 149 |
145 ScopedAnchorView AcquireAnchorView(); | 150 ScopedAnchorView AcquireAnchorView(); |
146 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, | 151 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, |
147 const gfx::RectF& bounds); | 152 const gfx::RectF& bounds); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 212 |
208 gfx::Vector2dF content_offset_; // in CSS pixel. | 213 gfx::Vector2dF content_offset_; // in CSS pixel. |
209 std::unique_ptr<EventForwarder> event_forwarder_; | 214 std::unique_ptr<EventForwarder> event_forwarder_; |
210 | 215 |
211 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); | 216 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); |
212 }; | 217 }; |
213 | 218 |
214 } // namespace ui | 219 } // namespace ui |
215 | 220 |
216 #endif // UI_ANDROID_VIEW_ANDROID_H_ | 221 #endif // UI_ANDROID_VIEW_ANDROID_H_ |
OLD | NEW |