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

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: forgotten 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..2ae847f4f9574a932e7b20b8dd93c06cfb7807cd 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 CustomButton;
+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::CustomButton* owning_button,
sky 2014/01/22 20:23:59 Same comments about scoped_ptrs here.
+ views::Border* border) = 0;
+
// 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.
« ui/views/controls/button/label_button.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