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

Unified Diff: components/mus/ws/test_change_tracker.h

Issue 1864113002: Fixes problems with drawn state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: parentdrawn and merge Created 4 years, 8 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 | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/test_change_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_change_tracker.h
diff --git a/components/mus/ws/test_change_tracker.h b/components/mus/ws/test_change_tracker.h
index 46103bc4c7e8333311140979c4ddc87b757def84..4e5fc76d6ea326ae90eed62848c5d2b42cf513a9 100644
--- a/components/mus/ws/test_change_tracker.h
+++ b/components/mus/ws/test_change_tracker.h
@@ -58,7 +58,6 @@ struct TestWindow {
Id parent_id;
Id window_id;
bool visible;
- bool drawn;
std::map<std::string, std::vector<uint8_t>> properties;
};
@@ -94,6 +93,7 @@ std::vector<std::string> ChangesToDescription1(
// Convenience for returning the description of the first item in |changes|.
// Returns an empty string if |changes| has something other than one entry.
std::string SingleChangeToDescription(const std::vector<Change>& changes);
+std::string SingleChangeToDescription2(const std::vector<Change>& changes);
// Convenience for returning the description of the first item in |windows|.
// Returns an empty string if |windows| has something other than one entry.
@@ -130,7 +130,9 @@ class TestChangeTracker {
// Each of these functions generate a Change. There is one per
// WindowTreeClient function.
- void OnEmbed(ConnectionSpecificId connection_id, mojom::WindowDataPtr root);
+ void OnEmbed(ConnectionSpecificId connection_id,
+ mojom::WindowDataPtr root,
+ bool drawn);
void OnEmbeddedAppDisconnected(Id window_id);
void OnUnembed(Id window_id);
void OnLostCapture(Id window_id);
@@ -150,7 +152,7 @@ class TestChangeTracker {
mojom::OrderDirection direction);
void OnWindowDeleted(Id window_id);
void OnWindowVisibilityChanged(Id window_id, bool visible);
- void OnWindowDrawnStateChanged(Id window_id, bool drawn);
+ void OnWindowParentDrawnStateChanged(Id window_id, bool drawn);
void OnWindowInputEvent(Id window_id, mojom::EventPtr event);
void OnWindowSharedPropertyChanged(Id window_id,
mojo::String name,
@@ -158,7 +160,9 @@ class TestChangeTracker {
void OnWindowFocused(Id window_id);
void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id);
void OnChangeCompleted(uint32_t change_id, bool success);
- void OnTopLevelCreated(uint32_t change_id, mojom::WindowDataPtr window_data);
+ void OnTopLevelCreated(uint32_t change_id,
+ mojom::WindowDataPtr window_data,
+ bool drawn);
private:
void AddChange(const Change& change);
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/test_change_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698