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

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

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do it the other way + explicit checks that it is a mouse pointer. 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
« no previous file with comments | « components/mus/ws/test_change_tracker.h ('k') | components/mus/ws/window_manager_access_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_change_tracker.cc
diff --git a/components/mus/ws/test_change_tracker.cc b/components/mus/ws/test_change_tracker.cc
index a128c017bf667ba1dc4c903de88e8bc425265d0f..7b5750dd11290e5b251098be97dd1193629896d3 100644
--- a/components/mus/ws/test_change_tracker.cc
+++ b/components/mus/ws/test_change_tracker.cc
@@ -111,6 +111,11 @@ std::string ChangeToDescription1(const Change& change) {
case CHANGE_TYPE_FOCUSED:
return base::StringPrintf("Focused id=%s",
WindowIdToString(change.window_id).c_str());
+
+ case CHANGE_TYPE_CURSOR_CHANGED:
+ return base::StringPrintf("CursorChanged id=%s cursor_id=%d",
+ WindowIdToString(change.window_id).c_str(),
+ change.cursor_id);
}
return std::string();
}
@@ -327,6 +332,16 @@ void TestChangeTracker::OnWindowFocused(Id window_id) {
AddChange(change);
}
+void TestChangeTracker::OnWindowPredefinedCursorChanged(
+ Id window_id,
+ mojom::Cursor cursor_id) {
+ Change change;
+ change.type = CHANGE_TYPE_CURSOR_CHANGED;
+ change.window_id = window_id;
+ change.cursor_id = cursor_id;
+ AddChange(change);
+}
+
void TestChangeTracker::DelegateEmbed(const String& url) {
Change change;
change.type = CHANGE_TYPE_DELEGATE_EMBED;
« no previous file with comments | « components/mus/ws/test_change_tracker.h ('k') | components/mus/ws/window_manager_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698