Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 2103243002: Factor out ContentViewAndroidDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 int start_offset, 70 int start_offset,
71 int end_offset)>& callback) override; 71 int end_offset)>& callback) override;
72 72
73 void AddObserver(ContentViewCoreImplObserver* observer); 73 void AddObserver(ContentViewCoreImplObserver* observer);
74 void RemoveObserver(ContentViewCoreImplObserver* observer); 74 void RemoveObserver(ContentViewCoreImplObserver* observer);
75 75
76 // ViewAndroid implementation 76 // ViewAndroid implementation
77 base::android::ScopedJavaLocalRef<jobject> GetViewAndroidDelegate() 77 base::android::ScopedJavaLocalRef<jobject> GetViewAndroidDelegate()
78 const override; 78 const override;
79 79
80 base::android::ScopedJavaLocalRef<jobject>
81 AcquireAnchorView(const gfx::RectF& bounds) override;
82
80 // -------------------------------------------------------------------------- 83 // --------------------------------------------------------------------------
81 // Methods called from Java via JNI 84 // Methods called from Java via JNI
82 // -------------------------------------------------------------------------- 85 // --------------------------------------------------------------------------
83 86
84 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid( 87 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid(
85 JNIEnv* env, 88 JNIEnv* env,
86 const base::android::JavaParamRef<jobject>& obj); 89 const base::android::JavaParamRef<jobject>& obj);
87 base::android::ScopedJavaLocalRef<jobject> GetJavaWindowAndroid( 90 base::android::ScopedJavaLocalRef<jobject> GetJavaWindowAndroid(
88 JNIEnv* env, 91 JNIEnv* env,
89 const base::android::JavaParamRef<jobject>& obj); 92 const base::android::JavaParamRef<jobject>& obj);
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 474 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
472 475
473 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 476 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
474 }; 477 };
475 478
476 bool RegisterContentViewCore(JNIEnv* env); 479 bool RegisterContentViewCore(JNIEnv* env);
477 480
478 } // namespace content 481 } // namespace content
479 482
480 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 483 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698