| 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_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ | 5 #ifndef ASH_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ |
| 6 #define ASH_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ | 6 #define ASH_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ |
| 7 | 7 |
| 8 #include "ash/wm/overview/scoped_overview_animation_settings.h" | 8 #include "ash/wm/overview/scoped_overview_animation_settings.h" |
| 9 #include "ash/wm/overview/transparent_activate_window_button.h" | 9 #include "ash/wm/overview/transparent_activate_window_button.h" |
| 10 #include "ash/wm/overview/transparent_activate_window_button_delegate.h" | 10 #include "ash/wm/overview/transparent_activate_window_button_delegate.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // aspect ratio). | 44 // aspect ratio). |
| 45 static gfx::Rect ShrinkRectToFitPreservingAspectRatio( | 45 static gfx::Rect ShrinkRectToFitPreservingAspectRatio( |
| 46 const gfx::Rect& rect, | 46 const gfx::Rect& rect, |
| 47 const gfx::Rect& bounds); | 47 const gfx::Rect& bounds); |
| 48 | 48 |
| 49 // Returns the transform turning |src_rect| into |dst_rect|. | 49 // Returns the transform turning |src_rect| into |dst_rect|. |
| 50 static gfx::Transform GetTransformForRect(const gfx::Rect& src_rect, | 50 static gfx::Transform GetTransformForRect(const gfx::Rect& src_rect, |
| 51 const gfx::Rect& dst_rect); | 51 const gfx::Rect& dst_rect); |
| 52 | 52 |
| 53 explicit ScopedTransformOverviewWindow(aura::Window* window); | 53 explicit ScopedTransformOverviewWindow(aura::Window* window); |
| 54 virtual ~ScopedTransformOverviewWindow(); | 54 ~ScopedTransformOverviewWindow() override; |
| 55 | 55 |
| 56 gfx::Transform get_overview_transform() const { return overview_transform_; } | 56 gfx::Transform get_overview_transform() const { return overview_transform_; } |
| 57 | 57 |
| 58 void set_overview_transform(const gfx::Transform& transform) { | 58 void set_overview_transform(const gfx::Transform& transform) { |
| 59 overview_transform_ = transform; | 59 overview_transform_ = transform; |
| 60 } | 60 } |
| 61 | 61 |
| 62 TransparentActivateWindowButton* activate_button() { | 62 TransparentActivateWindowButton* activate_button() { |
| 63 return activate_button_.get(); | 63 return activate_button_.get(); |
| 64 } | 64 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 // The original opacity of the window before entering overview mode. | 147 // The original opacity of the window before entering overview mode. |
| 148 float original_opacity_; | 148 float original_opacity_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); | 150 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace ash | 153 } // namespace ash |
| 154 | 154 |
| 155 #endif // ASH_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ | 155 #endif // ASH_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ |
| OLD | NEW |