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

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

Issue 316693002: Reland Window Control Animations for TouchView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make buttons layer delegates Created 6 years, 6 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.h
diff --git a/ash/frame/caption_buttons/frame_caption_button.h b/ash/frame/caption_buttons/frame_caption_button.h
index 6fd9831ef7f9c51e5f028744228126d19139bbd5..d42d791e21bc5d1d503ebd2a030752d366a99310 100644
--- a/ash/frame/caption_buttons/frame_caption_button.h
+++ b/ash/frame/caption_buttons/frame_caption_button.h
@@ -8,6 +8,7 @@
#include "ash/ash_export.h"
#include "ash/frame/caption_buttons/caption_button_types.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/compositor/layer_owner_delegate.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/views/controls/button/custom_button.h"
@@ -19,7 +20,8 @@ namespace ash {
// Base class for the window caption buttons (minimize, maximize, restore,
// close).
-class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
+class ASH_EXPORT FrameCaptionButton : public views::CustomButton,
+ public ui::LayerOwnerDelegate {
public:
enum Animate {
ANIMATE_YES,
@@ -72,6 +74,10 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
const gfx::ImageSkia& to_center,
int alpha);
+ // ui::LayerOwnerDelegate:
+ virtual void OnLayerRecreated(ui::Layer* old_layer,
+ ui::Layer* new_layer) OVERRIDE;
+
// The button's current icon.
CaptionButtonIcon icon_;
« no previous file with comments | « no previous file | ash/frame/caption_buttons/frame_caption_button.cc » ('j') | ash/frame/caption_buttons/frame_caption_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698