forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: Make native_theme its own library.
BUG=103304 R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/11275322 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168194 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
tfarina@chromium.org
committed
Nov 16, 2012
1 parent
8d0f901
commit 990e622
Showing
68 changed files
with
4,595 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "ui/native_theme/native_theme.h" | ||
|
||
namespace ui { | ||
|
||
NativeTheme::NativeTheme() | ||
: thumb_inactive_color_(0xeaeaea), | ||
thumb_active_color_(0xf4f4f4), | ||
track_color_(0xd3d3d3) { | ||
} | ||
|
||
void NativeTheme::SetScrollbarColors(unsigned inactive_color, | ||
unsigned active_color, | ||
unsigned track_color) { | ||
thumb_inactive_color_ = inactive_color; | ||
thumb_active_color_ = active_color; | ||
track_color_ = track_color; | ||
} | ||
|
||
// NativeTheme::instance() is implemented in the platform specific source files, | ||
// such as native_theme_win.cc or native_theme_linux.cc | ||
|
||
} // namespace ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
{ | ||
'variables': { | ||
'chromium_code': 1, | ||
}, | ||
'targets': [ | ||
{ | ||
'target_name': 'native_theme', | ||
'type': '<(component)', | ||
'dependencies': [ | ||
'../../base/base.gyp:base', | ||
'../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', | ||
'../../skia/skia.gyp:skia', | ||
'../ui.gyp:ui', | ||
'../ui.gyp:ui_resources', | ||
], | ||
'defines': [ | ||
'NATIVE_THEME_IMPLEMENTATION', | ||
], | ||
'sources': [ | ||
'native_theme.cc', | ||
'native_theme.h', | ||
'native_theme_android.cc', | ||
'native_theme_android.h', | ||
'native_theme_aura.cc', | ||
'native_theme_aura.h', | ||
'native_theme_base.cc', | ||
'native_theme_base.h', | ||
'native_theme_gtk.cc', | ||
'native_theme_gtk.h', | ||
'native_theme_win.cc', | ||
'native_theme_win.h', | ||
], | ||
}, | ||
], | ||
} |
Oops, something went wrong.