OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 29 matching lines...) Expand all Loading... | |
40 public: | 40 public: |
41 // Returns the existing ContentViewCore for |web_contents|, or NULL. | 41 // Returns the existing ContentViewCore for |web_contents|, or NULL. |
42 static ContentViewCore* FromWebContents(WebContents* web_contents); | 42 static ContentViewCore* FromWebContents(WebContents* web_contents); |
43 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj); | 43 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj); |
44 | 44 |
45 virtual WebContents* GetWebContents() const = 0; | 45 virtual WebContents* GetWebContents() const = 0; |
46 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; | 46 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; |
47 virtual ui::ViewAndroid* GetViewAndroid() const = 0; | 47 virtual ui::ViewAndroid* GetViewAndroid() const = 0; |
48 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; | 48 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; |
49 virtual scoped_refptr<cc::Layer> GetLayer() const = 0; | 49 virtual scoped_refptr<cc::Layer> GetLayer() const = 0; |
50 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0; | |
Yaron
2014/07/23 18:58:38
I tried patching this in locally and it doesn't co
AKVT
2014/07/24 07:47:24
I had done only content_shell_apk build for verify
| |
51 virtual void ShowPastePopup(int x, int y) = 0; | 50 virtual void ShowPastePopup(int x, int y) = 0; |
52 | 51 |
53 // Request a scaled content readback. The result is passed through the | 52 // Request a scaled content readback. The result is passed through the |
54 // callback. The boolean parameter indicates whether the readback was a | 53 // callback. The boolean parameter indicates whether the readback was a |
55 // success or not. The content is passed through the SkBitmap parameter. | 54 // success or not. The content is passed through the SkBitmap parameter. |
56 virtual void GetScaledContentBitmap( | 55 virtual void GetScaledContentBitmap( |
57 float scale, | 56 float scale, |
58 jobject bitmap_config, | 57 jobject bitmap_config, |
59 gfx::Rect src_rect, | 58 gfx::Rect src_rect, |
60 const base::Callback<void(bool, const SkBitmap&)>& result_callback) = 0; | 59 const base::Callback<void(bool, const SkBitmap&)>& result_callback) = 0; |
(...skipping 14 matching lines...) Expand all Loading... | |
75 int start_offset, | 74 int start_offset, |
76 int end_offset)>& callback) = 0; | 75 int end_offset)>& callback) = 0; |
77 | 76 |
78 protected: | 77 protected: |
79 virtual ~ContentViewCore() {}; | 78 virtual ~ContentViewCore() {}; |
80 }; | 79 }; |
81 | 80 |
82 }; // namespace content | 81 }; // namespace content |
83 | 82 |
84 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 83 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
OLD | NEW |