| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 gfx::Size GetViewportSizeDip() const; | 274 gfx::Size GetViewportSizeDip() const; |
| 275 bool DoBrowserControlsShrinkBlinkSize() const; | 275 bool DoBrowserControlsShrinkBlinkSize() const; |
| 276 float GetTopControlsHeightDip() const; | 276 float GetTopControlsHeightDip() const; |
| 277 float GetBottomControlsHeightDip() const; | 277 float GetBottomControlsHeightDip() const; |
| 278 | 278 |
| 279 void MoveRangeSelectionExtent(const gfx::PointF& extent); | 279 void MoveRangeSelectionExtent(const gfx::PointF& extent); |
| 280 | 280 |
| 281 void SelectBetweenCoordinates(const gfx::PointF& base, | 281 void SelectBetweenCoordinates(const gfx::PointF& base, |
| 282 const gfx::PointF& extent); | 282 const gfx::PointF& extent); |
| 283 | 283 |
| 284 void UpdateCursor(const content::CursorInfo& info); |
| 284 void OnTouchDown(const base::android::ScopedJavaLocalRef<jobject>& event); | 285 void OnTouchDown(const base::android::ScopedJavaLocalRef<jobject>& event); |
| 285 | 286 |
| 286 ui::ViewAndroid* GetViewAndroid() const; | 287 ui::ViewAndroid* GetViewAndroid() const; |
| 287 | 288 |
| 288 private: | 289 private: |
| 289 class ContentViewUserData; | 290 class ContentViewUserData; |
| 290 | 291 |
| 291 friend class ContentViewUserData; | 292 friend class ContentViewUserData; |
| 292 ~ContentViewCore() override; | 293 ~ContentViewCore() override; |
| 293 | 294 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 348 |
| 348 // Manages injecting Java objects. | 349 // Manages injecting Java objects. |
| 349 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 350 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 350 | 351 |
| 351 DISALLOW_COPY_AND_ASSIGN(ContentViewCore); | 352 DISALLOW_COPY_AND_ASSIGN(ContentViewCore); |
| 352 }; | 353 }; |
| 353 | 354 |
| 354 } // namespace content | 355 } // namespace content |
| 355 | 356 |
| 356 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 357 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
| OLD | NEW |