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

Side by Side Diff: ui/views/animation/test/test_ink_drop_host.cc

Issue 2396133005: [ash-md] Animates ToggleButton highlight to move it in sync with the thumb (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/animation/test/test_ink_drop_host.h" 5 #include "ui/views/animation/test/test_ink_drop_host.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "ui/gfx/geometry/size.h" 8 #include "ui/gfx/geometry/size.h"
9 #include "ui/views/animation/ink_drop_highlight.h" 9 #include "ui/views/animation/ink_drop_highlight.h"
10 #include "ui/views/animation/square_ink_drop_ripple.h" 10 #include "ui/views/animation/square_ink_drop_ripple.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 std::unique_ptr<InkDropHighlight> highlight; 112 std::unique_ptr<InkDropHighlight> highlight;
113 if (should_show_highlight_) { 113 if (should_show_highlight_) {
114 highlight.reset(new TestInkDropHighlight(gfx::Size(10, 10), 4, 114 highlight.reset(new TestInkDropHighlight(gfx::Size(10, 10), 4,
115 gfx::PointF(), SK_ColorBLACK)); 115 gfx::PointF(), SK_ColorBLACK));
116 if (disable_timers_for_test_) 116 if (disable_timers_for_test_)
117 highlight->GetTestApi()->SetDisableAnimationTimers(true); 117 highlight->GetTestApi()->SetDisableAnimationTimers(true);
118 } 118 }
119 return highlight; 119 return highlight;
120 } 120 }
121 121
122 void TestInkDropHost::OffsetInkDropRipple(const gfx::Vector2d& offset) {}
123
122 } // namespace views 124 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698