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

Side by Side Diff: ash/frame/caption_buttons/frame_size_button_delegate.h

Issue 2215223003: Moves most frame related classes to ash/common/frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/frame/caption_buttons/caption_button_types.h"
10
11 namespace gfx {
12 class Insets;
13 class Point;
14 class Vector2d;
15 }
16
17 namespace ash {
18 class FrameCaptionButton;
19
20 // Delegate interface for FrameSizeButton.
21 class ASH_EXPORT FrameSizeButtonDelegate {
22 public:
23 enum Animate { ANIMATE_YES, ANIMATE_NO };
24
25 // Returns whether the minimize button is visible.
26 virtual bool IsMinimizeButtonVisible() const = 0;
27
28 // Reset the caption button views::Button::ButtonState back to normal. If
29 // |animate| is ANIMATE_YES, the buttons will crossfade back to their
30 // original icons.
31 virtual void SetButtonsToNormal(Animate animate) = 0;
32
33 // Sets the minimize and close button icons. The buttons will crossfade to
34 // their new icons if |animate| is ANIMATE_YES.
35 virtual void SetButtonIcons(CaptionButtonIcon minimize_button_icon,
36 CaptionButtonIcon close_button_icon,
37 Animate animate) = 0;
38
39 // Returns the button closest to |position_in_screen|.
40 virtual const FrameCaptionButton* GetButtonClosestTo(
41 const gfx::Point& position_in_screen) const = 0;
42
43 // Sets |to_hover| and |to_pressed| to STATE_HOVERED and STATE_PRESSED
44 // respectively. All other buttons are to set to STATE_NORMAL.
45 virtual void SetHoveredAndPressedButtons(
46 const FrameCaptionButton* to_hover,
47 const FrameCaptionButton* to_press) = 0;
48
49 protected:
50 virtual ~FrameSizeButtonDelegate() {}
51 };
52
53 } // namespace ash
54
55 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/frame/caption_buttons/frame_size_button.cc ('k') | ash/frame/caption_buttons/frame_size_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698