| Index: chrome/browser/ui/views/toolbar/toolbar_button.cc
|
| diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.cc b/chrome/browser/ui/views/toolbar/toolbar_button.cc
|
| index 7a285d39e02a23c3b1990408d2886dfa953b8195..283e4c6720251e01615c6bb73ca1c981436d806f 100644
|
| --- a/chrome/browser/ui/views/toolbar/toolbar_button.cc
|
| +++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc
|
| @@ -11,6 +11,7 @@
|
| #include "ui/accessibility/ax_view_state.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/models/menu_model.h"
|
| +#include "ui/base/theme_provider.h"
|
| #include "ui/gfx/display.h"
|
| #include "ui/gfx/screen.h"
|
| #include "ui/views/controls/button/label_button_border.h"
|
| @@ -128,6 +129,21 @@ void ToolbarButton::GetAccessibleState(ui::AXViewState* state) {
|
| state->AddStateFlag(ui::AX_STATE_HASPOPUP);
|
| }
|
|
|
| +scoped_ptr<views::LabelButtonBorder>
|
| +ToolbarButton::CreateDefaultBorder() const {
|
| + scoped_ptr<views::LabelButtonBorder> border =
|
| + LabelButton::CreateDefaultBorder();
|
| +
|
| + ui::ThemeProvider* provider = GetThemeProvider();
|
| + if (provider && provider->UsingSystemTheme()) {
|
| + // We set smaller insets here to accommodate the slightly larger GTK+
|
| + // icons.
|
| + border->set_insets(gfx::Insets(2, 2, 2, 2));
|
| + }
|
| +
|
| + return border.Pass();
|
| +}
|
| +
|
| void ToolbarButton::ShowContextMenuForView(View* source,
|
| const gfx::Point& point,
|
| ui::MenuSourceType source_type) {
|
|
|