| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CAPTION_BUTTON_CONTAINER_VIEW_H_ | 5 #ifndef ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ |
| 6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ | 6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 static const char kViewClassName[]; | 36 static const char kViewClassName[]; |
| 37 | 37 |
| 38 // |frame| is the views::Widget that the caption buttons act on. | 38 // |frame| is the views::Widget that the caption buttons act on. |
| 39 explicit FrameCaptionButtonContainerView(views::Widget* frame); | 39 explicit FrameCaptionButtonContainerView(views::Widget* frame); |
| 40 ~FrameCaptionButtonContainerView() override; | 40 ~FrameCaptionButtonContainerView() override; |
| 41 | 41 |
| 42 // For testing. | 42 // For testing. |
| 43 class ASH_EXPORT TestApi { | 43 class ASH_EXPORT TestApi { |
| 44 public: | 44 public: |
| 45 explicit TestApi(FrameCaptionButtonContainerView* container_view) | 45 explicit TestApi(FrameCaptionButtonContainerView* container_view) |
| 46 : container_view_(container_view) { | 46 : container_view_(container_view) {} |
| 47 } | |
| 48 | 47 |
| 49 void EndAnimations(); | 48 void EndAnimations(); |
| 50 | 49 |
| 51 FrameCaptionButton* minimize_button() const { | 50 FrameCaptionButton* minimize_button() const { |
| 52 return container_view_->minimize_button_; | 51 return container_view_->minimize_button_; |
| 53 } | 52 } |
| 54 | 53 |
| 55 FrameCaptionButton* size_button() const { | 54 FrameCaptionButton* size_button() const { |
| 56 return container_view_->size_button_; | 55 return container_view_->size_button_; |
| 57 } | 56 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // Animation that affects the position of |minimize_button_| and the | 148 // Animation that affects the position of |minimize_button_| and the |
| 150 // visibility of |size_button_|. | 149 // visibility of |size_button_|. |
| 151 std::unique_ptr<gfx::SlideAnimation> maximize_mode_animation_; | 150 std::unique_ptr<gfx::SlideAnimation> maximize_mode_animation_; |
| 152 | 151 |
| 153 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView); | 152 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView); |
| 154 }; | 153 }; |
| 155 | 154 |
| 156 } // namespace ash | 155 } // namespace ash |
| 157 | 156 |
| 158 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ | 157 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ |
| OLD | NEW |