| 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" |
| 11 #include "base/android/jni_weak_ref.h" | 11 #include "base/android/jni_weak_ref.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/process/process.h" | 15 #include "base/process/process.h" |
| 16 #include "content/browser/renderer_host/render_widget_host_view_android.h" | 16 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 17 #include "content/browser/web_contents/web_contents_impl.h" | 17 #include "content/browser/web_contents/web_contents_impl.h" |
| 18 #include "content/public/browser/android/content_view_core.h" | 18 #include "content/public/browser/android/content_view_core.h" |
| 19 #include "content/public/browser/web_contents_observer.h" | 19 #include "content/public/browser/web_contents_observer.h" |
| 20 #include "third_party/WebKit/public/web/WebInputEvent.h" | 20 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 21 #include "ui/gfx/geometry/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
| 22 #include "ui/gfx/geometry/rect_f.h" | 22 #include "ui/gfx/geometry/rect_f.h" |
| 23 #include "ui/gfx/geometry/vector2d.h" |
| 23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 24 | 25 |
| 25 namespace ui { | 26 namespace ui { |
| 26 class ViewAndroid; | 27 class ViewAndroid; |
| 27 class WindowAndroid; | 28 class WindowAndroid; |
| 28 } | 29 } |
| 29 | 30 |
| 30 namespace content { | 31 namespace content { |
| 31 | 32 |
| 32 class GinJavaBridgeDispatcherHost; | 33 class GinJavaBridgeDispatcherHost; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // the Activity context. | 256 // the Activity context. |
| 256 base::android::ScopedJavaLocalRef<jobject> GetContext() const; | 257 base::android::ScopedJavaLocalRef<jobject> GetContext() const; |
| 257 | 258 |
| 258 // Returns the viewport size after accounting for the viewport offset. | 259 // Returns the viewport size after accounting for the viewport offset. |
| 259 gfx::Size GetViewSize() const; | 260 gfx::Size GetViewSize() const; |
| 260 | 261 |
| 261 void SetAccessibilityEnabledInternal(bool enabled); | 262 void SetAccessibilityEnabledInternal(bool enabled); |
| 262 | 263 |
| 263 bool IsFullscreenRequiredForOrientationLock() const; | 264 bool IsFullscreenRequiredForOrientationLock() const; |
| 264 | 265 |
| 266 gfx::Vector2d GetLocationOnScreen() const; |
| 267 |
| 265 // -------------------------------------------------------------------------- | 268 // -------------------------------------------------------------------------- |
| 266 // Methods called from native code | 269 // Methods called from native code |
| 267 // -------------------------------------------------------------------------- | 270 // -------------------------------------------------------------------------- |
| 268 | 271 |
| 269 gfx::Size GetPhysicalBackingSize() const; | 272 gfx::Size GetPhysicalBackingSize() const; |
| 270 gfx::Size GetViewportSizeDip() const; | 273 gfx::Size GetViewportSizeDip() const; |
| 271 bool DoTopControlsShrinkBlinkSize() const; | 274 bool DoTopControlsShrinkBlinkSize() const; |
| 272 float GetTopControlsHeightDip() const; | 275 float GetTopControlsHeightDip() const; |
| 273 | 276 |
| 274 void AttachLayer(scoped_refptr<cc::Layer> layer); | 277 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 350 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 348 | 351 |
| 349 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 352 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 350 }; | 353 }; |
| 351 | 354 |
| 352 bool RegisterContentViewCore(JNIEnv* env); | 355 bool RegisterContentViewCore(JNIEnv* env); |
| 353 | 356 |
| 354 } // namespace content | 357 } // namespace content |
| 355 | 358 |
| 356 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 359 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |