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

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

Issue 11775007: Changed enable-new-menu-style flag to be on by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | no next file » | 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 #include "ui/native_theme/native_theme.h" 5 #include "ui/native_theme/native_theme.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "ui/base/ui_base_switches.h" 8 #include "ui/base/ui_base_switches.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 void NativeTheme::SetScrollbarColors(unsigned inactive_color, 12 void NativeTheme::SetScrollbarColors(unsigned inactive_color,
13 unsigned active_color, 13 unsigned active_color,
14 unsigned track_color) { 14 unsigned track_color) {
15 thumb_inactive_color_ = inactive_color; 15 thumb_inactive_color_ = inactive_color;
16 thumb_active_color_ = active_color; 16 thumb_active_color_ = active_color;
17 track_color_ = track_color; 17 track_color_ = track_color;
18 } 18 }
19 19
20 // NativeTheme::instance() is implemented in the platform specific source files, 20 // NativeTheme::instance() is implemented in the platform specific source files,
21 // such as native_theme_win.cc or native_theme_linux.cc 21 // such as native_theme_win.cc or native_theme_linux.cc
22 22
23 // static 23 // static
24 bool NativeTheme::IsNewMenuStyleEnabled() { 24 bool NativeTheme::IsNewMenuStyleEnabled() {
25 static bool enable_new_menu_style = 25 static bool enable_new_menu_style =
26 CommandLine::ForCurrentProcess()->HasSwitch( 26 !CommandLine::ForCurrentProcess()->HasSwitch(
27 switches::kEnableNewMenuStyle); 27 switches::kDisableNewMenuStyle);
28 return enable_new_menu_style; 28 return enable_new_menu_style;
29 } 29 }
30 30
31 NativeTheme::NativeTheme() 31 NativeTheme::NativeTheme()
32 : thumb_inactive_color_(0xeaeaea), 32 : thumb_inactive_color_(0xeaeaea),
33 thumb_active_color_(0xf4f4f4), 33 thumb_active_color_(0xf4f4f4),
34 track_color_(0xd3d3d3) { 34 track_color_(0xd3d3d3) {
35 } 35 }
36 36
37 NativeTheme::~NativeTheme() {} 37 NativeTheme::~NativeTheme() {}
38 38
39 } // namespace ui 39 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698