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

Side by Side Diff: ui/aura_shell/shadow_controller.h

Issue 8653005: Make Aura and compositor stacking methods more intuitive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AURA_SHELL_SHADOW_CONTROLLER_H_ 5 #ifndef UI_AURA_SHELL_SHADOW_CONTROLLER_H_
6 #define UI_AURA_SHELL_SHADOW_CONTROLLER_H_ 6 #define UI_AURA_SHELL_SHADOW_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/linked_ptr.h" 13 #include "base/memory/linked_ptr.h"
14 #include "ui/aura/desktop_observer.h" 14 #include "ui/aura/desktop_observer.h"
15 #include "ui/aura/window_observer.h" 15 #include "ui/aura/window_observer.h"
16 #include "ui/aura_shell/aura_shell_export.h"
16 17
17 namespace aura { 18 namespace aura {
18 class Window; 19 class Window;
19 } 20 }
20 namespace gfx { 21 namespace gfx {
21 class Rect; 22 class Rect;
22 } 23 }
23 24
24 namespace aura_shell { 25 namespace aura_shell {
25 namespace internal { 26 namespace internal {
26 27
27 class Shadow; 28 class Shadow;
28 29
29 // ShadowController observes changes to windows and creates and updates drop 30 // ShadowController observes changes to windows and creates and updates drop
30 // shadows as needed. 31 // shadows as needed.
31 class ShadowController : public aura::DesktopObserver, 32 class AURA_SHELL_EXPORT ShadowController : public aura::DesktopObserver,
32 public aura::WindowObserver { 33 public aura::WindowObserver {
33 public: 34 public:
34 class TestApi { 35 class TestApi {
35 public: 36 public:
36 explicit TestApi(ShadowController* controller) : controller_(controller) {} 37 explicit TestApi(ShadowController* controller) : controller_(controller) {}
37 ~TestApi() {} 38 ~TestApi() {}
38 39
39 Shadow* GetShadowForWindow(aura::Window* window) { 40 Shadow* GetShadowForWindow(aura::Window* window) {
40 return controller_->GetShadowForWindow(window); 41 return controller_->GetShadowForWindow(window);
41 } 42 }
42 43
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 88
88 WindowShadowMap window_shadows_; 89 WindowShadowMap window_shadows_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(ShadowController); 91 DISALLOW_COPY_AND_ASSIGN(ShadowController);
91 }; 92 };
92 93
93 } // namepsace aura_shell 94 } // namepsace aura_shell
94 } // namepsace internal 95 } // namepsace internal
95 96
96 #endif // UI_AURA_SHELL_SHADOW_CONTROLLER_H_ 97 #endif // UI_AURA_SHELL_SHADOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698