OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_ | 5 #ifndef ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_ |
6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_ | 6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/frame/caption_buttons/caption_button_types.h" | 9 #include "ash/frame/caption_buttons/caption_button_types.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class Insets; | 12 class Insets; |
13 class Point; | 13 class Point; |
14 class Vector2d; | 14 class Vector2d; |
15 } | 15 } |
16 | 16 |
17 namespace ash { | 17 namespace ash { |
18 class FrameCaptionButton; | 18 class FrameCaptionButton; |
19 | 19 |
20 // Delegate interface for FrameSizeButton. | 20 // Delegate interface for FrameSizeButton. |
21 class ASH_EXPORT FrameSizeButtonDelegate { | 21 class ASH_EXPORT FrameSizeButtonDelegate { |
22 public: | 22 public: |
23 enum Animate { | 23 enum Animate { ANIMATE_YES, ANIMATE_NO }; |
24 ANIMATE_YES, | |
25 ANIMATE_NO | |
26 }; | |
27 | 24 |
28 // Returns whether the minimize button is visible. | 25 // Returns whether the minimize button is visible. |
29 virtual bool IsMinimizeButtonVisible() const = 0; | 26 virtual bool IsMinimizeButtonVisible() const = 0; |
30 | 27 |
31 // Reset the caption button views::Button::ButtonState back to normal. If | 28 // Reset the caption button views::Button::ButtonState back to normal. If |
32 // |animate| is ANIMATE_YES, the buttons will crossfade back to their | 29 // |animate| is ANIMATE_YES, the buttons will crossfade back to their |
33 // original icons. | 30 // original icons. |
34 virtual void SetButtonsToNormal(Animate animate) = 0; | 31 virtual void SetButtonsToNormal(Animate animate) = 0; |
35 | 32 |
36 // Sets the minimize and close button icons. The buttons will crossfade to | 33 // Sets the minimize and close button icons. The buttons will crossfade to |
(...skipping 12 matching lines...) Expand all Loading... |
49 const FrameCaptionButton* to_hover, | 46 const FrameCaptionButton* to_hover, |
50 const FrameCaptionButton* to_press) = 0; | 47 const FrameCaptionButton* to_press) = 0; |
51 | 48 |
52 protected: | 49 protected: |
53 virtual ~FrameSizeButtonDelegate() {} | 50 virtual ~FrameSizeButtonDelegate() {} |
54 }; | 51 }; |
55 | 52 |
56 } // namespace ash | 53 } // namespace ash |
57 | 54 |
58 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_ | 55 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_ |
OLD | NEW |