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

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

Issue 481683003: Support for Adaptive Handle Orientation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 2 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 | « no previous file | content/browser/android/composited_touch_handle_drawable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/composited_touch_handle_drawable.h
diff --git a/content/browser/android/composited_touch_handle_drawable.h b/content/browser/android/composited_touch_handle_drawable.h
index 28c6910b9d437dfa96c8a2962c2dc03c8ce6033f..ccec3e1ceaaf13e2ea4757fd43e510a299433852 100644
--- a/content/browser/android/composited_touch_handle_drawable.h
+++ b/content/browser/android/composited_touch_handle_drawable.h
@@ -22,10 +22,13 @@ class CompositedTouchHandleDrawable : 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;
+ float GetDrawableHorizontalPaddingRatio() const override;
static bool RegisterHandleViewResources(JNIEnv* env);
@@ -34,9 +37,9 @@ class CompositedTouchHandleDrawable : public ui::TouchHandleDrawable {
void UpdateLayerPosition();
const float dpi_scale_;
+ float drawable_horizontal_padding_ratio_;
ui::TouchHandleOrientation orientation_;
- gfx::PointF focal_position_;
- gfx::Vector2dF focal_offset_from_origin_;
+ gfx::PointF origin_position_;
scoped_refptr<cc::UIResourceLayer> layer_;
DISALLOW_COPY_AND_ASSIGN(CompositedTouchHandleDrawable);
« no previous file with comments | « no previous file | content/browser/android/composited_touch_handle_drawable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698