Commit f233c99e authored by pkotwicz's avatar pkotwicz Committed by Commit bot

Remove debugging code which affects behavior in stable in FrameCaptionButtonContainerView

Remove 'feature' where the animations get slowed down when a user clicks one of
the window controls (minimize, maximize, close) while holding shift. This is
intended for debugging only but affects behavior in stable too

BUG=None
TEST=None

Review URL: https://codereview.chromium.org/586813004

Cr-Commit-Position: refs/heads/master@{#296023}
parent 8b1dd367
......@@ -322,15 +322,6 @@ bool FrameCaptionButtonContainerView::ShouldSizeButtonBeVisible() const {
void FrameCaptionButtonContainerView::ButtonPressed(views::Button* sender,
const ui::Event& event) {
// When shift-clicking, slow down animations for visual debugging.
// We used to do this via an event filter that looked for the shift key being
// pressed but this interfered with several normal keyboard shortcuts.
scoped_ptr<ui::ScopedAnimationDurationScaleMode> slow_duration_mode;
if (event.IsShiftDown()) {
slow_duration_mode.reset(new ui::ScopedAnimationDurationScaleMode(
ui::ScopedAnimationDurationScaleMode::SLOW_DURATION));
}
// Abort any animations of the button icons.
SetButtonsToNormal(ANIMATE_NO);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment