| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 void SetLayout(LayoutParams params); | 131 void SetLayout(LayoutParams params); |
| 132 | 132 |
| 133 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, | 133 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, |
| 134 const base::android::JavaRef<jobject>& jimage); | 134 const base::android::JavaRef<jobject>& jimage); |
| 135 | 135 |
| 136 void OnBackgroundColorChanged(unsigned int color); | 136 void OnBackgroundColorChanged(unsigned int color); |
| 137 void OnTopControlsChanged(float top_controls_offset, | 137 void OnTopControlsChanged(float top_controls_offset, |
| 138 float top_content_offset); | 138 float top_content_offset); |
| 139 void OnBottomControlsChanged(float bottom_controls_offset, | 139 void OnBottomControlsChanged(float bottom_controls_offset, |
| 140 float bottom_content_offset); | 140 float bottom_content_offset); |
| 141 int GetSystemWindowInsetBottom(); |
| 141 | 142 |
| 142 ScopedAnchorView AcquireAnchorView(); | 143 ScopedAnchorView AcquireAnchorView(); |
| 143 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, | 144 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, |
| 144 const gfx::RectF& bounds); | 145 const gfx::RectF& bounds); |
| 145 | 146 |
| 146 // This may return null. | 147 // This may return null. |
| 147 base::android::ScopedJavaLocalRef<jobject> GetContainerView(); | 148 base::android::ScopedJavaLocalRef<jobject> GetContainerView(); |
| 148 | 149 |
| 149 float GetDipScale(); | 150 float GetDipScale(); |
| 150 | 151 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 203 |
| 203 gfx::Vector2dF content_offset_; // in CSS pixel. | 204 gfx::Vector2dF content_offset_; // in CSS pixel. |
| 204 std::unique_ptr<EventForwarder> event_forwarder_; | 205 std::unique_ptr<EventForwarder> event_forwarder_; |
| 205 | 206 |
| 206 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); | 207 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 } // namespace ui | 210 } // namespace ui |
| 210 | 211 |
| 211 #endif // UI_ANDROID_VIEW_ANDROID_H_ | 212 #endif // UI_ANDROID_VIEW_ANDROID_H_ |
| OLD | NEW |