| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHADOW_H_ | 5 #ifndef UI_VIEWS_COREWM_SHADOW_H_ |
| 6 #define ASH_WM_SHADOW_H_ | 6 #define UI_VIEWS_COREWM_SHADOW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | |
| 9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 11 #include "ui/compositor/layer_animation_observer.h" | 10 #include "ui/compositor/layer_animation_observer.h" |
| 12 #include "ui/gfx/rect.h" | 11 #include "ui/gfx/rect.h" |
| 12 #include "ui/views/views_export.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 class Layer; | 15 class Layer; |
| 16 } // namespace ui | 16 } // namespace ui |
| 17 | 17 |
| 18 namespace ash { | 18 namespace views { |
| 19 namespace internal { | 19 namespace corewm { |
| 20 | 20 |
| 21 class ImageGrid; | 21 class ImageGrid; |
| 22 | 22 |
| 23 // Simple class that draws a drop shadow around content at given bounds. | 23 // Simple class that draws a drop shadow around content at given bounds. |
| 24 class ASH_EXPORT Shadow : public ui::ImplicitAnimationObserver { | 24 class VIEWS_EXPORT Shadow : public ui::ImplicitAnimationObserver { |
| 25 public: | 25 public: |
| 26 enum Style { | 26 enum Style { |
| 27 // Active windows have more opaque shadows, shifted down to make the window | 27 // Active windows have more opaque shadows, shifted down to make the window |
| 28 // appear "higher". | 28 // appear "higher". |
| 29 STYLE_ACTIVE, | 29 STYLE_ACTIVE, |
| 30 | 30 |
| 31 // Inactive windows have less opaque shadows. | 31 // Inactive windows have less opaque shadows. |
| 32 STYLE_INACTIVE, | 32 STYLE_INACTIVE, |
| 33 | 33 |
| 34 // Small windows like tooltips and context menus have lighter, smaller | 34 // Small windows like tooltips and context menus have lighter, smaller |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 Style style_; | 71 Style style_; |
| 72 | 72 |
| 73 scoped_ptr<ImageGrid> image_grid_; | 73 scoped_ptr<ImageGrid> image_grid_; |
| 74 | 74 |
| 75 // Bounds of the content that the shadow encloses. | 75 // Bounds of the content that the shadow encloses. |
| 76 gfx::Rect content_bounds_; | 76 gfx::Rect content_bounds_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(Shadow); | 78 DISALLOW_COPY_AND_ASSIGN(Shadow); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace internal | 81 } // namespace corewm |
| 82 } // namespace ash | 82 } // namespace views |
| 83 | 83 |
| 84 #endif // ASH_WM_SHADOW_H_ | 84 #endif // UI_VIEWS_COREWM_SHADOW_H_ |
| OLD | NEW |