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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 bool IsFullscreenRequiredForOrientationLock() const; | 256 bool IsFullscreenRequiredForOrientationLock() const; |
257 | 257 |
258 // -------------------------------------------------------------------------- | 258 // -------------------------------------------------------------------------- |
259 // Methods called from native code | 259 // Methods called from native code |
260 // -------------------------------------------------------------------------- | 260 // -------------------------------------------------------------------------- |
261 | 261 |
262 gfx::Size GetPhysicalBackingSize() const; | 262 gfx::Size GetPhysicalBackingSize() const; |
263 gfx::Size GetViewportSizeDip() const; | 263 gfx::Size GetViewportSizeDip() const; |
264 float GetTopControlsLayoutHeightDip() const; | 264 float GetTopControlsLayoutHeightDip() const; |
265 | 265 |
| 266 void SetNeedsAnimate(); |
266 void AttachLayer(scoped_refptr<cc::Layer> layer); | 267 void AttachLayer(scoped_refptr<cc::Layer> layer); |
267 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 268 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
268 | 269 |
269 void SelectBetweenCoordinates(const gfx::PointF& start, | 270 void SelectBetweenCoordinates(const gfx::PointF& start, |
270 const gfx::PointF& end); | 271 const gfx::PointF& end); |
271 | 272 |
272 private: | 273 private: |
273 class ContentViewUserData; | 274 class ContentViewUserData; |
274 | 275 |
275 friend class ContentViewUserData; | 276 friend class ContentViewUserData; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 java_bridge_dispatcher_host_; | 337 java_bridge_dispatcher_host_; |
337 | 338 |
338 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 339 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
339 }; | 340 }; |
340 | 341 |
341 bool RegisterContentViewCore(JNIEnv* env); | 342 bool RegisterContentViewCore(JNIEnv* env); |
342 | 343 |
343 } // namespace content | 344 } // namespace content |
344 | 345 |
345 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 346 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |