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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_util.cc

Issue 377423003: Lots of random cleanups, mostly for native_theme_win.cc: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweak switches Created 6 years, 5 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 | « no previous file | ui/native_theme/native_theme.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/gtk2_util.cc
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_util.cc b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
index 3138437fde2ed71b25511d10653f94e8ff3fc04d..e8f842cf50c99ddc25dbf6316fc3068ba36c7179 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_util.cc
+++ b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
@@ -132,11 +132,11 @@ void ClearAuraTransientParent(GtkWidget* dialog) {
GtkStateType GetGtkState(ui::NativeTheme::State state) {
switch (state) {
- case ui::NativeTheme::kDisabled: return GTK_STATE_INSENSITIVE;
- case ui::NativeTheme::kHovered: return GTK_STATE_PRELIGHT;
- case ui::NativeTheme::kNormal: return GTK_STATE_NORMAL;
- case ui::NativeTheme::kPressed: return GTK_STATE_ACTIVE;
- case ui::NativeTheme::kMaxState: NOTREACHED() << "Unknown state: " << state;
+ case ui::NativeTheme::kDisabled: return GTK_STATE_INSENSITIVE;
+ case ui::NativeTheme::kHovered: return GTK_STATE_PRELIGHT;
+ case ui::NativeTheme::kNormal: return GTK_STATE_NORMAL;
+ case ui::NativeTheme::kPressed: return GTK_STATE_ACTIVE;
+ case ui::NativeTheme::kNumStates: NOTREACHED();
}
return GTK_STATE_NORMAL;
}
« no previous file with comments | « no previous file | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698