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

Unified Diff: content/browser/android/popup_touch_handle_drawable.cc

Issue 701823002: Separate out Touch Selection Orientation enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/android/popup_touch_handle_drawable.cc
diff --git a/content/browser/android/popup_touch_handle_drawable.cc b/content/browser/android/popup_touch_handle_drawable.cc
index ac2f57bffc2d56241483fb2da171861d8a399239..21696afe5d02840085c64cf651f58b36c6a7c251 100644
--- a/content/browser/android/popup_touch_handle_drawable.cc
+++ b/content/browser/android/popup_touch_handle_drawable.cc
@@ -30,22 +30,7 @@ void PopupTouchHandleDrawable::SetOrientation(
TouchHandleOrientation orientation) {
JNIEnv* env = base::android::AttachCurrentThread();
jobject obj = drawable_.obj();
- switch (orientation) {
- case TOUCH_HANDLE_LEFT:
- Java_PopupTouchHandleDrawable_setLeftOrientation(env, obj);
- break;
-
- case TOUCH_HANDLE_RIGHT:
- Java_PopupTouchHandleDrawable_setRightOrientation(env, obj);
- break;
-
- case TOUCH_HANDLE_CENTER:
- Java_PopupTouchHandleDrawable_setCenterOrientation(env, obj);
- break;
-
- case TOUCH_HANDLE_ORIENTATION_UNDEFINED:
- NOTREACHED() << "Invalid touch handle orientation.";
- };
+ Java_PopupTouchHandleDrawable_setOrientation(env, obj, orientation);
}
void PopupTouchHandleDrawable::SetAlpha(float alpha) {

Powered by Google App Engine
This is Rietveld 408576698