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

Unified Diff: chrome/browser/gtk/custom_button.h

Issue 3029032: Cleanup: Rename gtk button state names to (a) match other platforms and (b) n... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/custom_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/custom_button.h
===================================================================
--- chrome/browser/gtk/custom_button.h (revision 53537)
+++ chrome/browser/gtk/custom_button.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -33,9 +33,9 @@
// pass in NULL for |theme_provider|.
CustomDrawButtonBase(GtkThemeProvider* theme_provider,
int normal_id,
- int active_id,
- int highlight_id,
- int depressed_id,
+ int pressed_id,
+ int hover_id,
+ int disabled_id,
int background_id);
~CustomDrawButtonBase();
@@ -78,9 +78,9 @@
// We need to remember the image ids that the user passes in and the theme
// provider so we can reload images if the user changes theme.
int normal_id_;
- int active_id_;
- int highlight_id_;
- int depressed_id_;
+ int pressed_id_;
+ int hover_id_;
+ int disabled_id_;
int button_background_id_;
GtkThemeProvider* theme_provider_;
@@ -132,16 +132,16 @@
// The constructor takes 4 resource ids. If a resource doesn't exist for a
// button, pass in 0.
CustomDrawButton(int normal_id,
- int active_id,
- int highlight_id,
- int depressed_id);
+ int pressed_id,
+ int hover_id,
+ int disabled_id);
// Same as above, but uses themed (and possibly tinted) images.
CustomDrawButton(GtkThemeProvider* theme_provider,
int normal_id,
- int active_id,
- int highlight_id,
- int depressed_id,
+ int pressed_id,
+ int hover_id,
+ int disabled_id,
int background_id,
const char* stock_id,
GtkIconSize stock_size);
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698