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

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

Issue 481683003: Support for Adaptive Handle Orientation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 4 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/android/popup_touch_handle_drawable.h
diff --git a/content/browser/android/popup_touch_handle_drawable.h b/content/browser/android/popup_touch_handle_drawable.h
index 5b5c334e8a5ad2fb658eeaf0aaee40d2a73e14de..4a9b9008d785763cc534349f3b8ad1168eab10b5 100644
--- a/content/browser/android/popup_touch_handle_drawable.h
+++ b/content/browser/android/popup_touch_handle_drawable.h
@@ -20,15 +20,19 @@ class PopupTouchHandleDrawable : public ui::TouchHandleDrawable {
// ui::TouchHandleDrawable implementation.
void SetEnabled(bool enabled) override;
- void SetOrientation(ui::TouchHandleOrientation orientation) override;
+ void SetOrientation(ui::TouchHandleOrientation orientation,
+ bool mirror_vertical,
+ bool mirror_horizontal) override;
+ void SetOrigin(const gfx::PointF& origin) override;
void SetAlpha(float alpha) override;
- void SetFocus(const gfx::PointF& position) override;
gfx::RectF GetVisibleBounds() const override;
+ const float GetDrawableHorizontalPadding() const override;
static bool RegisterPopupTouchHandleDrawable(JNIEnv* env);
private:
const float dpi_scale_;
+ float drawable_horizontal_padding_;
base::android::ScopedJavaGlobalRef<jobject> drawable_;
DISALLOW_COPY_AND_ASSIGN(PopupTouchHandleDrawable);

Powered by Google App Engine
This is Rietveld 408576698