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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 | 383 |
384 // -------------------------------------------------------------------------- | 384 // -------------------------------------------------------------------------- |
385 // Methods called from native code | 385 // Methods called from native code |
386 // -------------------------------------------------------------------------- | 386 // -------------------------------------------------------------------------- |
387 | 387 |
388 gfx::Size GetPhysicalBackingSize() const; | 388 gfx::Size GetPhysicalBackingSize() const; |
389 gfx::Size GetViewportSizeDip() const; | 389 gfx::Size GetViewportSizeDip() const; |
390 bool DoTopControlsShrinkBlinkSize() const; | 390 bool DoTopControlsShrinkBlinkSize() const; |
391 float GetTopControlsHeightDip() const; | 391 float GetTopControlsHeightDip() const; |
392 | 392 |
393 void AttachLayer(scoped_refptr<cc::Layer> layer); | |
394 void RemoveLayer(scoped_refptr<cc::Layer> layer); | |
395 | |
396 void MoveRangeSelectionExtent(const gfx::PointF& extent); | 393 void MoveRangeSelectionExtent(const gfx::PointF& extent); |
397 | 394 |
398 void SelectBetweenCoordinates(const gfx::PointF& base, | 395 void SelectBetweenCoordinates(const gfx::PointF& base, |
399 const gfx::PointF& extent); | 396 const gfx::PointF& extent); |
400 | 397 |
401 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); | 398 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); |
402 | 399 |
403 ui::ViewAndroid* GetViewAndroid(); | 400 ui::ViewAndroid* GetViewAndroid(); |
404 | 401 |
405 private: | 402 private: |
(...skipping 68 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 |