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

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

Issue 132023010: linux_aura: Fixes a couple of issues with the button border integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: constant and braces Created 6 years, 11 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/ui/libgtk2ui/gtk2_border.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 375c7ea38ccc1bec9c070b53ce483a475015c33a..a03e5cb62dda73b5ef96e1521a26a3658b248a88 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.h
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
@@ -45,7 +45,10 @@ class Gtk2UI : public views::LinuxUI {
const std::vector<views::FrameButton>& trailing_buttons);
// Draws the GTK button border for state |gtk_state| onto a bitmap.
- SkBitmap DrawGtkButtonBorder(int gtk_state, int width, int height) const;
+ SkBitmap DrawGtkButtonBorder(int gtk_state,
+ bool focused,
+ int width,
+ int height) const;
// Returns the current insets for a button.
gfx::Insets GetButtonInsets() const;
@@ -98,7 +101,7 @@ class Gtk2UI : public views::LinuxUI {
virtual gfx::Image GetIconForContentType(
const std::string& content_type, int size) const OVERRIDE;
virtual scoped_ptr<views::Border> CreateNativeBorder(
- views::CustomButton* owning_button,
+ views::LabelButton* owning_button,
scoped_ptr<views::Border> border) OVERRIDE;
virtual void AddWindowButtonOrderObserver(
views::WindowButtonOrderObserver* observer) OVERRIDE;
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_border.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698