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

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 5 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 | « content/browser/android/composited_touch_handle_drawable.cc ('k') | content/content.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0ab39359216252388d22f0bcea4c741c2eafc39e..aef23f8fb0f9696f94bcf038d5320cd64fa345c6 100644
--- a/content/browser/android/popup_touch_handle_drawable.cc
+++ b/content/browser/android/popup_touch_handle_drawable.cc
@@ -33,22 +33,8 @@ void PopupTouchHandleDrawable::SetOrientation(
ui::TouchHandleOrientation orientation) {
JNIEnv* env = base::android::AttachCurrentThread();
jobject obj = drawable_.obj();
- switch (orientation) {
- case ui::TOUCH_HANDLE_LEFT:
- Java_PopupTouchHandleDrawable_setLeftOrientation(env, obj);
- break;
-
- case ui::TOUCH_HANDLE_RIGHT:
- Java_PopupTouchHandleDrawable_setRightOrientation(env, obj);
- break;
-
- case ui::TOUCH_HANDLE_CENTER:
- Java_PopupTouchHandleDrawable_setCenterOrientation(env, obj);
- break;
-
- case ui::TOUCH_HANDLE_ORIENTATION_UNDEFINED:
- NOTREACHED() << "Invalid touch handle orientation.";
- };
+ Java_PopupTouchHandleDrawable_setOrientation(env, obj,
+ static_cast<int>(orientation));
}
void PopupTouchHandleDrawable::SetAlpha(float alpha) {
« no previous file with comments | « content/browser/android/composited_touch_handle_drawable.cc ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698