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

Unified Diff: chrome/browser/ui/libgtkui/native_theme_gtk3.cc

Issue 2715153002: Gtk3: Refactor GtkButtonImageSource::GetImageForScale (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/native_theme_gtk3.cc
diff --git a/chrome/browser/ui/libgtkui/native_theme_gtk3.cc b/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
index 2bf1e90065ebd154a4c05bdec1063f4f8ac9a613..af7ea826b71c2b525b3fe407c7ce368598c6576f 100644
--- a/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
+++ b/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
@@ -63,23 +63,6 @@ void PaintWidget(cc::PaintCanvas* canvas,
rect.y());
}
-GtkStateFlags StateToStateFlags(NativeThemeGtk3::State state) {
- switch (state) {
- case NativeThemeGtk3::kDisabled:
- return GTK_STATE_FLAG_INSENSITIVE;
- case NativeThemeGtk3::kHovered:
- return GTK_STATE_FLAG_PRELIGHT;
- case NativeThemeGtk3::kNormal:
- return GTK_STATE_FLAG_NORMAL;
- case NativeThemeGtk3::kPressed:
- return static_cast<GtkStateFlags>(GTK_STATE_FLAG_PRELIGHT |
- GTK_STATE_FLAG_ACTIVE);
- default:
- NOTREACHED();
- return GTK_STATE_FLAG_NORMAL;
- }
-}
-
SkColor SkColorFromColorId(ui::NativeTheme::ColorId color_id) {
const SkColor kPositiveTextColor = SkColorSetRGB(0x0b, 0x80, 0x43);
const SkColor kNegativeTextColor = SkColorSetRGB(0xc5, 0x39, 0x29);
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698