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

Side by Side Diff: chrome/browser/chromeos/ui/focus_ring_layer.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_
6 #define CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_ 6 #define CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_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 #include "ui/compositor/layer_delegate.h" 10 #include "ui/compositor/layer_delegate.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 aura::Window* root_window() { return root_window_; } 43 aura::Window* root_window() { return root_window_; }
44 44
45 protected: 45 protected:
46 // Updates |root_window_| and creates |layer_| if it doesn't exist, 46 // Updates |root_window_| and creates |layer_| if it doesn't exist,
47 // or if the root window has changed. Moves the layer to the top if 47 // or if the root window has changed. Moves the layer to the top if
48 // it wasn't there already. 48 // it wasn't there already.
49 void CreateOrUpdateLayer(aura::Window* root_window, const char* layer_name); 49 void CreateOrUpdateLayer(aura::Window* root_window, const char* layer_name);
50 50
51 private: 51 private:
52 // ui::LayerDelegate overrides: 52 // ui::LayerDelegate overrides:
53 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; 53 virtual void OnPaintLayer(gfx::Canvas* canvas) override;
54 virtual void OnDelegatedFrameDamage( 54 virtual void OnDelegatedFrameDamage(
55 const gfx::Rect& damage_rect_in_dip) OVERRIDE; 55 const gfx::Rect& damage_rect_in_dip) override;
56 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 56 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override;
57 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; 57 virtual base::Closure PrepareForLayerBoundsChange() override;
58 58
59 // The object that owns this layer. 59 // The object that owns this layer.
60 FocusRingLayerDelegate* delegate_; 60 FocusRingLayerDelegate* delegate_;
61 61
62 // The current root window containing the focused object. 62 // The current root window containing the focused object.
63 aura::Window* root_window_; 63 aura::Window* root_window_;
64 64
65 // The current layer. 65 // The current layer.
66 scoped_ptr<ui::Layer> layer_; 66 scoped_ptr<ui::Layer> layer_;
67 67
68 // The bounding rectangle of the focused object, in |root_window_| 68 // The bounding rectangle of the focused object, in |root_window_|
69 // coordinates. 69 // coordinates.
70 gfx::Rect focus_ring_; 70 gfx::Rect focus_ring_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(FocusRingLayer); 72 DISALLOW_COPY_AND_ASSIGN(FocusRingLayer);
73 }; 73 };
74 74
75 } // namespace chromeos 75 } // namespace chromeos
76 76
77 #endif // CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_ 77 #endif // CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/ui/focus_ring_controller.h ('k') | chrome/browser/chromeos/ui/idle_app_name_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698