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

Side by Side Diff: ui/native_theme/native_theme.cc

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (Closed)
Patch Set: remove space Created 4 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 (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 #include "ui/native_theme/native_theme.h" 5 #include "ui/native_theme/native_theme.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #include "ui/native_theme/native_theme_observer.h" 9 #include "ui/native_theme/native_theme_observer.h"
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 void NativeTheme::AddObserver(NativeThemeObserver* observer) { 29 void NativeTheme::AddObserver(NativeThemeObserver* observer) {
30 native_theme_observers_.AddObserver(observer); 30 native_theme_observers_.AddObserver(observer);
31 } 31 }
32 32
33 void NativeTheme::RemoveObserver(NativeThemeObserver* observer) { 33 void NativeTheme::RemoveObserver(NativeThemeObserver* observer) {
34 native_theme_observers_.RemoveObserver(observer); 34 native_theme_observers_.RemoveObserver(observer);
35 } 35 }
36 36
37 void NativeTheme::NotifyObservers() { 37 void NativeTheme::NotifyObservers() {
38 FOR_EACH_OBSERVER(NativeThemeObserver, native_theme_observers_, 38 for (NativeThemeObserver& observer : native_theme_observers_)
39 OnNativeThemeUpdated(this)); 39 observer.OnNativeThemeUpdated(this);
40 } 40 }
41 41
42 NativeTheme::NativeTheme() 42 NativeTheme::NativeTheme()
43 : thumb_inactive_color_(0xeaeaea), 43 : thumb_inactive_color_(0xeaeaea),
44 thumb_active_color_(0xf4f4f4), 44 thumb_active_color_(0xf4f4f4),
45 track_color_(0xd3d3d3) { 45 track_color_(0xd3d3d3) {
46 } 46 }
47 47
48 NativeTheme::~NativeTheme() {} 48 NativeTheme::~NativeTheme() {}
49 49
50 } // namespace ui 50 } // namespace ui
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698