summaryrefslogtreecommitdiffstats
path: root/components/mus/ws/window_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/mus/ws/window_server.h')
-rw-r--r--components/mus/ws/window_server.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/components/mus/ws/window_server.h b/components/mus/ws/window_server.h
index 9d3abe2..2f9aee1 100644
--- a/components/mus/ws/window_server.h
+++ b/components/mus/ws/window_server.h
@@ -103,6 +103,12 @@ class WindowServer : public ServerWindowDelegate,
: OperationType::NONE;
}
+ // Returns true if the specified connection issued the current operation.
+ bool IsOperationSource(ConnectionSpecificId tree_id) const {
+ return current_operation_ &&
+ current_operation_->source_tree_id() == tree_id;
+ }
+
// Invoked when a connection messages a client about the change. This is used
// to avoid sending ServerChangeIdAdvanced() unnecessarily.
void OnTreeMessagedClient(ConnectionSpecificId id);
@@ -128,6 +134,9 @@ class WindowServer : public ServerWindowDelegate,
return &window_manager_factory_registry_;
}
+ // Sets focus to the specified window.
+ void SetFocusedWindow(ServerWindow* window);
+
// Returns a change id for the window manager that is associated with
// |source| and |client_change_id|. When the window manager replies
// WindowManagerChangeCompleted() is called to obtain the original source
@@ -205,12 +214,6 @@ class WindowServer : public ServerWindowDelegate,
// Balances a call to PrepareForOperation().
void FinishOperation();
- // Returns true if the specified connection issued the current operation.
- bool IsOperationSource(ConnectionSpecificId tree_id) const {
- return current_operation_ &&
- current_operation_->source_tree_id() == tree_id;
- }
-
// Run in response to events which may cause us to change the native cursor.
void MaybeUpdateNativeCursor(ServerWindow* window);