summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/custom_button.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 23:35:18 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 23:35:18 +0000
commit8d3f80e9171c23d5c998af155da4ad8ce3b63802 (patch)
treeae1b98d5b16daded7133e41152696dcd0337df78 /chrome/browser/gtk/custom_button.h
parent7bc61d31c08b04d429ff3ba6190ddabda341c3f5 (diff)
downloadchromium_src-8d3f80e9171c23d5c998af155da4ad8ce3b63802.zip
chromium_src-8d3f80e9171c23d5c998af155da4ad8ce3b63802.tar.gz
chromium_src-8d3f80e9171c23d5c998af155da4ad8ce3b63802.tar.bz2
Paint a focus indication on LinkButtonGtk buttons.
Also, rearrange helper code for centering things in hboxes so they don't expand to take up the full vertical space. Also, don't allow focus on gtk_chrome_button buttons. This is to prevent the "Other bookmarks" button from getting focus (which matches windows) and is in line with disallowing focus on all custom chrome buttons (see CustomDrawButton). BUG=12829 TEST=everything should look the same. Also if you tab to focus on a link button (e.g. download shelf's "show all downloads"), it should have a dotted line around the exterior. Review URL: http://codereview.chromium.org/113970 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/custom_button.h')
-rw-r--r--chrome/browser/gtk/custom_button.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/gtk/custom_button.h b/chrome/browser/gtk/custom_button.h
index 92f9d72..a3071df 100644
--- a/chrome/browser/gtk/custom_button.h
+++ b/chrome/browser/gtk/custom_button.h
@@ -77,11 +77,8 @@ class CustomDrawButton {
// Resume normal drawing of the widget's state.
void UnsetPaintOverride();
- // This is a convenience function for creating a widget that closes
- // a bar (find bar, download shelf, info bars). The button will be packed in
- // |hbox|.
- // The caller is responsible for destroying the returned CustomDrawButton.
- static CustomDrawButton* AddBarCloseButton(GtkWidget* hbox, int padding);
+ // Returns a standard close button.
+ static CustomDrawButton* CloseButton();
private:
// Callback for expose, used to draw the custom graphics.