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_array.h" | 10 #include "base/android/jni_array.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 // Moves the give child ViewAndroid to the front of the list so that it can be | 123 // Moves the give child ViewAndroid to the front of the list so that it can be |
124 // the first responder of events. | 124 // the first responder of events. |
125 void MoveToFront(ViewAndroid* child); | 125 void MoveToFront(ViewAndroid* child); |
126 | 126 |
127 // Detaches this view from its parent. | 127 // Detaches this view from its parent. |
128 void RemoveFromParent(); | 128 void RemoveFromParent(); |
129 | 129 |
130 // Sets the layout relative to parent. Used to do hit testing against events. | 130 // Sets the layout relative to parent. Used to do hit testing against events. |
131 void SetLayout(LayoutParams params); | 131 void SetLayout(LayoutParams params); |
132 | 132 |
133 void ClearThumbnailPlaceholder(); | |
boliu
2017/07/05 17:39:48
this has nothing to do with ViewAndroid tree
and
| |
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 |
136 gfx::Size GetPhysicalBackingSize(); | 138 gfx::Size GetPhysicalBackingSize(); |
137 void OnPhysicalBackingSizeChanged(const gfx::Size& size); | 139 void OnPhysicalBackingSizeChanged(const gfx::Size& size); |
138 void OnBackgroundColorChanged(unsigned int color); | 140 void OnBackgroundColorChanged(unsigned int color); |
139 void OnTopControlsChanged(float top_controls_offset, | 141 void OnTopControlsChanged(float top_controls_offset, |
140 float top_content_offset); | 142 float top_content_offset); |
141 void OnBottomControlsChanged(float bottom_controls_offset, | 143 void OnBottomControlsChanged(float bottom_controls_offset, |
142 float bottom_content_offset); | 144 float bottom_content_offset); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 float content_offset_; // y content offset from the top. | 230 float content_offset_; // y content offset from the top. |
229 | 231 |
230 std::unique_ptr<EventForwarder> event_forwarder_; | 232 std::unique_ptr<EventForwarder> event_forwarder_; |
231 | 233 |
232 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); | 234 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); |
233 }; | 235 }; |
234 | 236 |
235 } // namespace ui | 237 } // namespace ui |
236 | 238 |
237 #endif // UI_ANDROID_VIEW_ANDROID_H_ | 239 #endif // UI_ANDROID_VIEW_ANDROID_H_ |
OLD | NEW |