| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 jobject obj, | 54 jobject obj, |
| 55 WebContents* web_contents, | 55 WebContents* web_contents, |
| 56 const base::android::JavaRef<jobject>& view_android_delegate, | 56 const base::android::JavaRef<jobject>& view_android_delegate, |
| 57 ui::WindowAndroid* window_android, | 57 ui::WindowAndroid* window_android, |
| 58 jobject java_bridge_retained_object_set); | 58 jobject java_bridge_retained_object_set); |
| 59 | 59 |
| 60 // ContentViewCore implementation. | 60 // ContentViewCore implementation. |
| 61 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; | 61 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; |
| 62 WebContents* GetWebContents() const override; | 62 WebContents* GetWebContents() const override; |
| 63 ui::WindowAndroid* GetWindowAndroid() const override; | 63 ui::WindowAndroid* GetWindowAndroid() const override; |
| 64 const base::android::JavaRef<jobject>& GetViewAndroidDelegate() | |
| 65 const override; | |
| 66 cc::Layer* GetLayer() const override; | 64 cc::Layer* GetLayer() const override; |
| 67 bool ShowPastePopup(int x, int y) override; | 65 bool ShowPastePopup(int x, int y) override; |
| 68 void PauseOrResumeGeolocation(bool should_pause) override; | 66 void PauseOrResumeGeolocation(bool should_pause) override; |
| 69 | 67 |
| 70 void AddObserver(ContentViewCoreImplObserver* observer); | 68 void AddObserver(ContentViewCoreImplObserver* observer); |
| 71 void RemoveObserver(ContentViewCoreImplObserver* observer); | 69 void RemoveObserver(ContentViewCoreImplObserver* observer); |
| 72 | 70 |
| 73 // -------------------------------------------------------------------------- | 71 // -------------------------------------------------------------------------- |
| 74 // Methods called from Java via JNI | 72 // Methods called from Java via JNI |
| 75 // -------------------------------------------------------------------------- | 73 // -------------------------------------------------------------------------- |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 void SetFocusInternal(bool focused); | 440 void SetFocusInternal(bool focused); |
| 443 | 441 |
| 444 // Send device_orientation_ to renderer. | 442 // Send device_orientation_ to renderer. |
| 445 void SendOrientationChangeEventInternal(); | 443 void SendOrientationChangeEventInternal(); |
| 446 | 444 |
| 447 float dpi_scale() const { return dpi_scale_; } | 445 float dpi_scale() const { return dpi_scale_; } |
| 448 | 446 |
| 449 // A weak reference to the Java ContentViewCore object. | 447 // A weak reference to the Java ContentViewCore object. |
| 450 JavaObjectWeakGlobalRef java_ref_; | 448 JavaObjectWeakGlobalRef java_ref_; |
| 451 | 449 |
| 450 // Select popup view |
| 451 ui::ViewAndroid::ScopedAnchorView select_popup_; |
| 452 |
| 452 ui::ViewAndroid view_; | 453 ui::ViewAndroid view_; |
| 453 | 454 |
| 454 // Reference to the current WebContents used to determine how and what to | 455 // Reference to the current WebContents used to determine how and what to |
| 455 // display in the ContentViewCore. | 456 // display in the ContentViewCore. |
| 456 WebContentsImpl* web_contents_; | 457 WebContentsImpl* web_contents_; |
| 457 | 458 |
| 458 // Page scale factor. | 459 // Page scale factor. |
| 459 float page_scale_; | 460 float page_scale_; |
| 460 | 461 |
| 461 // Device scale factor. | 462 // Device scale factor. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 474 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 475 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 475 | 476 |
| 476 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 477 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 477 }; | 478 }; |
| 478 | 479 |
| 479 bool RegisterContentViewCore(JNIEnv* env); | 480 bool RegisterContentViewCore(JNIEnv* env); |
| 480 | 481 |
| 481 } // namespace content | 482 } // namespace content |
| 482 | 483 |
| 483 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 484 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |