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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.h

Issue 292153008: linux_aura: Fix the insets on LabelButtons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments about where the smaller insets come from. Created 6 years, 7 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
Index: chrome/browser/ui/libgtk2ui/gtk2_ui.h
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_ui.h b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
index 3297025bd7353eee91552f6ee3078ce7312760bb..734f77d3568f54d447b5142f99ca2942f75d6cb9 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.h
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
@@ -17,7 +17,6 @@
#include "chrome/browser/ui/libgtk2ui/owned_widget_gtk2.h"
#include "ui/events/linux/text_edit_key_bindings_delegate_auralinux.h"
#include "ui/gfx/color_utils.h"
-#include "ui/gfx/geometry/insets.h"
#include "ui/views/linux_ui/linux_ui.h"
#include "ui/views/window/frame_buttons.h"
@@ -60,9 +59,6 @@ class Gtk2UI : public views::LinuxUI {
int width,
int height) const;
- // Returns the current insets for a button.
- gfx::Insets GetButtonInsets() const;
-
// ui::LinuxInputMethodContextFactory:
virtual scoped_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext(
ui::LinuxInputMethodContextDelegate* delegate) const OVERRIDE;
@@ -190,10 +186,6 @@ class Gtk2UI : public views::LinuxUI {
// entry.
void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const;
- // Create a GTK window and button and queries what "default-border" is, which
- // corresponds with our insets.
- void UpdateButtonInsets();
-
// Frees all calculated images and color data.
void ClearAllThemeData();
@@ -229,8 +221,6 @@ class Gtk2UI : public views::LinuxUI {
SkColor inactive_selection_bg_color_;
SkColor inactive_selection_fg_color_;
- gfx::Insets button_insets_;
-
#if defined(USE_GCONF)
// Currently, the only source of window button configuration. This will
// change if we ever have to support XFCE's configuration system or KDE's.

Powered by Google App Engine
This is Rietveld 408576698