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

Unified Diff: ui/views/linux_ui/linux_ui.h

Issue 131513005: linux_aura: Use GTK button borders in GTK theme mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: ui/views/linux_ui/linux_ui.h
diff --git a/ui/views/linux_ui/linux_ui.h b/ui/views/linux_ui/linux_ui.h
index e08d0d76b9a686671d2dd58f5b2078fd4708afeb..9a966abf38e7d47f9a2d3db026edbd8129e3674c 100644
--- a/ui/views/linux_ui/linux_ui.h
+++ b/ui/views/linux_ui/linux_ui.h
@@ -9,6 +9,7 @@
#include "ui/base/ime/linux/linux_input_method_context_factory.h"
#include "ui/gfx/linux_font_delegate.h"
#include "ui/shell_dialogs/linux_shell_dialog.h"
+#include "ui/views/controls/button/button.h"
#include "ui/views/linux_ui/status_icon_linux.h"
#include "ui/views/views_export.h"
@@ -24,6 +25,9 @@ class NativeTheme;
}
namespace views {
+class Border;
+class LabelButtonBorder;
msw 2014/01/21 19:18:19 nit: remove this.
+class View;
class WindowButtonOrderObserver;
// Adapter class with targets to render like different toolkits. Set by any
@@ -72,6 +76,7 @@ class VIEWS_EXPORT LinuxUI : public ui::LinuxInputMethodContextFactory,
virtual ui::NativeTheme* GetNativeTheme() const = 0;
virtual void SetUseSystemTheme(bool use_system_theme) = 0;
+ virtual bool GetUseSystemTheme() const = 0;
// Returns whether we should be using the native theme provided by this
// object by default.
@@ -96,6 +101,11 @@ class VIEWS_EXPORT LinuxUI : public ui::LinuxInputMethodContextFactory,
virtual gfx::Image GetIconForContentType(
const std::string& content_type, int size) const = 0;
+ // Builds a Border which paints the native button style.
+ virtual Border* CreateNativeBorder(
+ views::View* owning_view,
+ views::LabelButtonBorder* label_button_border) = 0;
msw 2014/01/21 19:18:19 Ditto, just use a views::Border here.
+
// Notifies the observer about changes about how window buttons should be
// laid out. If the order is anything other than the default min,max,close on
// the right, will immediately send a button change event to the observer.
« chrome/browser/ui/libgtk2ui/gtk2_ui.h ('K') | « ui/views/controls/button/label_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698