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

Side by Side Diff: ash/mus/frame/caption_buttons/frame_caption_button.h

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MASH_WM_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_ 5 #ifndef ASH_MUS_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_
6 #define MASH_WM_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_ 6 #define ASH_MUS_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/mus/frame/caption_buttons/caption_button_types.h"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "mash/wm/frame/caption_buttons/caption_button_types.h"
12 #include "ui/gfx/image/image_skia.h" 12 #include "ui/gfx/image/image_skia.h"
13 #include "ui/views/controls/button/custom_button.h" 13 #include "ui/views/controls/button/custom_button.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 class SlideAnimation; 16 class SlideAnimation;
17 } 17 }
18 18
19 namespace mash { 19 namespace ash {
20 namespace wm { 20 namespace mus {
21 21
22 // Base class for the window caption buttons (minimize, maximize, restore, 22 // Base class for the window caption buttons (minimize, maximize, restore,
23 // close). 23 // close).
24 class FrameCaptionButton : public views::CustomButton { 24 class FrameCaptionButton : public views::CustomButton {
25 public: 25 public:
26 enum Animate { ANIMATE_YES, ANIMATE_NO }; 26 enum Animate { ANIMATE_YES, ANIMATE_NO };
27 27
28 static const char kViewClassName[]; 28 static const char kViewClassName[];
29 29
30 FrameCaptionButton(views::ButtonListener* listener, CaptionButtonIcon icon); 30 FrameCaptionButton(views::ButtonListener* listener, CaptionButtonIcon icon);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // The icon image to crossfade from. 90 // The icon image to crossfade from.
91 gfx::ImageSkia crossfade_icon_image_; 91 gfx::ImageSkia crossfade_icon_image_;
92 92
93 // Crossfade animation started when the button's images are changed by 93 // Crossfade animation started when the button's images are changed by
94 // SetImages(). 94 // SetImages().
95 std::unique_ptr<gfx::SlideAnimation> swap_images_animation_; 95 std::unique_ptr<gfx::SlideAnimation> swap_images_animation_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButton); 97 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButton);
98 }; 98 };
99 99
100 } // namespace wm 100 } // namespace mus
101 } // namespace mash 101 } // namespace ash
102 102
103 #endif // MASH_WM_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_ 103 #endif // ASH_MUS_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/mus/frame/caption_buttons/caption_button_types.h ('k') | ash/mus/frame/caption_buttons/frame_caption_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698