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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

Issue 197283008: Fix panel dragging on Linux Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
7 7
8 #include <X11/extensions/shape.h> 8 #include <X11/extensions/shape.h>
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 ::Window xwindow_; 215 ::Window xwindow_;
216 216
217 // The native root window. 217 // The native root window.
218 ::Window x_root_window_; 218 ::Window x_root_window_;
219 219
220 ui::X11AtomCache atom_cache_; 220 ui::X11AtomCache atom_cache_;
221 221
222 // Is the window mapped to the screen? 222 // Is the window mapped to the screen?
223 bool window_mapped_; 223 bool window_mapped_;
224 224
225 // The bounds of |xwindow_|. 225 // The bounds that were requested for |xwindow_|.
sadrul 2014/03/13 15:41:31 This can be confusing (e.g. |bounds_| can also be
226 gfx::Rect bounds_; 226 gfx::Rect bounds_;
227 227
228 // The actual bounds of |xwindow_|. |bounds_| and |x_bounds_| differ
229 // immediately after SetBounds() is called because SetBounds() does not
230 // synchronously change |xwindow_|'s bounds.
231 gfx::Rect x_bounds_;
232
228 // Whenever the bounds are set, we keep the previous set of bounds around so 233 // Whenever the bounds are set, we keep the previous set of bounds around so
229 // we can have a better chance of getting the real |restored_bounds_|. Window 234 // we can have a better chance of getting the real |restored_bounds_|. Window
230 // managers tend to send a Configure message with the maximized bounds, and 235 // managers tend to send a Configure message with the maximized bounds, and
231 // then set the window maximized property. (We don't rely on this for when we 236 // then set the window maximized property. (We don't rely on this for when we
232 // request that the window be maximized, only when we detect that some other 237 // request that the window be maximized, only when we detect that some other
233 // process has requested that we become the maximized window.) 238 // process has requested that we become the maximized window.)
234 gfx::Rect previous_bounds_; 239 gfx::Rect previous_bounds_;
235 240
236 // The bounds of our window before we were maximized. 241 // The bounds of our window before we were maximized.
237 gfx::Rect restored_bounds_; 242 gfx::Rect restored_bounds_;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 scoped_ptr<X11ScopedCapture> x11_capture_; 296 scoped_ptr<X11ScopedCapture> x11_capture_;
292 297
293 base::string16 window_title_; 298 base::string16 window_title_;
294 299
295 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); 300 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
296 }; 301 };
297 302
298 } // namespace views 303 } // namespace views
299 304
300 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 305 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698