| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // -------------------------------------------------------------------------- | 267 // -------------------------------------------------------------------------- |
| 268 | 268 |
| 269 gfx::Size GetPhysicalBackingSize() const; | 269 gfx::Size GetPhysicalBackingSize() const; |
| 270 gfx::Size GetViewportSizeDip() const; | 270 gfx::Size GetViewportSizeDip() const; |
| 271 bool DoTopControlsShrinkBlinkSize() const; | 271 bool DoTopControlsShrinkBlinkSize() const; |
| 272 float GetTopControlsHeightDip() const; | 272 float GetTopControlsHeightDip() const; |
| 273 | 273 |
| 274 void AttachLayer(scoped_refptr<cc::Layer> layer); | 274 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| 275 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 275 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
| 276 | 276 |
| 277 void MoveRangeSelectionExtent(const gfx::PointF& extent); | 277 void MoveRangeSelectionExtent(const gfx::PointF& extent, |
| 278 ui::TextSelectionGranularity granularity); |
| 278 | 279 |
| 279 void SelectBetweenCoordinates(const gfx::PointF& base, | 280 void SelectBetweenCoordinates(const gfx::PointF& base, |
| 280 const gfx::PointF& extent); | 281 const gfx::PointF& extent); |
| 281 | 282 |
| 282 private: | 283 private: |
| 283 class ContentViewUserData; | 284 class ContentViewUserData; |
| 284 | 285 |
| 285 friend class ContentViewUserData; | 286 friend class ContentViewUserData; |
| 286 virtual ~ContentViewCoreImpl(); | 287 virtual ~ContentViewCoreImpl(); |
| 287 | 288 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 346 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 346 | 347 |
| 347 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 348 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 348 }; | 349 }; |
| 349 | 350 |
| 350 bool RegisterContentViewCore(JNIEnv* env); | 351 bool RegisterContentViewCore(JNIEnv* env); |
| 351 | 352 |
| 352 } // namespace content | 353 } // namespace content |
| 353 | 354 |
| 354 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 355 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |