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

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: unittests Created 5 years, 6 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..ca113e4dd83bd0f8a4942c2a5fb0a8422bd8d443 100644
--- a/content/browser/android/popup_touch_handle_drawable.h
+++ b/content/browser/android/popup_touch_handle_drawable.h
@@ -20,17 +20,23 @@ class PopupTouchHandleDrawable : public ui::TouchHandleDrawable {
// ui::TouchHandleDrawable implementation.
void SetEnabled(bool enabled) override;
- void SetOrientation(ui::TouchHandleOrientation orientation) override;
+ void SetLayout(const gfx::PointF& position,
+ ui::TouchHandleOrientation orientation,
+ bool mirror_vertical,
+ bool mirror_horizontal) override;
void SetAlpha(float alpha) override;
- void SetFocus(const gfx::PointF& position) override;
gfx::RectF GetVisibleBounds() const override;
+ gfx::SizeF GetDrawablePadding() const override;
static bool RegisterPopupTouchHandleDrawable(JNIEnv* env);
private:
const float dpi_scale_;
+ gfx::SizeF drawable_padding_;
base::android::ScopedJavaGlobalRef<jobject> drawable_;
+ gfx::SizeF GetPaddingSize();
+
DISALLOW_COPY_AND_ASSIGN(PopupTouchHandleDrawable);
};

Powered by Google App Engine
This is Rietveld 408576698