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 "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
9 #include <jni.h> | 9 #include <jni.h> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... | |
33 public: | 33 public: |
34 virtual void Destroy(JNIEnv* env, jobject obj) = 0; | 34 virtual void Destroy(JNIEnv* env, jobject obj) = 0; |
35 virtual content::WebContents* GetWebContents() const = 0; | 35 virtual content::WebContents* GetWebContents() const = 0; |
36 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; | 36 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; |
37 virtual ui::WindowAndroid* GetWindowAndroid() = 0; | 37 virtual ui::WindowAndroid* GetWindowAndroid() = 0; |
38 | 38 |
39 static ContentViewCore* Create( | 39 static ContentViewCore* Create( |
40 JNIEnv* env, jobject obj, WebContents* web_contents); | 40 JNIEnv* env, jobject obj, WebContents* web_contents); |
41 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj); | 41 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj); |
42 | 42 |
43 virtual void UpdateContentSize(int width, int height) = 0; | |
Ted C
2012/09/21 00:29:48
are these called from outside of the content packa
Ramya
2012/09/21 01:12:43
Done.
| |
44 | |
45 virtual void UpdateScrollOffsetAndPageScaleFactor( | |
46 int x, int y, float scale) = 0; | |
47 | |
43 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0; | 48 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0; |
44 | 49 |
45 protected: | 50 protected: |
46 virtual ~ContentViewCore() {}; | 51 virtual ~ContentViewCore() {}; |
47 }; | 52 }; |
48 | 53 |
49 }; // namespace content | 54 }; // namespace content |
50 | 55 |
51 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 56 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
OLD | NEW |