Chromium Code Reviews| 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; |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 // Methods called from Java via JNI | 39 // Methods called from Java via JNI |
| 40 // -------------------------------------------------------------------------- | 40 // -------------------------------------------------------------------------- |
| 41 | 41 |
| 42 virtual int GetNativeImeAdapter(JNIEnv* env, jobject obj) = 0; | 42 virtual int GetNativeImeAdapter(JNIEnv* env, jobject obj) = 0; |
| 43 virtual void SelectBetweenCoordinates(JNIEnv* env, jobject obj, | 43 virtual void SelectBetweenCoordinates(JNIEnv* env, jobject obj, |
| 44 jint x1, jint y1, jint x2, jint y2) = 0; | 44 jint x1, jint y1, jint x2, jint y2) = 0; |
| 45 | 45 |
| 46 // -------------------------------------------------------------------------- | 46 // -------------------------------------------------------------------------- |
| 47 // Methods called from native code | 47 // Methods called from native code |
| 48 // -------------------------------------------------------------------------- | 48 // -------------------------------------------------------------------------- |
| 49 virtual content::WebContents* web_contents() const = 0; | |
|
Ted C
2012/09/20 17:28:45
Nilesh added GetWebContents in:
http://codereview.
| |
| 49 | 50 |
| 50 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; | 51 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; |
| 51 | 52 |
| 52 protected: | 53 protected: |
| 53 virtual ~ContentViewCore() {}; | 54 virtual ~ContentViewCore() {}; |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 }; // namespace content | 57 }; // namespace content |
| 57 | 58 |
| 58 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_CORE_H_ | 59 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_CORE_H_ |
| OLD | NEW |