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" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Moves the give child ViewAndroid to the front of the list so that it can be | 125 // Moves the give child ViewAndroid to the front of the list so that it can be |
126 // the first responder of events. | 126 // the first responder of events. |
127 void MoveToFront(ViewAndroid* child); | 127 void MoveToFront(ViewAndroid* child); |
128 | 128 |
129 // Detaches this view from its parent. | 129 // Detaches this view from its parent. |
130 void RemoveFromParent(); | 130 void RemoveFromParent(); |
131 | 131 |
132 // 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. |
133 void SetLayout(LayoutParams params); | 133 void SetLayout(LayoutParams params); |
134 | 134 |
| 135 void ClearThumbnailPlaceholder(); |
| 136 |
135 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, | 137 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, |
136 const base::android::JavaRef<jobject>& jimage); | 138 const base::android::JavaRef<jobject>& jimage); |
137 | 139 |
138 gfx::Size GetPhysicalBackingSize(); | 140 gfx::Size GetPhysicalBackingSize(); |
139 void OnPhysicalBackingSizeChanged(const gfx::Size& size); | 141 void OnPhysicalBackingSizeChanged(const gfx::Size& size); |
140 void OnBackgroundColorChanged(unsigned int color); | 142 void OnBackgroundColorChanged(unsigned int color); |
141 void OnTopControlsChanged(float top_controls_offset, | 143 void OnTopControlsChanged(float top_controls_offset, |
142 float top_content_offset); | 144 float top_content_offset); |
143 void OnBottomControlsChanged(float bottom_controls_offset, | 145 void OnBottomControlsChanged(float bottom_controls_offset, |
144 float bottom_content_offset); | 146 float bottom_content_offset); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 221 |
220 gfx::Vector2dF content_offset_; // in CSS pixel. | 222 gfx::Vector2dF content_offset_; // in CSS pixel. |
221 std::unique_ptr<EventForwarder> event_forwarder_; | 223 std::unique_ptr<EventForwarder> event_forwarder_; |
222 | 224 |
223 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); | 225 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); |
224 }; | 226 }; |
225 | 227 |
226 } // namespace ui | 228 } // namespace ui |
227 | 229 |
228 #endif // UI_ANDROID_VIEW_ANDROID_H_ | 230 #endif // UI_ANDROID_VIEW_ANDROID_H_ |
OLD | NEW |