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 "ui/android/cursor_type.h" | |
13 #include "ui/android/ui_android_export.h" | 14 #include "ui/android/ui_android_export.h" |
15 #include "ui/gfx/android/java_bitmap.h" | |
Jinsuk Kim
2017/05/17 04:49:50
What is this included for? If for SkBitmap then di
jaebaek
2017/05/18 01:44:29
Done.
| |
14 #include "ui/gfx/geometry/rect_f.h" | 16 #include "ui/gfx/geometry/rect_f.h" |
15 | 17 |
16 namespace cc { | 18 namespace cc { |
17 class Layer; | 19 class Layer; |
18 } | 20 } |
19 | 21 |
20 namespace ui { | 22 namespace ui { |
21 class EventForwarder; | 23 class EventForwarder; |
22 class MotionEventAndroid; | 24 class MotionEventAndroid; |
23 class ViewClient; | 25 class ViewClient; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
126 | 128 |
127 // Detaches this view from its parent. | 129 // Detaches this view from its parent. |
128 void RemoveFromParent(); | 130 void RemoveFromParent(); |
129 | 131 |
130 // Sets the layout relative to parent. Used to do hit testing against events. | 132 // Sets the layout relative to parent. Used to do hit testing against events. |
131 void SetLayout(LayoutParams params); | 133 void SetLayout(LayoutParams params); |
132 | 134 |
133 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, | 135 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, |
134 const base::android::JavaRef<jobject>& jimage); | 136 const base::android::JavaRef<jobject>& jimage); |
135 | 137 |
138 void OnCursorChanged(CursorType type, | |
139 const SkBitmap& custom_image, | |
140 const gfx::Point& hotspot); | |
136 void OnBackgroundColorChanged(unsigned int color); | 141 void OnBackgroundColorChanged(unsigned int color); |
137 void OnTopControlsChanged(float top_controls_offset, | 142 void OnTopControlsChanged(float top_controls_offset, |
138 float top_content_offset); | 143 float top_content_offset); |
139 void OnBottomControlsChanged(float bottom_controls_offset, | 144 void OnBottomControlsChanged(float bottom_controls_offset, |
140 float bottom_content_offset); | 145 float bottom_content_offset); |
141 int GetSystemWindowInsetBottom(); | 146 int GetSystemWindowInsetBottom(); |
142 | 147 |
143 ScopedAnchorView AcquireAnchorView(); | 148 ScopedAnchorView AcquireAnchorView(); |
144 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, | 149 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, |
145 const gfx::RectF& bounds); | 150 const gfx::RectF& bounds); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 | 208 |
204 gfx::Vector2dF content_offset_; // in CSS pixel. | 209 gfx::Vector2dF content_offset_; // in CSS pixel. |
205 std::unique_ptr<EventForwarder> event_forwarder_; | 210 std::unique_ptr<EventForwarder> event_forwarder_; |
206 | 211 |
207 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); | 212 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); |
208 }; | 213 }; |
209 | 214 |
210 } // namespace ui | 215 } // namespace ui |
211 | 216 |
212 #endif // UI_ANDROID_VIEW_ANDROID_H_ | 217 #endif // UI_ANDROID_VIEW_ANDROID_H_ |
OLD | NEW |