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

Unified Diff: ui/touch_selection/touch_selection_controller_unittest.cc

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: ui/touch_selection/touch_selection_controller_unittest.cc
diff --git a/ui/touch_selection/touch_selection_controller_unittest.cc b/ui/touch_selection/touch_selection_controller_unittest.cc
index b0f05767dfc026e1618605e863d869641ae7420c..eb47a637f39fc72709e418658ea3ab586f1154e2 100644
--- a/ui/touch_selection/touch_selection_controller_unittest.cc
+++ b/ui/touch_selection/touch_selection_controller_unittest.cc
@@ -28,13 +28,16 @@ class MockTouchHandleDrawable : public TouchHandleDrawable {
: intersects_rect_(contains_point) {}
~MockTouchHandleDrawable() override {}
void SetEnabled(bool enabled) override {}
- void SetOrientation(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 {
return *intersects_rect_ ? gfx::RectF(-1000, -1000, 2000, 2000)
: gfx::RectF(-1000, -1000, 0, 0);
}
+ const float GetDrawableHorizontalPadding() const override { return 0; }
private:
bool* intersects_rect_;
« ui/touch_selection/touch_handle.cc ('K') | « ui/touch_selection/touch_selection_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698