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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs 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 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_COMMON_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
6 #define ASH_COMMON_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/common/frame/caption_buttons/caption_button_types.h"
10
11 namespace gfx {
12 class Point;
13 }
14
15 namespace ash {
16 class FrameCaptionButton;
17
18 // Delegate interface for FrameSizeButton.
19 class ASH_EXPORT FrameSizeButtonDelegate {
20 public:
21 enum Animate { ANIMATE_YES, ANIMATE_NO };
22
23 // Returns whether the minimize button is visible.
24 virtual bool IsMinimizeButtonVisible() const = 0;
25
26 // Reset the caption button views::Button::ButtonState back to normal. If
27 // |animate| is ANIMATE_YES, the buttons will crossfade back to their
28 // original icons.
29 virtual void SetButtonsToNormal(Animate animate) = 0;
30
31 // Sets the minimize and close button icons. The buttons will crossfade to
32 // their new icons if |animate| is ANIMATE_YES.
33 virtual void SetButtonIcons(CaptionButtonIcon minimize_button_icon,
34 CaptionButtonIcon close_button_icon,
35 Animate animate) = 0;
36
37 // Returns the button closest to |position_in_screen|.
38 virtual const FrameCaptionButton* GetButtonClosestTo(
39 const gfx::Point& position_in_screen) const = 0;
40
41 // Sets |to_hover| and |to_pressed| to STATE_HOVERED and STATE_PRESSED
42 // respectively. All other buttons are to set to STATE_NORMAL.
43 virtual void SetHoveredAndPressedButtons(
44 const FrameCaptionButton* to_hover,
45 const FrameCaptionButton* to_press) = 0;
46
47 protected:
48 virtual ~FrameSizeButtonDelegate() {}
49 };
50
51 } // namespace ash
52
53 #endif // ASH_COMMON_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_DELEGATE_H_
OLDNEW
« 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