| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; | 50 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; |
| 51 virtual WebContents* GetWebContents() const override; | 51 virtual WebContents* GetWebContents() const override; |
| 52 virtual ui::ViewAndroid* GetViewAndroid() const override; | 52 virtual ui::ViewAndroid* GetViewAndroid() const override; |
| 53 virtual ui::WindowAndroid* GetWindowAndroid() const override; | 53 virtual ui::WindowAndroid* GetWindowAndroid() const override; |
| 54 virtual scoped_refptr<cc::Layer> GetLayer() const override; | 54 virtual scoped_refptr<cc::Layer> GetLayer() const override; |
| 55 virtual void ShowPastePopup(int x, int y) override; | 55 virtual void ShowPastePopup(int x, int y) override; |
| 56 virtual void GetScaledContentBitmap( | 56 virtual void GetScaledContentBitmap( |
| 57 float scale, | 57 float scale, |
| 58 SkColorType color_type, | 58 SkColorType color_type, |
| 59 gfx::Rect src_subrect, | 59 gfx::Rect src_subrect, |
| 60 const base::Callback<void(bool, const SkBitmap&)>& result_callback) | 60 ReadbackRequestCallback& result_callback) override; |
| 61 override; | |
| 62 virtual float GetDpiScale() const override; | 61 virtual float GetDpiScale() const override; |
| 63 virtual void PauseOrResumeGeolocation(bool should_pause) override; | 62 virtual void PauseOrResumeGeolocation(bool should_pause) override; |
| 64 virtual void RequestTextSurroundingSelection( | 63 virtual void RequestTextSurroundingSelection( |
| 65 int max_length, | 64 int max_length, |
| 66 const base::Callback<void(const base::string16& content, | 65 const base::Callback<void(const base::string16& content, |
| 67 int start_offset, | 66 int start_offset, |
| 68 int end_offset)>& callback) override; | 67 int end_offset)>& callback) override; |
| 69 | 68 |
| 70 // -------------------------------------------------------------------------- | 69 // -------------------------------------------------------------------------- |
| 71 // Methods called from Java via JNI | 70 // Methods called from Java via JNI |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 java_bridge_dispatcher_host_; | 341 java_bridge_dispatcher_host_; |
| 343 | 342 |
| 344 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 343 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 345 }; | 344 }; |
| 346 | 345 |
| 347 bool RegisterContentViewCore(JNIEnv* env); | 346 bool RegisterContentViewCore(JNIEnv* env); |
| 348 | 347 |
| 349 } // namespace content | 348 } // namespace content |
| 350 | 349 |
| 351 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 350 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |