| 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 UI_WM_CORE_SHADOW_H_ |   5 #ifndef UI_WM_CORE_SHADOW_H_ | 
|   6 #define UI_WM_CORE_SHADOW_H_ |   6 #define UI_WM_CORE_SHADOW_H_ | 
|   7  |   7  | 
|   8 #include "base/basictypes.h" |   8 #include "base/basictypes.h" | 
|   9 #include "base/memory/scoped_ptr.h" |   9 #include "base/memory/scoped_ptr.h" | 
|  10 #include "ui/compositor/layer_animation_observer.h" |  10 #include "ui/compositor/layer_animation_observer.h" | 
|  11 #include "ui/gfx/rect.h" |  11 #include "ui/gfx/rect.h" | 
|  12 #include "ui/wm/core/wm_core_export.h" |  12 #include "ui/wm/core/wm_core_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 views { |  18 namespace wm { | 
|  19 namespace corewm { |  | 
|  20  |  19  | 
|  21 class ImageGrid; |  20 class ImageGrid; | 
|  22  |  21  | 
|  23 // Simple class that draws a drop shadow around content at given bounds. |  22 // Simple class that draws a drop shadow around content at given bounds. | 
|  24 class WM_CORE_EXPORT Shadow : public ui::ImplicitAnimationObserver { |  23 class WM_CORE_EXPORT Shadow : public ui::ImplicitAnimationObserver { | 
|  25  public: |  24  public: | 
|  26   enum Style { |  25   enum Style { | 
|  27     // Active windows have more opaque shadows, shifted down to make the window |  26     // Active windows have more opaque shadows, shifted down to make the window | 
|  28     // appear "higher". |  27     // appear "higher". | 
|  29     STYLE_ACTIVE, |  28     STYLE_ACTIVE, | 
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  75   // Bounds of the content that the shadow encloses. |  74   // Bounds of the content that the shadow encloses. | 
|  76   gfx::Rect content_bounds_; |  75   gfx::Rect content_bounds_; | 
|  77  |  76  | 
|  78   // The interior inset of the shadow images. The content bounds of the image |  77   // The interior inset of the shadow images. The content bounds of the image | 
|  79   // grid should be set to |content_bounds_| inset by this amount. |  78   // grid should be set to |content_bounds_| inset by this amount. | 
|  80   int interior_inset_; |  79   int interior_inset_; | 
|  81  |  80  | 
|  82   DISALLOW_COPY_AND_ASSIGN(Shadow); |  81   DISALLOW_COPY_AND_ASSIGN(Shadow); | 
|  83 }; |  82 }; | 
|  84  |  83  | 
|  85 }  // namespace corewm |  84 }  // namespace wm | 
|  86 }  // namespace views |  | 
|  87  |  85  | 
|  88 #endif  // UI_WM_CORE_SHADOW_H_ |  86 #endif  // UI_WM_CORE_SHADOW_H_ | 
| OLD | NEW |