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

Unified Diff: ui/android/view_android.cc

Issue 2694273002: Revert of Refactor ContentViewClient (4/6) (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « ui/android/view_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/view_android.cc
diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
index e1716c141bd0ef8a21a42239dded78ab29dfbace..43f084fcf737da20491fae94808a83471544bcda 100644
--- a/ui/android/view_android.cc
+++ b/ui/android/view_android.cc
@@ -7,17 +7,14 @@
#include <algorithm>
#include "base/android/jni_android.h"
-#include "base/android/jni_string.h"
#include "cc/layers/layer.h"
#include "jni/ViewAndroidDelegate_jni.h"
#include "ui/android/window_android.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
-#include "url/gurl.h"
namespace ui {
-using base::android::ConvertUTF8ToJavaString;
using base::android::JavaRef;
using base::android::ScopedJavaLocalRef;
@@ -218,9 +215,7 @@
if (delegate.is_null())
return false;
JNIEnv* env = base::android::AttachCurrentThread();
- return Java_ViewAndroidDelegate_startDragAndDrop(env,
- delegate,
- jtext,
+ return Java_ViewAndroidDelegate_startDragAndDrop(env, delegate, jtext,
jimage);
}
@@ -246,52 +241,4 @@
return false;
}
-void ViewAndroid::OnBackgroundColorChanged(unsigned int color) {
- ScopedJavaLocalRef<jobject> delegate(GetViewAndroidDelegate());
- if (delegate.is_null())
- return;
- JNIEnv* env = base::android::AttachCurrentThread();
- Java_ViewAndroidDelegate_onBackgroundColorChanged(env,
- delegate,
- color);
-}
-
-void ViewAndroid::OnTopControlsChanged(float top_controls_offset,
- float top_content_offset) {
- ScopedJavaLocalRef<jobject> delegate(GetViewAndroidDelegate());
- if (delegate.is_null())
- return;
- JNIEnv* env = base::android::AttachCurrentThread();
- Java_ViewAndroidDelegate_onTopControlsChanged(env,
- delegate,
- top_controls_offset,
- top_content_offset);
-}
-
-void ViewAndroid::OnBottomControlsChanged(float bottom_controls_offset,
- float bottom_content_offset) {
- ScopedJavaLocalRef<jobject> delegate(GetViewAndroidDelegate());
- if (delegate.is_null())
- return;
- JNIEnv* env = base::android::AttachCurrentThread();
- Java_ViewAndroidDelegate_onBottomControlsChanged(env,
- delegate,
- bottom_controls_offset,
- bottom_content_offset);
-}
-
-void ViewAndroid::StartContentIntent(const GURL& content_url,
- bool is_main_frame) {
- ScopedJavaLocalRef<jobject> delegate(GetViewAndroidDelegate());
- if (delegate.is_null())
- return;
- JNIEnv* env = base::android::AttachCurrentThread();
- ScopedJavaLocalRef<jstring> jcontent_url =
- ConvertUTF8ToJavaString(env, content_url.spec());
- Java_ViewAndroidDelegate_onStartContentIntent(env,
- delegate,
- jcontent_url,
- is_main_frame);
-
-}
} // namespace ui
« no previous file with comments | « ui/android/view_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698