OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 JNIEnv* env, | 49 JNIEnv* env, |
50 const base::android::JavaRef<jobject>& obj, | 50 const base::android::JavaRef<jobject>& obj, |
51 WebContents* web_contents, | 51 WebContents* web_contents, |
52 float dpi_scale, | 52 float dpi_scale, |
53 const base::android::JavaRef<jobject>& java_bridge_retained_object_set); | 53 const base::android::JavaRef<jobject>& java_bridge_retained_object_set); |
54 | 54 |
55 // ContentViewCore implementation. | 55 // ContentViewCore implementation. |
56 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; | 56 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; |
57 WebContents* GetWebContents() const override; | 57 WebContents* GetWebContents() const override; |
58 ui::WindowAndroid* GetWindowAndroid() const override; | 58 ui::WindowAndroid* GetWindowAndroid() const override; |
59 bool ShowPastePopup(const ContextMenuParams& params) override; | 59 bool ShowSelectionMenu(const ContextMenuParams& params) override; |
60 | 60 |
61 void AddObserver(ContentViewCoreImplObserver* observer); | 61 void AddObserver(ContentViewCoreImplObserver* observer); |
62 void RemoveObserver(ContentViewCoreImplObserver* observer); | 62 void RemoveObserver(ContentViewCoreImplObserver* observer); |
63 | 63 |
64 // -------------------------------------------------------------------------- | 64 // -------------------------------------------------------------------------- |
65 // Methods called from Java via JNI | 65 // Methods called from Java via JNI |
66 // -------------------------------------------------------------------------- | 66 // -------------------------------------------------------------------------- |
67 | 67 |
68 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid( | 68 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid( |
69 JNIEnv* env, | 69 JNIEnv* env, |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 374 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
375 | 375 |
376 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 376 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
377 }; | 377 }; |
378 | 378 |
379 bool RegisterContentViewCore(JNIEnv* env); | 379 bool RegisterContentViewCore(JNIEnv* env); |
380 | 380 |
381 } // namespace content | 381 } // namespace content |
382 | 382 |
383 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 383 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |