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

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

Issue 196063002: Move wm/core to wm namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/resize_shadow.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_H_ 5 #ifndef ASH_WM_RESIZE_SHADOW_H_
6 #define ASH_WM_RESIZE_SHADOW_H_ 6 #define ASH_WM_RESIZE_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 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 } 13 }
14 namespace gfx { 14 namespace gfx {
15 class Rect; 15 class Rect;
16 } 16 }
17 namespace ui { 17 namespace ui {
18 class Layer; 18 class Layer;
19 } 19 }
20 namespace views { 20 namespace wm {
21 namespace corewm {
22 class ImageGrid; 21 class ImageGrid;
23 } 22 }
24 }
25 23
26 namespace ash { 24 namespace ash {
27 namespace internal { 25 namespace internal {
28 26
29 // A class to render the resize edge effect when the user moves their mouse 27 // A class to render the resize edge effect when the user moves their mouse
30 // over a sizing edge. This is just a visual effect; the actual resize is 28 // over a sizing edge. This is just a visual effect; the actual resize is
31 // handled by the EventFilter. 29 // handled by the EventFilter.
32 class ResizeShadow { 30 class ResizeShadow {
33 public: 31 public:
34 ResizeShadow(); 32 ResizeShadow();
(...skipping 11 matching lines...) Expand all
46 44
47 // Updates the effect positions based on the |bounds| of the window. 45 // Updates the effect positions based on the |bounds| of the window.
48 void Layout(const gfx::Rect& bounds); 46 void Layout(const gfx::Rect& bounds);
49 47
50 int GetLastHitTestForTest() const { 48 int GetLastHitTestForTest() const {
51 return last_hit_test_; 49 return last_hit_test_;
52 } 50 }
53 51
54 private: 52 private:
55 // Images for the shadow effect. 53 // Images for the shadow effect.
56 scoped_ptr<views::corewm::ImageGrid> image_grid_; 54 scoped_ptr< ::wm::ImageGrid> image_grid_;
57 55
58 // Hit test value from last call to ShowForHitTest(). Used to prevent 56 // Hit test value from last call to ShowForHitTest(). Used to prevent
59 // repeatedly triggering the same animations for the same hit. 57 // repeatedly triggering the same animations for the same hit.
60 int last_hit_test_; 58 int last_hit_test_;
61 59
62 DISALLOW_COPY_AND_ASSIGN(ResizeShadow); 60 DISALLOW_COPY_AND_ASSIGN(ResizeShadow);
63 }; 61 };
64 62
65 } // namespace internal 63 } // namespace internal
66 } // namespace ash 64 } // namespace ash
67 65
68 #endif // ASH_WM_RESIZE_SHADOW_H_ 66 #endif // ASH_WM_RESIZE_SHADOW_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/resize_shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698