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

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

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix WindowTreeAppTest.SetCursor. Created 5 years 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: 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 aa7a5a644f2ac90e3324f60649e5b3d37949a7a5..3f2bb19368d6d3dce64b4515b159a1922431efaa 100644
--- a/components/mus/ws/test_change_tracker.h
+++ b/components/mus/ws/test_change_tracker.h
@@ -36,6 +36,7 @@ enum ChangeType {
CHANGE_TYPE_PROPERTY_CHANGED,
CHANGE_TYPE_DELEGATE_EMBED,
CHANGE_TYPE_FOCUSED,
+ CHANGE_TYPE_CURSOR_CHANGED
};
// TODO(sky): consider nuking and converting directly to WindowData.
@@ -76,6 +77,7 @@ struct Change {
bool bool_value;
std::string property_key;
std::string property_value;
+ int32_t cursor_id;
};
// Converts Changes to string descriptions.
@@ -146,6 +148,7 @@ class TestChangeTracker {
mojo::String name,
mojo::Array<uint8_t> data);
void OnWindowFocused(Id window_id);
+ void OnWindowSetPredefinedCursor(Id window_id, mojom::Cursor cursor_id);
void DelegateEmbed(const mojo::String& url);
private:

Powered by Google App Engine
This is Rietveld 408576698