summaryrefslogtreecommitdiffstats
path: root/ash/frame/caption_buttons/frame_caption_button_container_view.h
diff options
context:
space:
mode:
authorjonross@chromium.org <jonross@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-02 23:43:25 +0000
committerjonross@chromium.org <jonross@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-02 23:43:25 +0000
commit2ff309aa4dce18acce062cf5fc821f10eaa42df4 (patch)
tree28b642fd57a882097871c28f006bffaed4011428 /ash/frame/caption_buttons/frame_caption_button_container_view.h
parent700aac6b15a3433a440fbec046174eda8edee921 (diff)
downloadchromium_src-2ff309aa4dce18acce062cf5fc821f10eaa42df4.zip
chromium_src-2ff309aa4dce18acce062cf5fc821f10eaa42df4.tar.gz
chromium_src-2ff309aa4dce18acce062cf5fc821f10eaa42df4.tar.bz2
Animate window control changes in TouchView
Add animation for the hiding and showing of the resize button. Add an animation for sliding the minimize button into the position of the resize button. Delay changing the size of FrameCaptionButtonContainerView to account for conflicting layout changes caused by the transition to TouchView. TEST=FrameCaptionButtonContainerViewTest TEST=CustomFrameViewAshTest TES=BrowserNonClientFrameViewAshTest BUG=363717 Review URL: https://codereview.chromium.org/271913002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274371 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/frame/caption_buttons/frame_caption_button_container_view.h')
-rw-r--r--ash/frame/caption_buttons/frame_caption_button_container_view.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ash/frame/caption_buttons/frame_caption_button_container_view.h b/ash/frame/caption_buttons/frame_caption_button_container_view.h
index 9e67b93..113e0c4 100644
--- a/ash/frame/caption_buttons/frame_caption_button_container_view.h
+++ b/ash/frame/caption_buttons/frame_caption_button_container_view.h
@@ -5,8 +5,11 @@
#ifndef ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
#define ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
+#include <map>
+
#include "ash/ash_export.h"
#include "ash/frame/caption_buttons/frame_size_button_delegate.h"
+#include "ui/compositor/layer_animation_observer.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/view.h"
@@ -21,7 +24,8 @@ namespace ash {
class ASH_EXPORT FrameCaptionButtonContainerView
: public views::View,
public views::ButtonListener,
- public FrameSizeButtonDelegate {
+ public FrameSizeButtonDelegate,
+ public ui::ImplicitAnimationObserver {
public:
static const char kViewClassName[];
@@ -136,6 +140,9 @@ class ASH_EXPORT FrameCaptionButtonContainerView
const FrameCaptionButton* to_hover,
const FrameCaptionButton* to_press) OVERRIDE;
+ // ui::ImplicitAnimationObserver:
+ virtual void OnImplicitAnimationsCompleted() OVERRIDE;
+
// The widget that the buttons act on.
views::Widget* frame_;
@@ -152,6 +159,6 @@ class ASH_EXPORT FrameCaptionButtonContainerView
DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView);
};
-} // namesapace ash
+} // namespace ash
#endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_