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

Unified Diff: ash/wm/workspace/alternate_frame_caption_button.h

Issue 23498031: Move code related to the window controls to ash/wm/caption_buttons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 3 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
« no previous file with comments | « ash/wm/panels/panel_frame_view.cc ('k') | ash/wm/workspace/alternate_frame_caption_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/alternate_frame_caption_button.h
diff --git a/ash/wm/workspace/alternate_frame_caption_button.h b/ash/wm/workspace/alternate_frame_caption_button.h
deleted file mode 100644
index b0f9581dbbee94da240077df7a1b9e032b31c6f0..0000000000000000000000000000000000000000
--- a/ash/wm/workspace/alternate_frame_caption_button.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_
-#define ASH_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_
-
-#include "ash/ash_export.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/views/controls/button/custom_button.h"
-
-namespace ui {
-class SlideAnimation;
-}
-
-namespace ash {
-
-// Base class for buttons using the alternate button style.
-class ASH_EXPORT AlternateFrameCaptionButton : public views::CustomButton {
- public:
- static const char kViewClassName[];
-
- enum Action {
- ACTION_MINIMIZE,
- ACTION_MAXIMIZE_RESTORE,
- ACTION_CLOSE
- };
-
- AlternateFrameCaptionButton(views::ButtonListener* listener, Action action);
- virtual ~AlternateFrameCaptionButton();
-
- // Returns the amount in pixels that the button should overlap with the button
- // on the left and right of it.
- static int GetXOverlap();
-
- // views::View overrides:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
- virtual const char* GetClassName() const OVERRIDE;
- virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
- virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
-
- private:
- // Animates the background bubble for the current views::ButtonState.
- void MaybeStartNewBubbleAnimation();
-
- // views::CustomButton override:
- virtual void StateChanged() OVERRIDE;
-
- // ui::AnimateDelegate overrides. (views::CustomButton inherits from
- // ui::AnimationDelegate).
- virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
- virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
-
- Action action_;
-
- // The radius of the background bubble when it is hidden.
- double hidden_bubble_radius_;
-
- // The radius of the background bubble when it is visible.
- double shown_bubble_radius_;
-
- scoped_ptr<ui::SlideAnimation> bubble_animation_;
-
- DISALLOW_COPY_AND_ASSIGN(AlternateFrameCaptionButton);
-};
-
-} // namespace ash
-
-#endif // ASH_WM_WORKSPACE_ALTERNATE_FRAME_CAPTION_BUTTON_H_
« no previous file with comments | « ash/wm/panels/panel_frame_view.cc ('k') | ash/wm/workspace/alternate_frame_caption_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698