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(); | |
142 | 141 |
143 ScopedAnchorView AcquireAnchorView(); | 142 ScopedAnchorView AcquireAnchorView(); |
144 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, | 143 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, |
145 const gfx::RectF& bounds); | 144 const gfx::RectF& bounds); |
146 | 145 |
147 // This may return null. | 146 // This may return null. |
148 base::android::ScopedJavaLocalRef<jobject> GetContainerView(); | 147 base::android::ScopedJavaLocalRef<jobject> GetContainerView(); |
149 | 148 |
150 float GetDipScale(); | 149 float GetDipScale(); |
151 | 150 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 202 |
204 gfx::Vector2dF content_offset_; // in CSS pixel. | 203 gfx::Vector2dF content_offset_; // in CSS pixel. |
205 std::unique_ptr<EventForwarder> event_forwarder_; | 204 std::unique_ptr<EventForwarder> event_forwarder_; |
206 | 205 |
207 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); | 206 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); |
208 }; | 207 }; |
209 | 208 |
210 } // namespace ui | 209 } // namespace ui |
211 | 210 |
212 #endif // UI_ANDROID_VIEW_ANDROID_H_ | 211 #endif // UI_ANDROID_VIEW_ANDROID_H_ |
OLD | NEW |