platformKeys: Add per-extension sign permissions.
[chromium-blink-merge.git] / ui / native_theme / native_theme.cc
blob94a1eeff98c54256ac86e70ea410159e60e52c99
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
3 // found in the LICENSE file.
5 #include "ui/native_theme/native_theme.h"
7 #include "ui/native_theme/native_theme_observer.h"
9 namespace ui {
11 void NativeTheme::SetScrollbarColors(unsigned inactive_color,
12 unsigned active_color,
13 unsigned track_color) {
14 thumb_inactive_color_ = inactive_color;
15 thumb_active_color_ = active_color;
16 track_color_ = track_color;
19 // NativeTheme::instance() is implemented in the platform specific source files,
20 // such as native_theme_win.cc or native_theme_linux.cc
22 void NativeTheme::AddObserver(NativeThemeObserver* observer) {
23 native_theme_observers_.AddObserver(observer);
26 void NativeTheme::RemoveObserver(NativeThemeObserver* observer) {
27 native_theme_observers_.RemoveObserver(observer);
30 void NativeTheme::NotifyObservers() {
31 FOR_EACH_OBSERVER(NativeThemeObserver, native_theme_observers_,
32 OnNativeThemeUpdated(this));
35 NativeTheme::NativeTheme()
36 : thumb_inactive_color_(0xeaeaea),
37 thumb_active_color_(0xf4f4f4),
38 track_color_(0xd3d3d3) {
41 NativeTheme::~NativeTheme() {}
43 } // namespace ui