OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ash/wm/workspace/alternate_frame_caption_button.h" | 5 #include "ash/wm/caption_buttons/alternate_frame_caption_button.h" |
6 | 6 |
7 #include "ui/base/animation/slide_animation.h" | 7 #include "ui/base/animation/slide_animation.h" |
8 #include "ui/gfx/canvas.h" | 8 #include "ui/gfx/canvas.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 // The width and height of the region of the button which does not overlap | 14 // The width and height of the region of the button which does not overlap |
15 // with other buttons. | 15 // with other buttons. |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 } | 221 } |
222 | 222 |
223 void AlternateFrameCaptionButton::AnimationEnded( | 223 void AlternateFrameCaptionButton::AnimationEnded( |
224 const ui::Animation* animation) { | 224 const ui::Animation* animation) { |
225 // The bubble animation was postponed if the button became pressed when the | 225 // The bubble animation was postponed if the button became pressed when the |
226 // bubble was fading out. Do the animation now. | 226 // bubble was fading out. Do the animation now. |
227 MaybeStartNewBubbleAnimation(); | 227 MaybeStartNewBubbleAnimation(); |
228 } | 228 } |
229 | 229 |
230 } // namespace ash | 230 } // namespace ash |
OLD | NEW |