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

Side by Side Diff: ash/wm/screen_dimmer.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/root_window_layout_manager.h ('k') | ash/wm/screen_dimmer_unittest.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_SCREEN_DIMMER_H_ 5 #ifndef ASH_WM_SCREEN_DIMMER_H_
6 #define ASH_WM_SCREEN_DIMMER_H_ 6 #define ASH_WM_SCREEN_DIMMER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 29 matching lines...) Expand all
40 40
41 explicit ScreenDimmer(aura::Window* root_window); 41 explicit ScreenDimmer(aura::Window* root_window);
42 virtual ~ScreenDimmer(); 42 virtual ~ScreenDimmer();
43 43
44 // Dim or undim the root window. 44 // Dim or undim the root window.
45 void SetDimming(bool should_dim); 45 void SetDimming(bool should_dim);
46 46
47 // aura::WindowObserver overrides: 47 // aura::WindowObserver overrides:
48 virtual void OnWindowBoundsChanged(aura::Window* root_window, 48 virtual void OnWindowBoundsChanged(aura::Window* root_window,
49 const gfx::Rect& old_bounds, 49 const gfx::Rect& old_bounds,
50 const gfx::Rect& new_bounds) OVERRIDE; 50 const gfx::Rect& new_bounds) override;
51 51
52 private: 52 private:
53 friend class TestApi; 53 friend class TestApi;
54 54
55 aura::Window* root_window_; 55 aura::Window* root_window_;
56 56
57 // Partially-opaque layer that's stacked above all of the root window's 57 // Partially-opaque layer that's stacked above all of the root window's
58 // children and used to dim the screen. NULL until the first time we dim. 58 // children and used to dim the screen. NULL until the first time we dim.
59 scoped_ptr<ui::Layer> dimming_layer_; 59 scoped_ptr<ui::Layer> dimming_layer_;
60 60
61 // Are we currently dimming the screen? 61 // Are we currently dimming the screen?
62 bool currently_dimming_; 62 bool currently_dimming_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(ScreenDimmer); 64 DISALLOW_COPY_AND_ASSIGN(ScreenDimmer);
65 }; 65 };
66 66
67 } // namespace ash 67 } // namespace ash
68 68
69 #endif // ASH_WM_SCREEN_DIMMER_H_ 69 #endif // ASH_WM_SCREEN_DIMMER_H_
OLDNEW
« no previous file with comments | « ash/wm/root_window_layout_manager.h ('k') | ash/wm/screen_dimmer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698