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