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

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

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ash/wm/resize_shadow_and_cursor_unittest.cc ('k') | ash/wm/root_window_layout_manager.h » ('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"
(...skipping 21 matching lines...) Expand all
32 32
33 // Hides the shadow for a |window|, if it has one. 33 // Hides the shadow for a |window|, if it has one.
34 void HideShadow(aura::Window* window); 34 void HideShadow(aura::Window* window);
35 35
36 ResizeShadow* GetShadowForWindowForTest(aura::Window* window); 36 ResizeShadow* GetShadowForWindowForTest(aura::Window* window);
37 37
38 // aura::WindowObserver overrides: 38 // aura::WindowObserver overrides:
39 virtual void OnWindowBoundsChanged( 39 virtual void OnWindowBoundsChanged(
40 aura::Window* window, 40 aura::Window* window,
41 const gfx::Rect& old_bounds, 41 const gfx::Rect& old_bounds,
42 const gfx::Rect& new_bounds) OVERRIDE; 42 const gfx::Rect& new_bounds) override;
43 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; 43 virtual void OnWindowDestroyed(aura::Window* window) override;
44 44
45 private: 45 private:
46 typedef std::map<aura::Window*, linked_ptr<ResizeShadow> > WindowShadowMap; 46 typedef std::map<aura::Window*, linked_ptr<ResizeShadow> > WindowShadowMap;
47 47
48 // Creates a shadow for a given window and returns it. |window_shadows_| 48 // Creates a shadow for a given window and returns it. |window_shadows_|
49 // owns the memory. 49 // owns the memory.
50 ResizeShadow* CreateShadow(aura::Window* window); 50 ResizeShadow* CreateShadow(aura::Window* window);
51 51
52 // 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.
53 ResizeShadow* GetShadowForWindow(aura::Window* window); 53 ResizeShadow* GetShadowForWindow(aura::Window* window);
54 54
55 WindowShadowMap window_shadows_; 55 WindowShadowMap window_shadows_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(ResizeShadowController); 57 DISALLOW_COPY_AND_ASSIGN(ResizeShadowController);
58 }; 58 };
59 59
60 } // namespace ash 60 } // namespace ash
61 61
62 #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/root_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698