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

Unified Diff: ui/aura/root_window_host_linux.h

Issue 10381063: Aura/ash split: Don't use X11 window borders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with windows/mac implementations Created 8 years, 7 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/aura/root_window_host_linux.h
diff --git a/ui/aura/root_window_host_linux.h b/ui/aura/root_window_host_linux.h
index ae435e98fa7b2401c30a3b688626e0941de31bb9..5a1a801c848c4791167e6518be43a300da98e16b 100644
--- a/ui/aura/root_window_host_linux.h
+++ b/ui/aura/root_window_host_linux.h
@@ -28,6 +28,9 @@ class RootWindowHostLinux : public RootWindowHost,
explicit RootWindowHostLinux(const gfx::Rect& bounds);
virtual ~RootWindowHostLinux();
+ // Whether we should show the window manager border or not.
+ void SetShouldUseWindowManagerBorder(bool use_wm_border);
Daniel Erat 2012/05/09 20:58:27 delete this
+
// Overridden from Dispatcher overrides:
virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
@@ -51,6 +54,9 @@ class RootWindowHostLinux : public RootWindowHost,
virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE;
+ virtual void SetUseOSWindowBorders(bool use_os_borders) OVERRIDE;
+ virtual bool DispatchWindowDragMovement(int hittest,
+ MouseEvent* event) OVERRIDE;
// Returns true if there's an X window manager present... in most cases. Some
// window managers (notably, ion3) don't implement enough of ICCCM for us to
@@ -61,6 +67,10 @@ class RootWindowHostLinux : public RootWindowHost,
// |current_cursor_|.
void SetCursorInternal(gfx::NativeCursor cursor);
+ // Signal to the window manager that it is to move the window as we've had a
+ // hit in our non-client area.
+ void SendWMMoveResize(int direction, int x_root, int y_root);
+
RootWindow* root_window_;
// The display and the native X window hosting the root window.
@@ -86,10 +96,13 @@ class RootWindowHostLinux : public RootWindowHost,
// round trips to the X11 server.
enum AtomList {
ATOM_WM_DELETE_WINDOW = 0,
+ ATOM__NET_WM_MOVERESIZE,
ATOM__NET_WM_PING,
ATOM__NET_WM_PID,
ATOM_WM_S0,
+ ATOM__MOTIF_WM_HINTS,
+
ATOM_COUNT
};
::Atom cached_atoms_[ATOM_COUNT];

Powered by Google App Engine
This is Rietveld 408576698