| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 380 |
| 381 // -------------------------------------------------------------------------- | 381 // -------------------------------------------------------------------------- |
| 382 // Methods called from native code | 382 // Methods called from native code |
| 383 // -------------------------------------------------------------------------- | 383 // -------------------------------------------------------------------------- |
| 384 | 384 |
| 385 gfx::Size GetPhysicalBackingSize() const; | 385 gfx::Size GetPhysicalBackingSize() const; |
| 386 gfx::Size GetViewportSizeDip() const; | 386 gfx::Size GetViewportSizeDip() const; |
| 387 bool DoTopControlsShrinkBlinkSize() const; | 387 bool DoTopControlsShrinkBlinkSize() const; |
| 388 float GetTopControlsHeightDip() const; | 388 float GetTopControlsHeightDip() const; |
| 389 | 389 |
| 390 void AttachLayer(scoped_refptr<cc::Layer> layer); | |
| 391 void RemoveLayer(scoped_refptr<cc::Layer> layer); | |
| 392 | |
| 393 void MoveRangeSelectionExtent(const gfx::PointF& extent); | 390 void MoveRangeSelectionExtent(const gfx::PointF& extent); |
| 394 | 391 |
| 395 void SelectBetweenCoordinates(const gfx::PointF& base, | 392 void SelectBetweenCoordinates(const gfx::PointF& base, |
| 396 const gfx::PointF& extent); | 393 const gfx::PointF& extent); |
| 397 | 394 |
| 398 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); | 395 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); |
| 399 | 396 |
| 400 ui::ViewAndroid* GetViewAndroid(); | 397 ui::ViewAndroid* GetViewAndroid(); |
| 401 | 398 |
| 402 private: | 399 private: |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 471 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 475 | 472 |
| 476 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 473 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 477 }; | 474 }; |
| 478 | 475 |
| 479 bool RegisterContentViewCore(JNIEnv* env); | 476 bool RegisterContentViewCore(JNIEnv* env); |
| 480 | 477 |
| 481 } // namespace content | 478 } // namespace content |
| 482 | 479 |
| 483 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 480 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |