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

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

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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
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_
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