 Chromium Code Reviews
 Chromium Code Reviews Issue 131513005:
  linux_aura: Use GTK button borders in GTK theme mode.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 131513005:
  linux_aura: Use GTK button borders in GTK theme mode.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| 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. |