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

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

Issue 2006643004: Fix scrollbar buttons on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 7 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
11 namespace ui { 11 namespace ui {
12 12
13 NativeTheme::ExtraParams::ExtraParams() { 13 NativeTheme::ExtraParams::ExtraParams() {
14 memset(this, 0, sizeof(*this)); 14 memset(this, 0, sizeof(*this));
15 } 15 }
16 16
17 NativeTheme::ExtraParams::ExtraParams(const ExtraParams& other) { 17 NativeTheme::ExtraParams::ExtraParams(const ExtraParams& other) {
18 memcpy(this, &other, sizeof(*this)); 18 memcpy(this, &other, sizeof(*this));
19 } 19 }
20 20
21 bool NativeTheme::HasScrollbarButtons() const {
22 return true;
23 }
24
21 void NativeTheme::SetScrollbarColors(unsigned inactive_color, 25 void NativeTheme::SetScrollbarColors(unsigned inactive_color,
22 unsigned active_color, 26 unsigned active_color,
23 unsigned track_color) { 27 unsigned track_color) {
24 thumb_inactive_color_ = inactive_color; 28 thumb_inactive_color_ = inactive_color;
25 thumb_active_color_ = active_color; 29 thumb_active_color_ = active_color;
26 track_color_ = track_color; 30 track_color_ = track_color;
27 } 31 }
28 32
29 void NativeTheme::AddObserver(NativeThemeObserver* observer) { 33 void NativeTheme::AddObserver(NativeThemeObserver* observer) {
30 native_theme_observers_.AddObserver(observer); 34 native_theme_observers_.AddObserver(observer);
(...skipping 10 matching lines...) Expand all
41 45
42 NativeTheme::NativeTheme() 46 NativeTheme::NativeTheme()
43 : thumb_inactive_color_(0xeaeaea), 47 : thumb_inactive_color_(0xeaeaea),
44 thumb_active_color_(0xf4f4f4), 48 thumb_active_color_(0xf4f4f4),
45 track_color_(0xd3d3d3) { 49 track_color_(0xd3d3d3) {
46 } 50 }
47 51
48 NativeTheme::~NativeTheme() {} 52 NativeTheme::~NativeTheme() {}
49 53
50 } // namespace ui 54 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698