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

Unified Diff: ash/common/frame/caption_buttons/frame_size_button_delegate.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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/common/frame/caption_buttons/frame_size_button.cc ('k') | ash/common/frame/custom_frame_view_ash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/frame/caption_buttons/frame_size_button_delegate.h
diff --git a/ash/common/frame/caption_buttons/frame_size_button_delegate.h b/ash/common/frame/caption_buttons/frame_size_button_delegate.h
deleted file mode 100644
index 026436ac294458451d60834ebd85f0d9da793c30..0000000000000000000000000000000000000000
--- a/ash/common/frame/caption_buttons/frame_size_button_delegate.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 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_COMMON_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
-#define ASH_COMMON_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/frame/caption_buttons/caption_button_types.h"
-
-namespace gfx {
-class Point;
-}
-
-namespace ash {
-class FrameCaptionButton;
-
-// Delegate interface for FrameSizeButton.
-class ASH_EXPORT FrameSizeButtonDelegate {
- public:
- enum Animate { ANIMATE_YES, ANIMATE_NO };
-
- // Returns whether the minimize button is visible.
- virtual bool IsMinimizeButtonVisible() const = 0;
-
- // Reset the caption button views::Button::ButtonState back to normal. If
- // |animate| is ANIMATE_YES, the buttons will crossfade back to their
- // original icons.
- virtual void SetButtonsToNormal(Animate animate) = 0;
-
- // Sets the minimize and close button icons. The buttons will crossfade to
- // their new icons if |animate| is ANIMATE_YES.
- virtual void SetButtonIcons(CaptionButtonIcon minimize_button_icon,
- CaptionButtonIcon close_button_icon,
- Animate animate) = 0;
-
- // Returns the button closest to |position_in_screen|.
- virtual const FrameCaptionButton* GetButtonClosestTo(
- const gfx::Point& position_in_screen) const = 0;
-
- // Sets |to_hover| and |to_pressed| to STATE_HOVERED and STATE_PRESSED
- // respectively. All other buttons are to set to STATE_NORMAL.
- virtual void SetHoveredAndPressedButtons(
- const FrameCaptionButton* to_hover,
- const FrameCaptionButton* to_press) = 0;
-
- protected:
- virtual ~FrameSizeButtonDelegate() {}
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
« no previous file with comments | « ash/common/frame/caption_buttons/frame_size_button.cc ('k') | ash/common/frame/custom_frame_view_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698