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

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

Issue 229783002: linux_aura: Use system configuration for middle clicking the titlebar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sadrul nits Created 6 years, 8 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/gconf_titlebar_listener.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 5dbbda9445bacd4db5d346629c9b33a4133393d6..b6e8d03a230112a71eb46e36a6036e187d9be997 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.h
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
@@ -36,7 +36,7 @@ namespace libgtk2ui {
class Gtk2Border;
class Gtk2KeyBindingsHandler;
class Gtk2SignalRegistrar;
-class GConfTitlebarListener;
+class GConfListener;
// Interface to GTK2 desktop features.
//
@@ -45,9 +45,11 @@ class Gtk2UI : public views::LinuxUI {
Gtk2UI();
virtual ~Gtk2UI();
+ // Setters used by GConfListener:
void SetWindowButtonOrdering(
const std::vector<views::FrameButton>& leading_buttons,
const std::vector<views::FrameButton>& trailing_buttons);
+ void SetNonClientMiddleClickAction(NonClientMiddleClickAction action);
// Draws the GTK button border for state |gtk_state| onto a bitmap.
SkBitmap DrawGtkButtonBorder(int gtk_state,
@@ -110,6 +112,7 @@ class Gtk2UI : public views::LinuxUI {
virtual void RemoveNativeThemeChangeObserver(
views::NativeThemeChangeObserver* observer) OVERRIDE;
virtual bool UnityIsRunning() OVERRIDE;
+ virtual NonClientMiddleClickAction GetNonClientMiddleClickAction() OVERRIDE;
virtual void NotifyWindowManagerStartupComplete() OVERRIDE;
// ui::TextEditKeybindingDelegate:
@@ -234,7 +237,7 @@ class Gtk2UI : public views::LinuxUI {
#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.
- scoped_ptr<GConfTitlebarListener> titlebar_listener_;
+ scoped_ptr<GConfListener> gconf_listener_;
#endif // defined(USE_GCONF)
// If either of these vectors are non-empty, they represent the current
@@ -250,6 +253,10 @@ class Gtk2UI : public views::LinuxUI {
// Observers to notify when the theme state changes.
ObserverList<views::NativeThemeChangeObserver> theme_change_observers_;
+ // Whether we should lower the window on a middle click to the non client
+ // area.
+ NonClientMiddleClickAction middle_click_action_;
+
// Image cache of lazily created images.
mutable ImageCache gtk_images_;
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gconf_titlebar_listener.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698