| 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 <jni.h> | 9 #include <jni.h> |
| 9 | 10 |
| 10 class GURL; | 11 class GURL; |
| 11 | 12 |
| 13 namespace ui { |
| 14 class WindowAndroid; |
| 15 } |
| 16 |
| 12 namespace content { | 17 namespace content { |
| 13 | 18 |
| 14 class WebContents; | 19 class WebContents; |
| 15 | 20 |
| 16 // Native side of the ContentViewCore.java, which is the primary way of | 21 // Native side of the ContentViewCore.java, which is the primary way of |
| 17 // communicating with the native Chromium code on Android. This is a | 22 // communicating with the native Chromium code on Android. This is a |
| 18 // public interface used by native code outside of the content module. | 23 // public interface used by native code outside of the content module. |
| 19 // | 24 // |
| 20 // TODO(jrg): this is a shell. Upstream the rest. | 25 // TODO(jrg): this is a shell. Upstream the rest. |
| 21 // | 26 // |
| (...skipping 20 matching lines...) Expand all Loading... |
| 42 virtual int GetNativeImeAdapter(JNIEnv* env, jobject obj) = 0; | 47 virtual int GetNativeImeAdapter(JNIEnv* env, jobject obj) = 0; |
| 43 virtual void SelectBetweenCoordinates(JNIEnv* env, jobject obj, | 48 virtual void SelectBetweenCoordinates(JNIEnv* env, jobject obj, |
| 44 jint x1, jint y1, jint x2, jint y2) = 0; | 49 jint x1, jint y1, jint x2, jint y2) = 0; |
| 45 | 50 |
| 46 // -------------------------------------------------------------------------- | 51 // -------------------------------------------------------------------------- |
| 47 // Methods called from native code | 52 // Methods called from native code |
| 48 // -------------------------------------------------------------------------- | 53 // -------------------------------------------------------------------------- |
| 49 | 54 |
| 50 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; | 55 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; |
| 51 | 56 |
| 57 virtual ui::WindowAndroid* GetWindowAndroid() = 0; |
| 52 protected: | 58 protected: |
| 53 virtual ~ContentViewCore() {}; | 59 virtual ~ContentViewCore() {}; |
| 54 }; | 60 }; |
| 55 | 61 |
| 56 }; // namespace content | 62 }; // namespace content |
| 57 | 63 |
| 58 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_CORE_H_ | 64 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_CORE_H_ |
| OLD | NEW |