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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

Issue 2108933003: Reorder browser list on workspace switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cache workspace, address comments Created 4 years, 5 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/views/widget/desktop_aura/desktop_window_tree_host_x11.h
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
index fa262f135281453397ae8b57f238f3df113a055e..074d777643ec9257ce76bd76114fbb12d488a257 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
@@ -185,6 +185,10 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
// Called when |xwindow_|'s _NET_FRAME_EXTENTS property is updated.
void OnFrameExtentsUpdated();
+ // Makes a round trip to the X server to get the enclosing workspace for this
+ // window. Returns true iff |workspace_| was changed.
+ bool UpdateWorkspace();
+
// Updates |xwindow_|'s minimum and maximum size.
void UpdateMinAndMaxSize();
@@ -284,6 +288,9 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
// |xwindow_|'s maximum size.
gfx::Size max_size_in_pixels_;
+ // The workspace containing |xwindow_|.
+ std::string workspace_;
+
// The window manager state bits.
std::set< ::Atom> window_properties_;

Powered by Google App Engine
This is Rietveld 408576698