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

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: Commnet that we're racing the window manager. 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..7851fe286a6f98833fa16281f267a1a9f9f866b6 100644
--- a/ui/aura/root_window_host_linux.h
+++ b/ui/aura/root_window_host_linux.h
@@ -51,6 +51,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 SetUseHostWindowBorders(bool use_os_borders) OVERRIDE;
+ virtual bool DispatchHostWindowDragMovement(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 +64,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 +93,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