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

Unified Diff: ash/frame/caption_buttons/frame_caption_button_container_view.h

Issue 271913002: Animate window control changes in TouchView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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: ash/frame/caption_buttons/frame_caption_button_container_view.h
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 d50350e038bb5a6816ff80704b9be8ec1a4326b7..fc14c8bdbc759f1531f8b39c2ddf11a7fa84372a 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>
flackr 2014/05/08 19:02:21 Unused?
jonross 2014/05/08 21:15:40 Cpplint, used outside my changed.
flackr 2014/05/09 14:15:14 Ah, sorry about that, good work.
+
#include "ash/ash_export.h"
#include "ash/frame/caption_buttons/alternate_frame_size_button_delegate.h"
+#include "ui/compositor/layer_animation_observer.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/view.h"
@@ -23,7 +26,8 @@ class FrameMaximizeButton;
class ASH_EXPORT FrameCaptionButtonContainerView
: public views::View,
public views::ButtonListener,
- public AlternateFrameSizeButtonDelegate {
+ public AlternateFrameSizeButtonDelegate,
+ ui::ImplicitAnimationObserver {
flackr 2014/05/08 19:02:21 public ui::ImplicitAnimationObserver
jonross 2014/05/08 21:15:40 Done.
public:
static const char kViewClassName[];
@@ -142,6 +146,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_;
@@ -158,6 +165,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_

Powered by Google App Engine
This is Rietveld 408576698