| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() | 64 const base::android::JavaRef<jobject>& GetViewAndroidDelegate() |
| 65 const override; | 65 const override; |
| 66 cc::Layer* GetLayer() const override; | 66 cc::Layer* GetLayer() const override; |
| 67 bool ShowPastePopup(int x, int y) override; | 67 bool ShowPastePopup(int x, int y) override; |
| 68 float GetDpiScale() const override; | |
| 69 void PauseOrResumeGeolocation(bool should_pause) override; | 68 void PauseOrResumeGeolocation(bool should_pause) override; |
| 70 void RequestTextSurroundingSelection( | 69 void RequestTextSurroundingSelection( |
| 71 int max_length, | 70 int max_length, |
| 72 const base::Callback<void(const base::string16& content, | 71 const base::Callback<void(const base::string16& content, |
| 73 int start_offset, | 72 int start_offset, |
| 74 int end_offset)>& callback) override; | 73 int end_offset)>& callback) override; |
| 75 | 74 |
| 76 void AddObserver(ContentViewCoreImplObserver* observer); | 75 void AddObserver(ContentViewCoreImplObserver* observer); |
| 77 void RemoveObserver(ContentViewCoreImplObserver* observer); | 76 void RemoveObserver(ContentViewCoreImplObserver* observer); |
| 78 | 77 |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 477 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 479 | 478 |
| 480 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 479 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 481 }; | 480 }; |
| 482 | 481 |
| 483 bool RegisterContentViewCore(JNIEnv* env); | 482 bool RegisterContentViewCore(JNIEnv* env); |
| 484 | 483 |
| 485 } // namespace content | 484 } // namespace content |
| 486 | 485 |
| 487 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 486 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |