Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: ash/wm/shadow_controller.h

Issue 9414028: Aura: New window shadows, desktop background debug toggle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/shadow.cc ('k') | ash/wm/shadow_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CONTROLLER_H_ 5 #ifndef ASH_WM_SHADOW_CONTROLLER_H_
6 #define ASH_WM_SHADOW_CONTROLLER_H_ 6 #define ASH_WM_SHADOW_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 private: 63 private:
64 typedef std::map<aura::Window*, linked_ptr<Shadow> > WindowShadowMap; 64 typedef std::map<aura::Window*, linked_ptr<Shadow> > WindowShadowMap;
65 65
66 // Checks if |window| is visible and contains a property requesting a shadow. 66 // Checks if |window| is visible and contains a property requesting a shadow.
67 bool ShouldShowShadowForWindow(aura::Window* window) const; 67 bool ShouldShowShadowForWindow(aura::Window* window) const;
68 68
69 // Returns |window|'s shadow from |window_shadows_|, or NULL if no shadow 69 // Returns |window|'s shadow from |window_shadows_|, or NULL if no shadow
70 // exists. 70 // exists.
71 Shadow* GetShadowForWindow(aura::Window* window); 71 Shadow* GetShadowForWindow(aura::Window* window);
72 72
73 // Updates the shadow style for |window| based on whether it is |active|.
74 void HandleWindowActivationChange(aura::Window* window, bool active);
75
73 // Shows or hides |window|'s shadow as needed (creating the shadow if 76 // Shows or hides |window|'s shadow as needed (creating the shadow if
74 // necessary). 77 // necessary).
75 void HandlePossibleShadowVisibilityChange(aura::Window* window); 78 void HandlePossibleShadowVisibilityChange(aura::Window* window);
76 79
77 // Creates a new shadow for |window| and stores it in |window_shadows_|. The 80 // Creates a new shadow for |window| and stores it in |window_shadows_|. The
78 // shadow's bounds are initialized and it is added to the window's layer. 81 // shadow's bounds are initialized and it is added to the window's layer.
79 void CreateShadowForWindow(aura::Window* window); 82 void CreateShadowForWindow(aura::Window* window);
80 83
81 WindowShadowMap window_shadows_; 84 WindowShadowMap window_shadows_;
82 85
83 DISALLOW_COPY_AND_ASSIGN(ShadowController); 86 DISALLOW_COPY_AND_ASSIGN(ShadowController);
84 }; 87 };
85 88
86 } // namespace internal 89 } // namespace internal
87 } // namespace ash 90 } // namespace ash
88 91
89 #endif // ASH_WM_SHADOW_CONTROLLER_H_ 92 #endif // ASH_WM_SHADOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/shadow.cc ('k') | ash/wm/shadow_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698