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

Unified Diff: content/browser/web_contents/web_contents_android.h

Issue 381593002: Removing ContentView dependencies for few functions which acts as WebContents wrapper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_android.h
diff --git a/content/browser/web_contents/web_contents_android.h b/content/browser/web_contents/web_contents_android.h
index 60d86816a30ab0c7a2c8f3ec5e9b9c85b4de3982..add9637f5290b872092167ca08b2d1a4d5d02e5d 100644
--- a/content/browser/web_contents/web_contents_android.h
+++ b/content/browser/web_contents/web_contents_android.h
@@ -12,6 +12,7 @@
#include "base/compiler_specific.h"
#include "base/supports_user_data.h"
#include "content/browser/frame_host/navigation_controller_android.h"
+#include "content/browser/renderer_host/render_widget_host_view_android.h"
#include "content/common/content_export.h"
namespace content {
@@ -39,10 +40,32 @@ class CONTENT_EXPORT WebContentsAndroid
base::android::ScopedJavaLocalRef<jstring> GetVisibleURL(JNIEnv* env,
jobject obj) const;
void Stop(JNIEnv* env, jobject obj);
+ jint GetBackgroundColor(JNIEnv* env, jobject obj);
+ void OnHide(JNIEnv* env, jobject obj);
+ void OnShow(JNIEnv* env, jobject obj);
+ void PauseVideo();
+ void AddStyleSheetByURL(
+ JNIEnv* env, jobject obj, jstring url);
+ void ShowInterstitialPage(
+ JNIEnv* env, jobject obj, jstring jurl, jlong delegate_ptr);
+ jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj);
+ jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj);
+ void ExitFullscreen(JNIEnv* env, jobject obj);
+ void UpdateTopControlsState(
+ JNIEnv* env,
+ jobject obj,
+ bool enable_hiding,
+ bool enable_showing,
+ bool animate);
+ void ShowImeIfNeeded(JNIEnv* env, jobject obj);
+ void ScrollFocusedEditableNodeIntoView(JNIEnv* env, jobject obj);
+ void SelectWordAroundCaret(JNIEnv* env, jobject obj);
void InsertCSS(JNIEnv* env, jobject jobj, jstring jcss);
private:
+ RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
+
WebContents* web_contents_;
NavigationControllerAndroid navigation_controller_;
base::android::ScopedJavaGlobalRef<jobject> obj_;
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/web_contents/web_contents_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698