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

Unified Diff: services/ui/ws/test_utils.h

Issue 2680883002: Fixes bugs in cursor handling (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « services/ui/ws/server_window.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index b928869edc037c9cdb28d68ca2358b23ae78fb9e..29d65cdaf465a329d6ea42f368b9825c2f43f131 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -612,6 +612,7 @@ class WindowEventTargetingHelper {
// Creates a secondary tree, embedded as a child of |embed_window|. The
// resulting |window| is setup for event targeting, with bounds
// |window_bounds|.
+ // TODO(sky): rename and cleanup. This doesn't really create a new tree.
void CreateSecondaryTree(ServerWindow* embed_window,
const gfx::Rect& window_bounds,
TestWindowTreeClient** out_client,
@@ -640,6 +641,7 @@ class WindowEventTargetingHelper {
TestDisplayBinding* display_binding_ = nullptr;
// Owned by WindowServer's DisplayManager.
Display* display_ = nullptr;
+ ClientSpecificId next_primary_tree_window_id_ = 1;
DISALLOW_COPY_AND_ASSIGN(WindowEventTargetingHelper);
};
@@ -676,7 +678,7 @@ ClientWindowId ClientWindowIdForWindow(WindowTree* tree,
ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
ServerWindow* parent,
- ClientWindowId* client_id);
+ ClientWindowId* client_id = nullptr);
} // namespace test
} // namespace ws
« no previous file with comments | « services/ui/ws/server_window.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698