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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/resize_shadow_and_cursor_unittest.cc ('k') | ash/wm/resize_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_RESIZE_SHADOW_CONTROLLER_H_ 5 #ifndef ASH_WM_RESIZE_SHADOW_CONTROLLER_H_
6 #define ASH_WM_RESIZE_SHADOW_CONTROLLER_H_ 6 #define ASH_WM_RESIZE_SHADOW_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
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/window_observer.h" 14 #include "ui/aura/window_observer.h"
15 15
16 namespace aura { 16 namespace aura {
17 class Window; 17 class Window;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21 namespace internal {
22
23 class ResizeShadow; 21 class ResizeShadow;
24 22
25 // ResizeShadowController observes changes to resizable windows and shows 23 // ResizeShadowController observes changes to resizable windows and shows
26 // a resize handle visual effect when the cursor is near the edges. 24 // a resize handle visual effect when the cursor is near the edges.
27 class ASH_EXPORT ResizeShadowController : public aura::WindowObserver { 25 class ASH_EXPORT ResizeShadowController : public aura::WindowObserver {
28 public: 26 public:
29 ResizeShadowController(); 27 ResizeShadowController();
30 virtual ~ResizeShadowController(); 28 virtual ~ResizeShadowController();
31 29
32 // Shows the appropriate shadow for a given |window| and |hit_test| location. 30 // Shows the appropriate shadow for a given |window| and |hit_test| location.
(...skipping 19 matching lines...) Expand all
52 ResizeShadow* CreateShadow(aura::Window* window); 50 ResizeShadow* CreateShadow(aura::Window* window);
53 51
54 // Returns the resize shadow for |window| or NULL if no shadow exists. 52 // Returns the resize shadow for |window| or NULL if no shadow exists.
55 ResizeShadow* GetShadowForWindow(aura::Window* window); 53 ResizeShadow* GetShadowForWindow(aura::Window* window);
56 54
57 WindowShadowMap window_shadows_; 55 WindowShadowMap window_shadows_;
58 56
59 DISALLOW_COPY_AND_ASSIGN(ResizeShadowController); 57 DISALLOW_COPY_AND_ASSIGN(ResizeShadowController);
60 }; 58 };
61 59
62 } // namespace internal
63 } // namespace ash 60 } // namespace ash
64 61
65 #endif // ASH_WM_RESIZE_SHADOW_CONTROLLER_H_ 62 #endif // ASH_WM_RESIZE_SHADOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/resize_shadow_and_cursor_unittest.cc ('k') | ash/wm/resize_shadow_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698