OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 gfx::Size GetViewportSizeDip() const; | 279 gfx::Size GetViewportSizeDip() const; |
280 bool DoBrowserControlsShrinkBlinkSize() const; | 280 bool DoBrowserControlsShrinkBlinkSize() const; |
281 float GetTopControlsHeightDip() const; | 281 float GetTopControlsHeightDip() const; |
282 float GetBottomControlsHeightDip() const; | 282 float GetBottomControlsHeightDip() const; |
283 | 283 |
284 void MoveRangeSelectionExtent(const gfx::PointF& extent); | 284 void MoveRangeSelectionExtent(const gfx::PointF& extent); |
285 | 285 |
286 void SelectBetweenCoordinates(const gfx::PointF& base, | 286 void SelectBetweenCoordinates(const gfx::PointF& base, |
287 const gfx::PointF& extent); | 287 const gfx::PointF& extent); |
288 | 288 |
| 289 void UpdateCursor(const content::CursorInfo& info); |
289 void OnTouchDown(const base::android::ScopedJavaLocalRef<jobject>& event); | 290 void OnTouchDown(const base::android::ScopedJavaLocalRef<jobject>& event); |
290 | 291 |
291 ui::ViewAndroid* GetViewAndroid() const; | 292 ui::ViewAndroid* GetViewAndroid() const; |
292 | 293 |
293 private: | 294 private: |
294 class ContentViewUserData; | 295 class ContentViewUserData; |
295 | 296 |
296 friend class ContentViewUserData; | 297 friend class ContentViewUserData; |
297 ~ContentViewCore() override; | 298 ~ContentViewCore() override; |
298 | 299 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 355 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
355 | 356 |
356 DISALLOW_COPY_AND_ASSIGN(ContentViewCore); | 357 DISALLOW_COPY_AND_ASSIGN(ContentViewCore); |
357 }; | 358 }; |
358 | 359 |
359 bool RegisterContentViewCore(JNIEnv* env); | 360 bool RegisterContentViewCore(JNIEnv* env); |
360 | 361 |
361 } // namespace content | 362 } // namespace content |
362 | 363 |
363 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 364 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
OLD | NEW |