| 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_CONTROLLER_H_ |   5 #ifndef UI_WM_CORE_SHADOW_CONTROLLER_H_ | 
|   6 #define UI_WM_CORE_SHADOW_CONTROLLER_H_ |   6 #define UI_WM_CORE_SHADOW_CONTROLLER_H_ | 
|   7  |   7  | 
|   8 #include <map> |   8 #include <map> | 
|   9  |   9  | 
|  10 #include "base/basictypes.h" |  10 #include "base/basictypes.h" | 
|  11 #include "base/compiler_specific.h" |  11 #include "base/compiler_specific.h" | 
|  12 #include "base/memory/ref_counted.h" |  12 #include "base/memory/ref_counted.h" | 
|  13 #include "ui/aura/client/activation_change_observer.h" |  13 #include "ui/aura/client/activation_change_observer.h" | 
|  14 #include "ui/wm/core/wm_core_export.h" |  14 #include "ui/wm/core/wm_core_export.h" | 
|  15  |  15  | 
|  16 namespace aura { |  16 namespace aura { | 
|  17 class Window; |  17 class Window; | 
|  18 namespace client { |  18 namespace client { | 
|  19 class ActivationClient; |  19 class ActivationClient; | 
|  20 } |  20 } | 
|  21 } |  21 } | 
|  22 namespace gfx { |  22 namespace gfx { | 
|  23 class Rect; |  23 class Rect; | 
|  24 } |  24 } | 
|  25  |  25  | 
|  26 namespace views { |  26 namespace wm { | 
|  27 namespace corewm { |  | 
|  28  |  27  | 
|  29 class Shadow; |  28 class Shadow; | 
|  30  |  29  | 
|  31 // ShadowController observes changes to windows and creates and updates drop |  30 // ShadowController observes changes to windows and creates and updates drop | 
|  32 // shadows as needed. ShadowController itself is light weight and per |  31 // shadows as needed. ShadowController itself is light weight and per | 
|  33 // ActivationClient. ShadowController delegates to its implementation class, |  32 // ActivationClient. ShadowController delegates to its implementation class, | 
|  34 // which observes all window creation. |  33 // which observes all window creation. | 
|  35 class WM_CORE_EXPORT ShadowController : |  34 class WM_CORE_EXPORT ShadowController : | 
|  36     public aura::client::ActivationChangeObserver { |  35     public aura::client::ActivationChangeObserver { | 
|  37  public: |  36  public: | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
|  58  private: |  57  private: | 
|  59   class Impl; |  58   class Impl; | 
|  60  |  59  | 
|  61   aura::client::ActivationClient* activation_client_; |  60   aura::client::ActivationClient* activation_client_; | 
|  62  |  61  | 
|  63   scoped_refptr<Impl> impl_; |  62   scoped_refptr<Impl> impl_; | 
|  64  |  63  | 
|  65   DISALLOW_COPY_AND_ASSIGN(ShadowController); |  64   DISALLOW_COPY_AND_ASSIGN(ShadowController); | 
|  66 }; |  65 }; | 
|  67  |  66  | 
|  68 }  // namespace corewm |  67 }  // namespace wm | 
|  69 }  // namespace views |  | 
|  70  |  68  | 
|  71 #endif  // UI_WM_CORE_SHADOW_CONTROLLER_H_ |  69 #endif  // UI_WM_CORE_SHADOW_CONTROLLER_H_ | 
| OLD | NEW |